Unable access Panel after upgrade system: Port Lost

Earlier I upgraded my server OS from Ubuntu 20.04 to 22.04. After the upgrade, I got a 500 error accessing Hestia and I followed this forum post to do the following.

apt remove libzip5 libzip4 unzip libonig5 libonig4 libonig2
apt install hestia-php

Then I rebooted the system. Now I can access the website hosted on the server normally, but I can’t access the Hestia web admin panel through the specified port. I checked the port with the command lsof -i and found that Hestia did not register the port.

What should I do in this case?

check docs: Upgrading Operating systems β€” Hestia Control Panel documentation

Is systemctl status hestia working?

Seems it lost.

[email protected]:~# systemctl status hestia
Unit hestia.service could not be found.
[email protected]:~# systemctl restart hestia
Failed to restart hestia.service: Unit hestia.service not found.
[email protected]:~# apt install hestia-php
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
hestia-php is already the newest version (8.1.12).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[email protected]:~# 

Installing hestia-nginx failed.

Selecting previously unselected package hestia-nginx.
(Reading database ... 92792 files and directories currently installed.)
Preparing to unpack .../hestia-nginx_1.23.2_amd64.deb ...
Unpacking hestia-nginx (1.23.2) ...
Setting up hestia-nginx (1.23.2) ...
Job for hestia.service failed because the control process exited with error code.
See "systemctl status hestia.service" and "journalctl -xeu hestia.service" 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-12-30 13:51:51 UTC; 17ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 21127 ExecStart=/etc/init.d/hestia start (code=exited, status=127)
      Tasks: 2 (limit: 1029)
     Memory: 2.7M
        CPU: 29ms
     CGroup: /system.slice/hestia.service
             β”œβ”€21132 "nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx"
             └─21134 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

Dec 30 13:51:50 hks.lun.im systemd[1]: Starting LSB: starts the hestia control panel...
Dec 30 13:51:50 hks.lun.im hestia[21127]:  * Starting hestia-nginx hestia-nginx
Dec 30 13:51:51 hks.lun.im hestia[21127]:    ...done.
Dec 30 13:51:51 hks.lun.im hestia[21127]:  * Starting hestia-php hestia-php
Dec 30 13:51:51 hks.lun.im hestia[21133]: /usr/local/hestia/php/sbin/hestia-php: error while loading shared libraries: libzip.so.5: cannot open shared object file: No such file or directory
Dec 30 13:51:51 hks.lun.im systemd[1]: hestia.service: Control process exited, code=exited, status=127/n/a
Dec 30 13:51:51 hks.lun.im systemd[1]: hestia.service: Failed with result 'exit-code'.
Dec 30 13:51:51 hks.lun.im systemd[1]: hestia.service: Unit process 21132 (hestia-nginx) remains running after unit stopped.
Dec 30 13:51:51 hks.lun.im systemd[1]: hestia.service: Unit process 21134 (hestia-nginx) remains running after unit stopped.
Dec 30 13:51:51 hks.lun.im systemd[1]: Failed to start LSB: starts the hestia control panel.
Error: ERROR: Restart of hestia failed.
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-nginx
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
[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-12-30 13:51:56 UTC; 2min 0s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 21679 ExecStart=/etc/init.d/hestia start (code=exited, status=127)
      Tasks: 2 (limit: 1029)
     Memory: 2.6M
        CPU: 12ms
     CGroup: /system.slice/hestia.service
             β”œβ”€21132 "nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx"
             └─21134 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""

Dec 30 13:51:56 hks.lun.im systemd[1]: Starting LSB: starts the hestia control panel...
Dec 30 13:51:56 hks.lun.im hestia[21679]:  * Starting hestia-nginx hestia-nginx
Dec 30 13:51:56 hks.lun.im hestia[21679]:    ...done.
Dec 30 13:51:56 hks.lun.im hestia[21679]:  * Starting hestia-php hestia-php
Dec 30 13:51:56 hks.lun.im hestia[21684]: /usr/local/hestia/php/sbin/hestia-php: error while loading shared libraries: libzip.so.5: cannot open shared object file: No such file or directory
Dec 30 13:51:56 hks.lun.im systemd[1]: hestia.service: Control process exited, code=exited, status=127/n/a
Dec 30 13:51:56 hks.lun.im systemd[1]: hestia.service: Failed with result 'exit-code'.
Dec 30 13:51:56 hks.lun.im systemd[1]: hestia.service: Unit process 21132 (hestia-nginx) remains running after unit stopped.
Dec 30 13:51:56 hks.lun.im systemd[1]: hestia.service: Unit process 21134 (hestia-nginx) remains running after unit stopped.
Dec 30 13:51:56 hks.lun.im systemd[1]: Failed to start LSB: starts the hestia control panel.

Update:

Found a post about edit source, but my source is already set to Jammy.

The problem has been solved.

Since I updated to 22.04.1 instead of 22.04, the dependencies needed for libzip did not correspond.
According to the information provided in this post, users who updated to 22.04.1 should install libzip5 manually.

wget http://archive.ubuntu.com/ubuntu/pool/universe/libz/libzip/libzip5_1.5.1-0ubuntu1_amd64.deb
sudo dpkg -i libzip5_1.5.1-0ubuntu1_amd64.deb

Then restart the Hestia service.

systemctl reatart hestia.service
3 Likes

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