After this automatic upgrade my sites broke, I am receiving critical errors within the error logs.
2023/11/28 11:15:11 [error] 3402504#3402504: *199406 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "media" in /home/domain/web/domain.com/public_html/wp-content/plugins/debloat/inc/optimize-css/stylesheet.php on line 180" while reading response header from upstream, client: 217.113.194.245, server: domain.com, request: "GET /produse/product-name/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm-domain.com.sock:", host: "domain.com"
2023/11/28 11:15:11 [crit] 3402504#3402504: *199406 mkdir() "/var/cache/nginx/micro/domain.com/f" failed (13: Permission denied) while reading upstream, client: 217.113.194.245, server: domain.com, request: "GET /produse/product-name/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm-domain.com.sock:", host: "domain.com"
2023/11/28 11:15:26 [error] 3402504#3402504: *199411 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "media" in /home/domain/web/domain.com/public_html/wp-content/plugins/debloat/inc/optimize-css/stylesheet.php on line 180" while reading response header from upstream, client: 217.113.194.218, server: domain.com, request: "GET /produse/product-name/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm-domain.com.sock:", host: "domain.com"
2023/11/28 11:15:26 [crit] 3402504#3402504: *199411 mkdir() "/var/cache/nginx/micro/domain.com/5" failed (13: Permission denied) while reading upstream, client: 217.113.194.218, server: domain.com, request: "GET /produse/product-name/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm-domain.com.sock:", host: "domain.com"
eris
November 28, 2023, 12:07pm
2
What is the permission of:
/var/cache/nginx/micro/domain.com/
ls -ld domain.com
drwxr-xr-x 2 root root 4096 Nov 28 12:01 domain.com
eris
November 28, 2023, 12:47pm
4
That is wrong it should be
drwxr-xr-x 18 www-data root
chown www-data:root /var/cache/nginx/micro/$domain
chmod 640 /var/cache/nginx/micro/$domain
should solve the issue
Dmitry
November 28, 2023, 1:38pm
5
I also have a problem after updating Hestia: php-fpm8.2 fell and when restarted it gives the error: Error: ERROR: Restart of php8.2-fpm failed.
and the sites became unavailable.
Dmitry
November 28, 2023, 3:21pm
6
Tell me, did I do it right? In the file /etc/php/8.2/fpm/pool.d/www.conf, I replaced the user value from hestiamail to www-data
After that everything worked.
Here are the contents of the file:
[www]
listen = 127.0.0.1:9000
listen.allowed_clients = 127.0.0.1
user = www-data
group = www-data
pm = ondemand
pm.max_children = 4
pm.max_requests = 4000
pm.process_idle_timeout = 10s
eris
November 28, 2023, 3:48pm
7
Does the hestiamail user exists / did you remove it. In that case create it again…
Dmitry
November 28, 2023, 4:04pm
8
What is the hestiamail user for?
I can confirm that this did the trick.
Scratch that, modifying the ownership of those folders worked indeed, but yesterday I have restored a backup and today the server updated again. And now I have another issue… by fixing ownership those errors go away, however now this error appears
nginx: [emerg] the shared memory zone "domain.com" is already declared for a different use in /etc/nginx/conf.d/fastcgi_cache_pool.conf:
I found this other article in the community forum FastCGI cache error and followed the steps in there, but it did not help unfortunately…
sahsanu
November 29, 2023, 7:09am
13
Show the ouput of this command (replace domain\.com
with your actual domain):
grep -RP 'fastcgi_cache\s{1,}domain\.com' /home/*/conf/web/ /etc/nginx/
eris
November 29, 2023, 9:52am
14
There is an bug in v-add-fastcgi that change it back…
Chown should work have submitted a PR to change this behavoiur
Will need to release an update to fix it permanently …
1 Like
system
Closed
December 29, 2023, 9:53am
15
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.