Error 500 / hestia-nginx and php update failed after 1.6.0 upgrade / Resolved

Hello,

I’m using Hestia for few days. Everything was ok until last update 1.6.0.

This morning, panel is in error. i don’t know what to send exactly so here is some informations.

OPERATING SYSTEM: Debian (11)
CURRENT VERSION: 1.5.15
NEW VERSION: 1.6.0
RELEASE BRANCH: release
BUILD TYPE: Production release

INSTALLER OPTIONS:

Send email notification on upgrade complete: true
Send installed log output to admin email: true

=============================================================================
[ ! ] Performing system health check before proceeding with installation…
[ ! ] Adding missing variable to hestia.conf: API_SYSTEM (‘0’)
[ * ] Health check complete. Starting upgrade from 1.5.15 to 1.6.0…

[ * ] Backing up existing templates and configuration files…

[ - ] Now applying patches and updates for version v1.6.0…
[ * ] Update exim4 config to support rate limits
[ * ] Add support for optional rejecting spam
[ * ] Enabling SMTP relay support…
[ * ] Enable Samassassin Cronjob
[ * ] Updating nginx configuration with changes to Cloudflare IP addresses
[ * ] Refresh PMA SSO key due to update phpmyadmin
[ * ] Update phpMyAdmin server configuration
[ ! ] Upgrading File Manager to version 7.8.1…
[ * ] Roundcube is up to date (1.5.2)…
[ ! ] Upgrading PHPmailer to version 6.6.2…
[ * ] Upgrading phpMyAdmin to version 5.2.0…

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-06-17 09:14:50 CEST; 8min ago
       Docs: man:systemd-sysv-generator(8)
    Process: 2964767 ExecStart=/etc/init.d/hestia start (code=exited, status=1/FAILURE)
      Tasks: 2 (limit: 614)
     Memory: 11.7M
     CGroup: /system.slice/hestia.service
             ├─2932004 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
             └─2932006 nginx: worker process

juin 17 09:14:48 anthonyrabot.fr hestia[2964770]: nginx: [emerg] bind() to 0.0.0.0:8083 failed (98: Address already in use)
juin 17 09:14:49 anthonyrabot.fr hestia[2964770]: nginx: [emerg] bind() to 0.0.0.0:8083 failed (98: Address already in use)
juin 17 09:14:49 anthonyrabot.fr hestia[2964770]: nginx: [emerg] bind() to 0.0.0.0:8083 failed (98: Address already in use)
juin 17 09:14:50 anthonyrabot.fr hestia[2964770]: nginx: [emerg] bind() to 0.0.0.0:8083 failed (98: Address already in use)
juin 17 09:14:50 anthonyrabot.fr hestia[2964770]: nginx: [emerg] still could not bind()
juin 17 09:14:50 anthonyrabot.fr systemd[1]: hestia.service: Control process exited, code=exited, status=1/FAILURE
juin 17 09:14:50 anthonyrabot.fr systemd[1]: hestia.service: Failed with result 'exit-code'.
juin 17 09:14:50 anthonyrabot.fr systemd[1]: hestia.service: Unit process 2932004 (hestia-nginx) remains running after unit stopped.
juin 17 09:14:50 anthonyrabot.fr systemd[1]: hestia.service: Unit process 2932006 (hestia-nginx) remains running after unit stopped.
[email protected]:/home/admin# dpkg --configure -a
Paramétrage de hestia-php (8.1.7) ...
dpkg: erreur de traitement du paquet hestia-php (--configure) :
 installed hestia-php package post-installation script subprocess returned error exit status 1
Paramétrage de hestia-nginx (1.22.0) ...
Job for hestia.service failed because the control process exited with error code.
dpkg: erreur de traitement du paquet hestia-nginx (--configure) :
 installed hestia-nginx package post-installation script subprocess returned error exit status 1
Des erreurs ont été rencontrées pendant l'exécution :
 hestia-php
 hestia-nginx

All my production sites are ok. I hope someone can help me find the solution :slight_smile:

Good day to all.
Anthony

i’m trying to resolve but nothing works actually.

mv /var/lib/dpkg/info/hestia-nginx.* /tmp
mv /var/lib/dpkg/info/hestia-php.* /tmp

/usr/local/hestia/bin/v-update-sys-hestia-all give no errors

apt install --reinstall hestia-php
apt install --reinstall hestia-nginx

i get same errors just after

dpkg: avertissement: le fichier contenant la liste des fichiers du paquet « hestia-php » étant manquant, il est considéré qu'aucun fichier du paquet n'est actuellement installé
(Lecture de la base de données... 50464 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../hestia-php_8.1.7_amd64.deb ...
Dépaquetage de hestia-php (8.1.7) sur (8.1.7) ...
Paramétrage de hestia-php (8.1.7) ...
dpkg: erreur de traitement du paquet hestia-php (--configure) :
 installed hestia-php package post-installation script subprocess returned error exit status 1

So i hope it can help somebody if you have same problem than me after update.

I checked what was listening on 8083 port lsof -i:8083
and killed process kill $(lsof -t -i:8083)

I launched update et restarted service and now it’s ok :slight_smile:

/usr/local/hestia/bin/v-update-sys-hestia-all
systemctl restart hestia.service

Hope it will help and have a nice day if you read this

4 Likes

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