Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron.php/Mail: OOM/Allowed memory size exhausted #9930

Open
pannal opened this issue Jul 27, 2024 · 1 comment
Open

Cron.php/Mail: OOM/Allowed memory size exhausted #9930

pannal opened this issue Jul 27, 2024 · 1 comment
Assignees

Comments

@pannal
Copy link

pannal commented Jul 27, 2024

Steps to reproduce

  1. Run cron.php

Expected behavior

cron.php runs without errors.

Actual behavior

Errors in the logs and memory exhaustion

Mail app version

3.7.5

Mailserver or service

Cyrus IMAP

Operating system

Docker (on Linux 5.15.0-113-generic x86_64 host)

PHP engine version

PHP 8.2

Web server

Nginx

Database

MariaDB

Additional info

Logs:

docker[1099563]: PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/custom_apps/mail/vendor/bytestream/horde-stream/lib/Horde/Stream.php on line 402
docker[1099563]: PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Exception.php on line 1
systemd[1]: nextcloudcron.service: Main process exited, code=exited, status=255/EXCEPTION

cron systemd service:

cat /etc/systemd/system/nextcloudcron.service
[Unit]
Description=Nextcloud cron.php job

[Service]
User=root
ExecCondition=/usr/bin/docker exec -u www-data nextcloud-app-1 php -f occ status -e
ExecStart=/usr/bin/docker exec -u www-data nextcloud-app-1 php -f /var/www/html/cron.php
KillMode=process
@ChristophWurst
Copy link
Member

This might be fixed by bytestream/Imap_Client#16. @pannal could you re-test when #10347 is released?

@ChristophWurst ChristophWurst self-assigned this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants