Hestia 1.8.11 broke my sites

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"

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

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

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.
2023-11-28_163656

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

Does the hestiamail user exists / did you remove it. In that case create it again…

What is the hestiamail user for?

To prevent this…

2 Likes

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…

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/

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.