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:
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