Admin panel 500 IS error

Hi

We are getting this error in /var/log/hestia/nginx-error.log when trying to access the admin panel:

2025/03/17 07:31:58 [crit] 322252#0: *17 connect() to unix:/run/hestia-php.sock failed (13: Permission denied) while connecting to upstream, client: 81.174.134.33, server: _, request: “GET / HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “www.xxxx.com:9183

All the sites work fine. The service seems to be running ok:

service hestia status
● hestia.service - LSB: starts the hestia control panel
     Loaded: loaded (/etc/init.d/hestia; generated)
     Active: active (running) since Mon 2025-03-17 06:59:31 UTC; 34min ago
       Docs: man:systemd-sysv-generator(8)
      Tasks: 3 (limit: 4562)
     Memory: 7.9M
        CPU: 134ms
     CGroup: /system.slice/hestia.service
             ├─322251 "nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx"
             ├─322252 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
             └─322254 "php-fpm: master process (/usr/local/hestia/php/etc/php-fpm.conf)"

Any suggestions on what to look at?

Thanks :slight_smile:

Andy

What is the permission of:

/run/hestia-php.sock

What version are you running?

Thanks for the quick reply.

 ls -l /run/hestia-php.sock
srw-rw---- 1 www-data www-data 0 Mar 17 07:42 /run/hestia-php.sock

I’m on 1.9.3. I did just upgrade it from 1.6.7 though, as it hadn’t been updating in ages (looks like a source.list error, and the apt key being invalid). The issue was there before the update though. I’m not sure what else to look at to see what could be causing it (nginx-error.log doesn’t really give much, apart from the .sock error)

Thanks

Andy

Probally hestia-nginx / hestia-php are not updated

It should be hestiaweb right now

How do I do that? I don’t see them as services:

service hestia-nginx status
Unit hestia-nginx.service could not be found.
root@www:/var/log/hestia# service hestia-php status
Unit hestia-php.service could not be found.

Service name is hestia

But run

apt list hestia*

To see what versions are installed

apt list hestia*
Listing... Done
hestia-nginx/jammy,now 1.27.4 amd64 [installed]
hestia-php/jammy,now 8.3.17 amd64 [installed]
hestia-web-terminal/jammy 1.0.2 amd64
hestia/jammy,now 1.9.3 amd64 [installed]

That looks “fine”

systemctl restart hestia?

Still the same :frowning: I’ve also tried a full server reboot in case there was anything weird going on

/usr/local/hestia/php/etc/php-fpm.conf

Should be :

[www]
listen = /run/hestia-php.sock

user = hestiaweb
group = hestiaweb

listen.owner = hestiaweb
listen.group = hestiaweb
listen.mode = 0660

Thanks. Getting there :slight_smile: It was set:

listen = /var/run/hestia-php.sock
user = www-data
group = www-data
listen.owner = www-data
listen.group = www-data
listen.mode = 0660

I’ve updated it to:


listen = /run/hestia-php.sock
user = hestiaweb
group = hestiaweb
listen.owner = hestiaweb
listen.group = hestiaweb
listen.mode = 0660

I now get this in the error log:

2025/03/17 10:08:45 [error] 7620#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Undefined array key "RELEASE_BRANCH" in /usr/local/hestia/web/inc/main.php on line 116; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/inc/main.php on line 549; PHP message: PHP Warning:  foreach() argument must be of type array|object, null given in /usr/local/hestia/web/inc/main.php on line 550; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Warning:  Trying to access array offset on null in /usr/local/hestia/web/login/index.php on line 443; PHP message: PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/hestia/web/login/index.php:448
Stack trace:
#0 /usr/local/hestia/web/login/index.php(448): in_array()
#1 {main}
  thrown in /usr/local/hestia/web/login/index.php on line 448" while reading response header from upstream, client: 81.174.134.33, server: _, request: "GET /login/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "www.xxx

.com:9183"