New install, Debian11, update error

Preparing to unpack .../hestia-nginx_1.23.1_amd64.deb ...
Unpacking hestia-nginx (1.23.1) over (1.23.0) ...
Setting up hestia-php (8.1.9) ...
dpkg: error processing package hestia-php (--configure):
 installed hestia-php package post-installation script subprocess returned error exit status 1
Setting up hestia-nginx (1.23.1) ...
Job for hestia.service failed because the control process exited with error code.
See "systemctl status hestia.service" and "journalctl -xe" for details.

Error in the update?

Please try to run:

apt update && apt upgrade again

apt update && apt upgrade
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://debian.mirror.serveriai.lt/debian bullseye InRelease                                                                    
Hit:3 https://packages.sury.org/apache2 bullseye InRelease                                                                           
Hit:4 https://packages.sury.org/php bullseye InRelease                                                                               
Hit:5 https://nginx.org/packages/mainline/debian bullseye InRelease                                                                  
Hit:6 https://apt.hestiacp.com bullseye InRelease                   
Get:7 https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/debian bullseye InRelease [4637 B]
Fetched 4637 B in 7s (686 B/s)                                                                                                       
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up hestia-php (8.1.9) ...
dpkg: error processing package hestia-php (--configure):
 installed hestia-php package post-installation script subprocess returned error exit status 1
Setting up hestia-nginx (1.23.1) ...
Job for hestia.service failed because the control process exited with error code.
See "systemctl status hestia.service" and "journalctl -xe" for details.
invoke-rc.d: initscript hestia, action "start" failed.
● hestia.service - LSB: starts the hestia control panel
     Loaded: loaded (/etc/init.d/hestia; generated)
     Active: failed (Result: exit-code) since Fri 2022-09-09 17:30:14 EEST; 33ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 1340300 ExecStart=/etc/init.d/hestia start (code=exited, status=70)
      Tasks: 6 (limit: 614)
     Memory: 41.7M
     CGroup: /system.slice/hestia.service
             ├─1239558 php-fpm: master process (/usr/local/hestia/php/etc/php-fpm.conf)
             ├─1240236 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
             ├─1240238 nginx: worker process
             ├─1335851 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
             ├─1335853 nginx: worker process
             └─1340273 php-fpm: pool www

Sep 09 17:30:14 host.xxx.lt hestia[1340306]: [09-Sep-2022 17:30:14] ERROR: FPM initialization failed
Sep 09 17:30:14 host.xxx.lt systemd[1]: hestia.service: Control process exited, code=exited, status=70/SOFTWARE
Sep 09 17:30:14 host.xxx.lt systemd[1]: hestia.service: Failed with result 'exit-code'.
Sep 09 17:30:14 host.xxx.lt systemd[1]: hestia.service: Unit process 1239558 (hestia-php) remains running after unit stopped.
Sep 09 17:30:14 host.xxx.lt systemd[1]: hestia.service: Unit process 1240236 (hestia-nginx) remains running after unit stopped.
Sep 09 17:30:14 host.xxx.lt systemd[1]: hestia.service: Unit process 1240238 (hestia-nginx) remains running after unit stopped.
Sep 09 17:30:14 host.xxx.lt systemd[1]: hestia.service: Unit process 1335851 (hestia-nginx) remains running after unit stopped.
Sep 09 17:30:14 host.xxx.lt systemd[1]: hestia.service: Unit process 1335853 (hestia-nginx) remains running after unit stopped.
Sep 09 17:30:14 host.xxx.lt systemd[1]: hestia.service: Unit process 1340273 (hestia-php) remains running after unit stopped.
Sep 09 17:30:14 host.xxx.lt systemd[1]: Failed to start LSB: starts the hestia control panel.
dpkg: error processing package hestia-nginx (--configure):
 installed hestia-nginx package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 hestia-php
 hestia-nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

systemctl status hestia.service

What is the answer?




[email protected]:~# systemctl status hestia.service
● hestia.service - LSB: starts the hestia control panel
     Loaded: loaded (/etc/init.d/hestia; generated)
     Active: failed (Result: exit-code) since Fri 2022-09-09 17:30:15 EEST; 21min ago
       Docs: man:systemd-sysv-generator(8)
    Process: 1340333 ExecStart=/etc/init.d/hestia start (code=exited, status=70)
      Tasks: 5 (limit: 614)
     Memory: 41.0M
     CGroup: /system.slice/hestia.service
             ├─1239558 php-fpm: master process (/usr/local/hestia/php/etc/php-fpm.conf)
             ├─1240236 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
             ├─1240238 nginx: worker process
             ├─1335851 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
             └─1335853 nginx: worker process

Sep 09 17:30:15 host.xxx.lt systemd[1]: hestia.service: Unit process 1340339 (hestia-php) remains running after unit stopped.
Sep 09 17:30:15 host.xxx.lt systemd[1]: Failed to start LSB: starts the hestia control panel.
Sep 09 17:45:18 host.xxx.lt sudo[1341786]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Sep 09 17:45:18 host.xxx.lt sudo[1341786]: pam_unix(sudo:session): session closed for user root
Sep 09 17:45:18 host.xxx.lt sudo[1341796]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Sep 09 17:45:18 host.xxx.lt sudo[1341796]: pam_unix(sudo:session): session closed for user root
Sep 09 17:45:18 host.xxx.lt sudo[1341808]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Sep 09 17:45:18 host.xxx.lt sudo[1341808]: pam_unix(sudo:session): session closed for user root
Sep 09 17:45:18 host.xxx.lt sudo[1341817]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Sep 09 17:45:18 host.xxx.lt sudo[1341817]: pam_unix(sudo:session): session closed for user root

systemctl stop hestia
systemctl start hestia
systemctl status hestia

Same,

journalctl -xe:

Sep 09 17:55:18 host.xxx.lt hestia[1342682]: Starting hestia-nginx: hestia-nginx.
Sep 09 17:55:18 host.xxx.lt hestia[1342682]: Starting hestia-php: hestia-php
Sep 09 17:55:18 host.xxx.lt hestia[1342688]: [09-Sep-2022 17:55:18] ERROR: Another FPM instance seems to already listen on /var/run/hestia-php.sock
Sep 09 17:55:18 host.xxx.lt hestia[1342688]: [09-Sep-2022 17:55:18] ERROR: FPM initialization failed
Sep 09 17:55:18 host.xxx.lt systemd[1]: hestia.service: Control process exited, code=exited, status=70/SOFTWARE

rm -fr /var/run/hestia-php.sock

Otherwise reboot server

reboted, hestia service was not still running.
Ran update , stopped hestia service, started it - everything ok now.

Thanks