PaulLereverend / NextcloudDuplicateFinder

Save some space by finding your duplicate files
GNU Affero General Public License v3.0
79 stars 16 forks source link

[NC 24] PHP Fatal error: Allowed memory size of [nnn] bytes exhausted #74

Open C0deUser opened 2 years ago

C0deUser commented 2 years ago

Nextcloud Version: 24.0.0 duplicate finder version: 0.0.14

Running: sudo -u nginx php --define apc.enable_cli=1 /var/www/html/nextcloud/occ app:enable duplicatefinder

I'm getting console error: PHP Fatal error: Allowed memory size of [nnn] bytes exhausted (tried to allocate 4096 bytes) in /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php on line 82 Current value in php.ini: memory_limit = 1024M

multiple increase in value leads to an error in other php files, for example: PHP Fatal error: Allowed memory size of 3221225472 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/nextcloud/apps/duplicatefinder/lib/Db/EEntity.php on line 44

This, among other things, prevents a regular update to version 24 from version 23. A workaround is to disable the app before updating

Updating <duplicatefinder> 
duplicatefinder: Repair FileInfo objects

 Done
    0/0 [->--------------------------]   0%
Killed
C0deUser commented 2 years ago

duplicates issue: #73