Suddenly my hestiacp is not working and all the sites inside are not working.
When I hit apt-update I got the following.
Any workaround please urgent.
Suddenly my hestiacp is not working and all the sites inside are not working.
When I hit apt-update I got the following.
Any workaround please urgent.
fix your apt sources, mc3man/trustymedia repo is nothing we ship with hestia (or hetzner ships with its builds).
Check your logs in /var/logs/hestia, mostly nginx-error log.
try:
chown -R hestiaweb:hestiaweb /usr/local/hestia/data/sessions
And try again, let me know if it works.
No luck the error still persists.
I have fixed the issue by adding hestiaweb user to the sudo group.
One of my clients has the same problem for a few hours now. He canât access the control panel and none of the clientâs sites are working. This is the error and the solution didnât work.
root@server ~ # systemctl status hestia
â hestia.service - LSB: starts the hestia control panel
Loaded: loaded (/etc/init.d/hestia; generated)
Active: failed (Result: exit-code) since Thu 2025-02-06 11:51:40 CET; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 413944 ExecStart=/etc/init.d/hestia start (code=exited, status=70)
Tasks: 2 (limit: 77015)
Memory: 31.3M
CGroup: /system.slice/hestia.service
ââ1436 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
ââ1437 nginx: worker process
Feb 06 11:51:40 server.domain.xyz systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 06 11:51:40 server.domain.xyz systemd[1]: Starting LSB: starts the hestia control panelâŚ
Feb 06 11:51:40 server.domain.xyz hestia[413944]: * Starting hestia-nginx hestia-nginx
Feb 06 11:51:40 server.domain.xyz hestia[413944]: âŚdone.
Feb 06 11:51:40 server.domain.xyz hestia[413944]: * Starting hestia-php hestia-php
Feb 06 11:51:40 server.domain.xyz hestia[413949]: [06-Feb-2025 11:51:40] ERROR: [pool www] cannot get uid for user âhestiawebâ
Feb 06 11:51:40 server.domain.xyz hestia[413949]: [06-Feb-2025 11:51:40] ERROR: FPM initialization failed
Feb 06 11:51:40 server.domain.xyz systemd[1]: hestia.service: Control process exited, code=exited, status=70/SOFTWARE
Feb 06 11:51:40 server.domain.xyz systemd[1]: hestia.service: Failed with result âexit-codeâ.
Feb 06 11:51:40 server.domain.xyz systemd[1]: Failed to start LSB: starts the hestia control panel.
root@server ~ # chown -R hestiaweb:hestiaweb /usr/local/hestia/data/sessions
chown: invalid user: âhestiaweb:hestiawebâ
I run the command
usermod -a -G dialout hestiaweb
but I get hestiaweb doesnât exists, however, when I try to add the user using adduser
adduser hestiaweb
then
then
systemctl restart hestia
the hestiacp state is active but admin panel still error 500
root@server ~ # systemctl status hestia
â hestia.service - LSB: starts the hestia control panel
Loaded: loaded (/etc/init.d/hestia; generated)
Active: active (running) since Thu 2025-02-06 12:04:39 CET; 8s ago
Docs: man:systemd-sysv-generator(8)
Process: 416337 ExecStart=/etc/init.d/hestia start (code=exited, status=0/SUCCESS)
Tasks: 3 (limit: 77015)
Memory: 36.4M
CGroup: /system.slice/hestia.service
ââ 1436 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
ââ 1437 nginx: worker process
ââ416342 php-fpm: master process (/usr/local/hestia/php/etc/php-fpm.conf)
Feb 06 12:04:39 server.sabgate.xyz systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 06 12:04:39 server.sabgate.xyz systemd[1]: Starting LSB: starts the hestia control panel...
Feb 06 12:04:39 server.sabgate.xyz hestia[416337]: * Starting hestia-nginx hestia-nginx
Feb 06 12:04:39 server.sabgate.xyz hestia[416337]: ...done.
Feb 06 12:04:39 server.sabgate.xyz hestia[416337]: * Starting hestia-php hestia-php
Feb 06 12:04:39 server.sabgate.xyz hestia[416337]: ...done.
Feb 06 12:04:39 server.sabgate.xyz systemd[1]: Started LSB: starts the hestia control panel.
I try the updates
apt-get update && apt-get upgrade -y
root@server ~ # apt-get update && apt-get upgrade -y
Hit:1 http://mirror.hetzner.de/ubuntu/packages focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://mirror.hetzner.de/ubuntu/packages focal-updates InRelease
Hit:5 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:6 http://mirror.hetzner.de/ubuntu/packages focal-backports InRelease
Get:7 https://nginx.org/packages/mainline/ubuntu focal InRelease [3,602 B]
Hit:8 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:9 https://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease
Hit:10 http://mirror.hetzner.de/ubuntu/packages focal-security InRelease
Hit:11 https://apt.hestiacp.com focal InRelease
Get:12 https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/ubuntu focal InRelease [7,767 B]
Hit:13 http://ppa.launchpad.net/ondrej/apache2/ubuntu focal InRelease
Hit:14 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Err:7 https://nginx.org/packages/mainline/ubuntu focal InRelease
The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key <[email protected]>
Fetched 7,767 B in 1s (7,826 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://nginx.org/packages/mainline/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key <[email protected]>
W: Failed to fetch https://nginx.org/packages/mainline/ubuntu/dists/focal/InRelease The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libmagic-mgc libmagic1 libpmem1 python3-ply
Use 'apt autoremove' to remove them.
The following packages have been kept back:
apache2 apache2-bin apache2-data apache2-utils hestia libgd3 linux-image-generic php-common postgresql postgresql-client-common postgresql-common postgresql-contrib python3-update-manager ubuntu-advantage-tools update-manager-core
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up hestia-nginx (1.27.3) ...
/var/lib/dpkg/info/hestia-nginx.postinst: line 15: syshealth_adapt_hestia_nginx_listen_ports: command not found
dpkg: error processing package hestia-nginx (--configure):
installed hestia-nginx package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
hestia-nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any ideas?
Fix the repo error you habe there and rerun the update.
root@server ~ # sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up hestia-nginx (1.27.3) ...
/var/lib/dpkg/info/hestia-nginx.postinst: line 15: syshealth_adapt_hestia_nginx_listen_ports: command not found
dpkg: error processing package hestia-nginx (--configure):
installed hestia-nginx package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
hestia-nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
This will solve
chown hestiaweb:hestiaweb /run/hestia-php.sock
Try this
apt update
# Remove the hesita-php hestia-nginx package
apt remove hestia-php hestia-nginx
# Reinstall Hestia package
apt install hestia --reinstall
# "Reinstall hestia-php / hestia-nginx
apt install hestia-php hestia-nginx
# When Done do a full upgrade
apt upgrade -y
root@server ~ # apt update
Hit:1 http://mirror.hetzner.de/ubuntu/packages focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://mirror.hetzner.de/ubuntu/packages focal-updates InRelease
Hit:5 https://apt.hestiacp.com focal InRelease
Hit:6 http://mirror.hetzner.de/ubuntu/packages focal-backports InRelease
Hit:7 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:8 https://nginx.org/packages/mainline/ubuntu focal InRelease
Hit:9 http://mirror.hetzner.de/ubuntu/packages focal-security InRelease
Hit:10 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:11 https://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease
Get:12 https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/ubuntu focal InRelease [7,767 B]
Hit:13 http://ppa.launchpad.net/ondrej/apache2/ubuntu focal InRelease
Hit:14 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Fetched 7,767 B in 1s (7,893 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
14 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@server ~ # apt remove hestia-php hestia-nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
hestia-nginx hestia-php
0 upgraded, 0 newly installed, 2 to remove and 14 not upgraded.
1 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
(Reading database ... 51026 files and directories currently installed.)
Removing hestia-php (8.3.16) ...
dpkg: warning: while removing hestia-php, directory '/usr/local/hestia/php/var/log' not empty so not removed
Removing hestia-nginx (1.27.3) ...
dpkg: warning: while removing hestia-nginx, directory '/usr/local/hestia/nginx/logs' not empty so not removed
Processing triggers for systemd (245.4-4ubuntu3.24) ...
root@server ~ # apt install hestia-php hestia-nginx
Reading package lists... Done
Get:1 https://apt.hestiacp.com focal/main amd64 hestia-php amd64 8.3.16 [63.0 MB]
Fetched 63.0 MB in 1s (67.1 MB/s)
Selecting previously unselected package hestia-nginx.
(Reading database ... 50592 files and directories currently installed.)
Preparing to unpack .../hestia-nginx_1.27.3_amd64.deb ...
Unpacking hestia-nginx (1.27.3) ...
Selecting previously unselected package hestia-php.
Preparing to unpack .../hestia-php_8.3.16_amd64.deb ...
[ * ] File Manager is up to date (7.12.0)...
[ * ] Roundcube is up to date (1.6.9)...
[ ! ] Update Hestia PHP dependencies...
/usr/local/hestia/bin/v-add-sys-dependencies: line 69: /usr/local/hestia/php/bin/php: No such file or directory
Your lock file does not contain a compatible set of packages. Please run composer update.
ERROR: PHPMailer installation failed!
Please report this to our development team:
https://github.com/hestiacp/hestiacp/issues
[ * ] Updating Cloudflare IP Ranges for NGINX...
[ * ] phpMyAdmin is up to date (5.2.2)...
[ * ] Upgrading phppgadmin to version 7.14.6...
=============================================================================
Installation tasks complete, performing clean-up...
=============================================================================
[ * ] Rebuilding user accounts and domains, this may take a few minutes...
- user...
- user...
- user...
- user...
- user...
- user...
- user...
[ * ] Restarting services...
/usr/local/hestia/bin/v-restart-proxy: /usr/local/hestia/web/inc/mail-wrapper.php: /usr/local/hestia/php/bin/php: bad interpreter: No such file or directory
Error: nginx restart failed
Error: ERROR: Restart of php8.1-fpm failed.
Error: ERROR: Restart of hestia failed.
=============================================================================
Upgrade complete! If you encounter any issues or find a bug,
please take a moment to report it to us on GitHub at the URL below:
https://github.com/hestiacp/hestiacp/issues
Read the release notes to learn about new fixes and features:
https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md
We hope that you enjoy using this version of Hestia Control Panel,
have a wonderful day!
Sincerely,
The Hestia Control Panel development team
Web: https://www.hestiacp.com/
Docs: https://docs.hestiacp.com/
Forum: https://forum.hestiacp.com/
GitHub: https://github.com/hestiacp/hestiacp/
Help support the Hestia Control Panel project by donating via PayPal:
https://www.hestiacp.com/donate
Made with love & pride by the open-source community around the world.
=============================================================================
/usr/local/hestia/func/upgrade.sh: /usr/local/hestia/web/inc/mail-wrapper.php: /usr/local/hestia/php/bin/php: bad interpreter: No such file or directory
root@server ~ # apt install hestia-php hestia-nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
hestia-nginx hestia-php
0 upgraded, 2 newly installed, 0 to remove and 14 not upgraded.
Need to get 0 B/66.6 MB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package hestia-nginx.
(Reading database ... 50592 files and directories currently installed.)
Preparing to unpack .../hestia-nginx_1.27.3_amd64.deb ...
Unpacking hestia-nginx (1.27.3) ...
Selecting previously unselected package hestia-php.
Preparing to unpack .../hestia-php_8.3.16_amd64.deb ...
Unpacking hestia-php (8.3.16) ...
Setting up hestia-php (8.3.16) ...
dpkg: error processing package hestia-php (--configure):
installed hestia-php package post-installation script subprocess returned error exit status 5
Setting up hestia-nginx (1.27.3) ...
Processing triggers for systemd (245.4-4ubuntu3.24) ...
Errors were encountered while processing:
hestia-php
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hello everyone, I had exactly the same experience, I did everything that was said here, but it didnât help⌠I need help!
https://server.domain.xyz:8083/login/
Unable to load required libraries. Please run v-add-sys-dependencies in command line. Error: Failed opening required âvendor/autoload.phpâ (include_path=â.:â)
Now run apt install hestia --reinstall again