HCP Error 500 after upgrade Ubuntu 20.04 to 22.04

Are you sure you use the last version?

https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh

Update link to raw

also, please only run force param when you know what you’re doing!!!

Check if you have updated your apt source list file, you probaly try to install the old package for 16.04, you need to adjust the release name for every additional source file beside the default one.

Yes, I’m sure I do, because I want to completely reinstall CCP
My mail web interface does not work.
Through the mail client, mail is sent and received.
Therefore, I have made full backup copies of the accounts and am ready to completely remove the current system.
And then re-install.
From scratch.
Please tell me how to do it.

Download: https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh

And run the installer

then reinstall the whole os/vps first, --force param isnt for reinstall in such a way.

Thank you, everything is successfully installed as indicated.
install hestia-php successfully
The process start hestia still stops on startup.
Error loading library libzip.so.5

/usr/local/hestia/php/sbin/hestia-php: error while loading shared libraries: libzip.so.5: cannot open shared object file:

Can you suggest what to do.
Install a library or something
I have doubts as it was previously said to remove this library.

I’m lost, please help

And then reinstall hestia-php again
it should resolve the issue

systemctl start hestia

and paste here what type.

root@x-host:~# apt remove libzip5 libzip4 unzip libonig5 libonig4 libonig2 hestia-php

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package ‘libzip5’ is not installed, so not removed
Package ‘libonig4’ is not installed, so not removed
Package ‘libonig2’ is not installed, so not removed
The following package was automatically installed and is no longer required:
zlib1g-dev
Use ‘apt autoremove’ to remove it.
The following packages will be REMOVED:
hestia-php libonig5 libzip-dev libzip4 unzip
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 1,494 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package ‘hestia-php’ missing; assuming package has no files currently installed
(Reading database … 101667 files and directories currently installed.)
Removing hestia-php (8.1.8) …
Removing libonig5:amd64 (6.9.7.1-2build1) …
Removing libzip-dev:amd64 (1.7.3-1ubuntu2) …
Removing libzip4:amd64 (1.7.3-1ubuntu2) …
Removing unzip (6.0-26ubuntu3) …
Processing triggers for man-db (2.10.2-1) …
Processing triggers for mailcap (3.70+nmu1ubuntu1) …
Processing triggers for libc-bin (2.35-0ubuntu3.1) …

dpkg: error processing package hestia-php (–configure):
installed hestia-php package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.35-0ubuntu3.1) …
Processing triggers for man-db (2.10.2-1) …
Processing triggers for mailcap (3.70+nmu1ubuntu1) …
Errors were encountered while processing:
hestia-php
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@x-host:~# systemctl start hestia
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.

× hestia.service - LSB: starts the hestia control panel
Loaded: loaded (/etc/init.d/hestia; generated)
Active: failed (Result: exit-code) since Wed 2022-08-17 23:05:44 MSK; 38s ago
Docs: man:systemd-sysv-generator(8)
Process: 164877 ExecStart=/etc/init.d/hestia start (code=exited, status=127)
Tasks: 2 (limit: 19068)
Memory: 8.8M
CPU: 10ms
CGroup: /system.slice/hestia.service
├─1191 “nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx”
└─1192 “nginx: worker process” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “”

Aug 17 23:05:44 x-host.ru systemd[1]: Starting LSB: starts the hestia control panel…
Aug 17 23:05:44 x-host.ru hestia[164877]: * Starting hestia-nginx hestia-nginx
Aug 17 23:05:44 x-host.ru hestia[164877]: …done.
Aug 17 23:05:44 x-host.ru hestia[164877]: * Starting hestia-php hestia-php
Aug 17 23:05:44 x-host.ru hestia[164882]: /usr/local/hestia/php/sbin/hestia-php: error while loading shared libraries: libzip.so.5: cannot open s>
Aug 17 23:05:44 x-host.ru systemd[1]: hestia.service: Control process exited, code=exited, status=127/n/a
Aug 17 23:05:44 x-host.ru systemd[1]: hestia.service: Failed with result ‘exit-code’.
Aug 17 23:05:44 x-host.ru systemd[1]: hestia.service: Unit process 1191 (hestia-nginx) remains running after unit stopped.
Aug 17 23:05:44 x-host.ru systemd[1]: hestia.service: Unit process 1192 (hestia-nginx) remains running after unit stopped.
Aug 17 23:05:44 x-host.ru systemd[1]: Failed to start LSB: starts the hestia control panel.

install this https://ubuntu.pkgs.org/20.04/ubuntu-universe-amd64/libzip5_1.5.1-0ubuntu1_amd64.deb.html

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

i think you update to 22.04.01 not 22.04

1 Like

Thank you so much!
I was very happy when everything worked.
You are just a magician :slight_smile:

Maybe you can tell me the right way
Roundcube web interface stopped working
Returns a 500 error
Mail is sent and received by the mail client.

An attempt to update the HCP roundcube component according to the instructions from the developers returns the previous effect.

Thanks for the help!
I’m glad everything is working now :slight_smile:

https://docs.hestiacp.com/admin_docs/upgrades.html#ubuntu-20-04-focal-to-ubuntu-22-04-jammy

eris

Please tell me if it is possible to install the MySQL database.
The site is supported by MySQL
MariaDB is installed in the HCP System
Can I add another MySQL DB
Can you please tell me if there is a link to the manual?

Thanks
Respectfully,

You can add an extra database server if need as long mysql8 is in “Legacy” mode

Have worked in the past on it for native mysql8 support see

Feel free to help with it an provide a PR

What provide a PR can I be helpful please tell me ?

Branch I have not prepared a PR yet

I still haven’t solved the problem till now, Still error 500, I tried following this thread but still not working! :sweat::sweat::sweat:
Can you arrange the steps and commands sequentially?

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

2 Likes