Open idressos opened 4 months ago
@Matthias-Ab
I have two Nextcloud installations, on different dedicated servers managed by Virtualmin. One installation is fresh and the other one has received upgrades. On both installations, in the Administration Overview page, I get the following warning:
Do both have similar app combinations? Are both using dedicated FPM pools for Nextcloud or sharing with other apps?
You might also find this of interest to see what's going on: https://github.com/amnuts/opcache-gui
The checks you're hitting are these:
Both instances have almost identical app combinations. I used OPcache-GUI and it looks like the buffers actually are full. Specifically the interned strings buffer is always 100% full, and general memory consumption is at >=85% depending on how high the limit is. The more memory I allocate, the more the usage is.
I faced the same issue with my setup. It looks like the interned_strings_buffer cant be modified using php_admin_value. Although phpinfo shows opcache.interned_strings_buffer as increased, the opcache module is still using the default value.
I saw that with the mentioned opcache-gui tool.
Increasing the opcache.interned_strings_buffer value in the global /etc/php/8.2/fpm/conf.d/10-opcache.ini or /etc/php/8.2/fpm/php.ini did the trick for me.
cat /etc/php/8.2/fpm/conf.d/10-opcache.ini
; configuration for php opcache module
; priority=10
zend_extension=opcache.so
opcache.jit=off
opcache.interned_strings_buffer=32
Maybe the nextcloud check could include a check that verifies if the php setting "interned_strings_buffer" actually matches the interned strings buffer reported by the opcache module.
I see a lot of issues / discussions around this error. Including the above check would perhaps help a lot of people.
Might also be related to this upstream issue https://github.com/php/php-src/issues/11715
Increasing the opcache.interned_strings_buffer value in the global /etc/php/8.2/fpm/conf.d/10-opcache.ini or /etc/php/8.2/fpm/php.ini did the trick for me.
I can confirm this and i also had to set memory_consumption in the ini. Although I recommend putting those values into a custom ini:
cat /etc/php/8.3/fpm/conf.d/99-custom.ini
[opcache]
opcache.interned_strings_buffer=64
opcache.memory_consumption=2048
⚠️ This issue respects the following points: ⚠️
Bug description
I have two Nextcloud installations, on different dedicated servers managed by Virtualmin. One installation is fresh and the other one has received upgrades.
On both installations, in the Administration Overview page, I get the following warning:
No matter what value I set the memory_consumption and interned_strings_buffer options to, even insanely high values, the warning will still show, still prompting me to raise the values to something even higher.
This started happening on Nextcloud versions >=28.
Steps to reproduce
Expected behavior
No warnings concerning OPcache buffers.
Installation method
Community Manual installation with Archive
Nextcloud Server version
master
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
PHP-FPM config: