Open Waldmeisda opened 6 months ago
sudo -u www-data php -d memory_limit=1G occ background-job:execute 119428 --force-execute
Job class: OC\Core\BackgroundJobs\GenerateMetadataJob
Arguments: null
Type: timed
Last checked: 2024-01-15T11:00:06+00:00
Reserved at: -
Last executed: 2024-01-14T15:45:09+00:00
Last duration: 3871
Next execution: 2024-01-15T15:45:09+00:00
Forcing execution of the job
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20814848728 bytes) in /var/www/owncloud/lib/private/Files/Storage/Local.php on line 327
My idea was correct, its this one causing the issue.
Does occ files:scan --generate-metadata -v
triggers the same error?
(maybe disable cronjob before executing the command)
I'll have a look,
I started it already according to https://github.com/nextcloud/server/issues/42308, but without the -v option. It returns a lot of different exif related errors, but nothing concerning so far.
Error during scan: exif_read_data(): Potentially invalid endianess, trying again with different endianness before imminent failure.
Error during scan: exif_read_data(): File not supported
Error during scan: exif_read_data(): Illegal IFD size
I'll start a verbose run afterwards.
Found the issue, the apple nextcloud client created and uploaded 20GB jpg ....
Dont ask ...
⚠️ This issue respects the following points: ⚠️
Bug description
Hi, I've discovered that my nextcloud cronjob that runs every 15 minutes crashes ones per day 16:45 I'm running the cron with 1G memory limit to evoid the oom killer kick in: php8.1 -d memory_limit=1G -f /var/www/nextcloud/cron.php And get an email everyday:
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20814848728 bytes) in /var/www/nextcloud/lib/private/Files/Storage/Local.php on line 327
Any suggestion howto futher debug what job exactly caused the issue?
Since it happens once every day at a specific timestamp it should be one of those:![grafik](https://github.com/nextcloud/server/assets/8735702/1dc628d6-e788-42fd-9815-61101ae88a08)
Steps to reproduce
Create Crontab with the current release: /15 * php8.1 -d memory_limit=1G -f /var/www/nextcloud/cron.php
Once per day, cron.php grows to 20GB Memory --> OOM
Expected behavior
Cronjob should not run OOM
Installation method
None
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response