Skip to content

Allowed memory size of xxx bytes exhausted in current latest-container #1413

@pfaelzerchen

Description

@pfaelzerchen

After upgrading my docker-setup to the current latest-container from the 21-branch some hours ago, I got the following error messages:

docker exec nextcloud su - www-data -s /bin/bash -c 'php -f /var/www/html/cron.php'

Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 438272 bytes) in /var/www/html/3rdparty/composer/autoload_real.php on line 37

This happens basically with every php-command, e.g. occ to add the missing indices. Something seems wrong here with PHP Memory Limits. The following works fine:

docker exec nextcloud su - www-data -s /bin/bash -c 'php -d memory_limit=-1 -f /var/www/html/cron.php'

The PHP_MEMORY_LIMIT variable within the container seems to be set to 512. I found an older support-ticket regarding issues with this limit:
https://help.nextcloud.com/t/allowed-memory-size-of-xxx-bytes-exhausted/39371

So there seems an issue with the container's internal environment configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions