unfortunately changing to the supposed settings didn’t work, again 502 bad gateway.
I’ve disabled tOPcache to get it going. see asked details below
ohw, in the mean while I am building a new server on CentOS stream 9, also this installation, which is new is having the same sympthoms 502 bad gateway on an enabled OPcache.(php 8.2)
An other bit information, it is a VM (2 vcpu on 1 socket and 4Gb mem) this makes that a process can consume more then 2 Gb without NUMA effects.
Sorry to say that my php experience is not on that level, but it looks like a php-fpm problem.
numastat -n
numastat -n
Per-node numastat info (in MBs):
Node 0 Total
--------------- ---------------
Numa_Hit 572860.38 572860.38
Numa_Miss 0.00 0.00
Numa_Foreign 0.00 0.00
Interleave_Hit 82.86 82.86
Local_Node 572860.38 572860.38
Other_Node 0.00 0.00
I agree. There’s not really much NC can do about this.
Even most variations of opcache settings shouldn’t trigger this (I don’t think) unless there is a deeper underlying problem.
Likely an upstream (GitHub - php/php-src: The PHP Interpreter) matter or possibility some weird CentOS Stream build/packaging/runtime interaction. Or maybe a hardware or VM platform issue.
The 502 bad gateway is sort of a red herring. It’s just a generic error occurring because php-fpm is bombing out.
Since PHP 8.2.8 is < 30 days old, a PHP bug does seem a possibility.
I did try with this configuration, but also when I enable OPcache it ended up in a 502 bad gateway.
The fact I am running 8.2 was due a problem I had with 8.0, after upgrade to 8.1 it was even worse, then upgrade to 8.2 what is running more smooth than 8.0 except the problem with OPcache.
Now the challenge is how to bring this issue to the php developers, because I am not a developer, also not that familiar with the php language. I can deliver all kinds of ligging if needed.
2023/07/30 19:49:35 [error] 135826#0: *27 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: <ip_address>, server: <host., request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: <host>"
/var/log/php-fpm/error.log
[30-Jul-2023 19:49:35] WARNING: [pool www] child 135848 exited on signal 11 (SIGSEGV) after 6.420728 seconds from start
[30-Jul-2023 19:49:35] NOTICE: [pool www] child 135853 started
I had some problems with calendar and Deck, where I dis some searches on the internet witch indicated that the problems should be solved in php 8.1. At that time php was also recommended by NC.
Right now php8.2 is recommended, maybe more users are experiencing this error when running dualstack ip configuration.
After a lot of testing following logs, at the end it was a configuration in config.config.php involving the trusted proxies setting. I dont know why but I exchanged both addresses for the DNS hostname