PHP Fatal Error in Docker ghcr.io/nextcloud-releases/all-in-one:latest

Dear all,

I am running against a wall. I am starting the docker version of AiO like so:

sudo docker run -d --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 80:80 --publish 8080:8080 --publish 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro --env NEXTCLOUD_MEMORY_LIMIT=1024M --env PHP_MEMORY_LIMIT=1
042M --env NEXTCLOUD_UPLOAD_LIMIT=16G ghcr.io/nextcloud-releases/all-in-one:latest

But I am still getting the error (from docker logs -f nextcloud-aio-nextcloud

NOTICE: PHP message: PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 4194304 bytes) in /var/www/html/lib/private/Log.php on line 166

Can someone point me into the right direction?

Thanks

I don’t think you actually want PHP_MEMORY_LIMIT=1.

As for the cause for the excessive memory usage, can’t say without more information such as that requested in the support template.

I have actually played back and forth with the env vars and have now both NEXTCLOUD_MEMORY_LIMIT=1024M and PHP_MEMORY_LIMIT=1042M in there.
Both individually do not impact my problem.

The context in which this occurs is that I have ONE huge folder with many (~+ 200K photos). Only on this folder the problem exists. The other ones are accessible.

Any idea how to move forward?

Could it be that NEXTCLOUD_MEMORY_LIMIT=1024M has no effect at all?

when i do sudo docker exec nextcloud-aio-nextcloud php -i | grep memory_limit the result is still memory_limit => 512M => 512M

the same with the PHP_MEMORY_LIMIT env variable.

Still no one? Is it more handy to do this via the docker-compse?
If so, which one should I use (from where)??

This is the correct env. Any changes only get applied to the sibling containers after you stop and start the container via the AIO interface.

I think this is the problem in general: [Bug]: Allowed memory exhausted when listing folder with a large amount of files · Issue #33032 · nextcloud/server · GitHub

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.