[php-src] Issue #11848: Nextcloud Fatal Error Insufficient shared memory

From: Date: Tue, 01 Aug 2023 13:17:49 +0000
Subject: [php-src] Issue #11848: Nextcloud Fatal Error Insufficient shared memory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245080@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11848 Author: ClodoaldoPinto ### Description I get this message immediately after reboot trying to run a php script: ``` # sudo -u apache php updater.phar Mon Jul 31 17:59:24 2023 (2241): Fatal Error Insufficient shared memory! ``` It is a Nextcloud upgrade script. Also these messages in the Nextcloud overview panel: [![enter image description here][1]][1] Nexcloud was working a few days ago. Everything else is running correctly. ``` # cat /etc/php.d/10-opcache.ini | grep -i interned ; The amount of memory for interned strings in Mbytes. ;opcache.interned_strings_buffer=8 opcache.interned_strings_buffer=256 ``` When I try to run the cron job: ``` # sudo -u apache php /var/www/html/nextcloud/cron.php Mon Jul 31 18:20:55 2023 (2785): Fatal Error Insufficient shared memory! ``` ``` # sudo -u apache free -m total used free shared buff/cache available Mem: 31626 985 30569 25 470 30640 Swap: 16383 0 16383 ``` ``` # ipcs -lm ------ Shared Memory Limits -------- max number of segments = 4096 max seg size (kbytes) = 18014398509465599 max total shared memory (kbytes) = 18446744073709551612 min seg size (bytes) = 1 # ipcs -ma ------ Message Queues -------- key msqid owner perms used-bytes messages ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00487d1d 0 postgres 600 56 6 ------ Semaphore Arrays -------- key semid owner perms nsems ``` ``` # php -i | grep "Loaded Configuration File" Loaded Configuration File => /etc/php.ini # cat /etc/php.ini | grep -i memory_limit memory_limit = 512M # sudo -u apache cat /etc/php.ini | grep -i memory_limit memory_limit = 512M ``` Any ideas? EDIT ---- If I change ``` opcache.interned_strings_buffer=256 ``` to ``` opcache.interned_strings_buffer=64 ``` It works but still that message in the Nextcloud overview panel: > The OPcache interned strings buffer is nearly full. To assure that repeating strings can be > effectively cached, it is recommended to apply opcache.interned_strings_buffer to your PHP > configuration with a value higher than 8. [1]: https://i.stack.imgur.com/lZo3C.png ### PHP Version PHP 8.1.21 ### Operating System RockyLinux 9

« previous php.bugs (#245080) next »