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

PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 11605029 bytes) in /var/www/html/nextcloud/apps/mail/lib/Db/MessageMapper.php on line 583 #10646

Open
hboetes opened this issue Feb 2, 2025 · 2 comments

Comments

@hboetes
Copy link

hboetes commented Feb 2, 2025

Steps to reproduce

I regularly get emails like that from the cronjob: /usr/bin/php -f /var/www/html/nextcloud/cron.php. Please tell if you want me to run some debug commands to get more informative output.

Expected behavior

No memory overload. :-}

Actual behavior

Memory overload.

Mail app version

4.1.2

Nextcloud version

30.0.5

Mailserver or service

postfix

Operating system

Fedora

PHP engine version

PHP 8.3

Nextcloud memory caching

'memcache.local' => '\OC\Memcache\Redis', 'memcache.locking' => '\OC\Memcache\Redis', 'memcache.distributed' => '\OC\Memcache\Redis',

Web server

Nginx

Database

PostgreSQL

Additional info

No response

@SebastianKrupinski
Copy link
Contributor

Hi @hboetes

Is there any indication to which background job is causing this? Is there more details in the nextcloud.log? Otherwise this error might be hard to track down.

@hboetes
Copy link
Author

hboetes commented Feb 2, 2025

Would this help? I simply searched for MessageMapper in the log, and then grepped for the matching log entry strings. I'm not a noob, but I have no idea how to debug this problem. Please make some suggestions.

root@bran /var/log/nextcloud # grep 1FUn7BlKfr8bgkdCHu8u log
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":0,"time":"2025-02-02T11:20:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"CLI cron call has selected job OCA\\Notifications\\BackgroundJob\\GenerateUserSettings (id: 10, arguments: null)","userAgent":"--","version":"30.0.5.1","data":{"app":"cron"}}
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":3,"time":"2025-02-02T11:20:33+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"iconv(): Detected an illegal character in input string at /var/www/html/nextcloud/apps/mail/lib/IMAP/Charset/Converter.php#43","userAgent":"--","version":"30.0.5.1","data":{"app":"PHP"}}
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":3,"time":"2025-02-02T11:20:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"iconv(): Detected an illegal character in input string at /var/www/html/nextcloud/apps/mail/lib/IMAP/Charset/Converter.php#43","userAgent":"--","version":"30.0.5.1","data":{"app":"PHP"}}
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":3,"time":"2025-02-02T11:20:42+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"iconv(): Detected an illegal character in input string at /var/www/html/nextcloud/apps/mail/lib/IMAP/Charset/Converter.php#43","userAgent":"--","version":"30.0.5.1","data":{"app":"PHP"}}
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":3,"time":"2025-02-02T11:20:43+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"iconv(): Detected an illegal character in input string at /var/www/html/nextcloud/apps/mail/lib/IMAP/Charset/Converter.php#43","userAgent":"--","version":"30.0.5.1","data":{"app":"PHP"}}
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":3,"time":"2025-02-02T11:21:21+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"iconv(): Detected an illegal character in input string at /var/www/html/nextcloud/apps/mail/lib/IMAP/Charset/Converter.php#43","userAgent":"--","version":"30.0.5.1","data":{"app":"PHP"}}
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":3,"time":"2025-02-02T11:21:22+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"iconv(): Detected an illegal character in input string at /var/www/html/nextcloud/apps/mail/lib/IMAP/Charset/Converter.php#43","userAgent":"--","version":"30.0.5.1","data":{"app":"PHP"}}
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":3,"time":"2025-02-02T11:21:25+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"iconv(): Detected an illegal character in input string at /var/www/html/nextcloud/apps/mail/lib/IMAP/Charset/Converter.php#43","userAgent":"--","version":"30.0.5.1","data":{"app":"PHP"}}
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":3,"time":"2025-02-02T11:21:25+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"iconv(): Detected an illegal character in input string at /var/www/html/nextcloud/apps/mail/lib/IMAP/Charset/Converter.php#43","userAgent":"--","version":"30.0.5.1","data":{"app":"PHP"}}
{"reqId":"1FUn7BlKfr8bgkdCHu8u","level":3,"time":"2025-02-02T12:09:24+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Allowed memory size of 536870912 bytes exhausted (tried to allocate 11605029 bytes) at /var/www/html/nextcloud/apps/mail/lib/Db/MessageMapper.php#583","userAgent":"--","version":"30.0.5.1","data":{"app":"PHP"}}

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