Cron <[email protected]> sudo /usr/local/hestia/bin/v-update-sys-hestia-all

I keep getting emails with the subject " Cron [email protected] sudo /usr/local/hestia/bin/v-update-sys-hestia-all"

Error: hestia update failed
Error: hestia-nginx update failed
Error: hestia-php update failed

Does anybody know where it is coming from and how to fix it?

What happens if you run the command v-update-sys-hestia-all manualy on your system? Whats the output of apt-get update?

[email protected]:~# apt-get update
Hit:1 focal InRelease
Get:2 focal-updates InRelease [111 kB]
Get:3 focal-backports InRelease [98.3 kB]
Hit:4 focal InRelease
Get:5 focal-security InRelease [107 kB]
Hit:6 focal InRelease
Hit:7 focal InRelease
Hit:8 focal InRelease
Hit:9 focal InRelease
Fetched 317 kB in 1s (281 kB/s)
Reading package lists… Done

[email protected]:~# v-update-sys-hestia-all
Error: hestia update failed
Error: hestia-nginx update failed
Error: hestia-php update faile

what happens if you run apt-get update && apt-get upgrade?

Successfully upgraded and now v-update-sys-hestia-all returns no error.

How do I check if the update was successful?

I just had this. Seems that the problem was with apt/dpkg. When I installed hestia, I installed multi-php, and then removed a couple of PHP versions I didn’t want. PHP 7.1 and 7.2

Apt had started complaining recently about php7.1-fpm and php7.2-fpm when it updated, and it turns out that these hadn’t been uninstalled when removing PHP 7.1 and 7.2 (bug?). Anyway, manually running apt remove php7.x-fpm got rid of the error from apt, and after that, the v-update-sys-hestia-all command ran without error.

Further to my post above, I notice that when a PHP version is removed from hestia using the web interface, it leaves behind some PHP files for that version. eg.

dpkg --get-selections | grep php | grep -v deinstall | grep php5.6
php5.6-common					install
php5.6-imap					install
php5.6-ldap					install
php5.6-opcache					install

I’m wondering if these should be there, or perhaps the uninstall process missed them? Uninstaller in v-delete-web-php mentions these packages.
mph=“php$version-mbstring php$version-bcmath php$version-cli php$version-curl
php$version-fpm php$version-gd php$version-intl php$version-mysql
php$version-soap php$version-xml php$version-zip php$version-mbstring
php$version-json php$version-bz2 php$version-pspell”

Maybe it should generate the list with something like

dpkg --get-selections | grep php | grep -v deinstall | grep php7.0 | awk '{print $1}' | tr '\n' ' '

Or maybe the residual packages are needed for something.