After update cp is not accessable

[ ! ] IMPORTANT INFORMATION:

Default configuration files and templates may be modified or replaced
during the upgrade process. You may restore these files from:

Backup directory: /root/hst_backups/230920221217/
Installation log: /root/hst_backups/230920221217/hst-upgrade-230920221217.log

[ * ] Backing up existing templates and configuration files…

[ ! ] Performing system health check before proceeding with installation…
[ * ] Health check complete. Starting upgrade from 1.6.8 to 1.6.8…

[ ! ] The latest version of Hestia Control Panel is already installed.
Verifying configuration…

[ * ] File Manager is up to date (7.8.2)…
[ * ] Roundcube is up to date (1.6.0)…
[ ! ] Upgrading PHPmailer to version 6.6.4…
/usr/local/hestia/bin/v-add-sys-phpmailer: line 68: /usr/local/hestia/php/bin/php: No such file or directory
[ * ] phpMyAdmin is up to date (5.2.0)…

Installation tasks complete, performing clean-up…

[ * ] Restarting services…
Error: ERROR: Restart of php7.3-fpm failed.
Error: ERROR: Restart of php7.4-fpm failed.
Error: ERROR: Restart of hestia failed.

=============================================================================

I think the problem is with hestia.service because:
root@hcp:~# systemctl status hestia.service
Unit hestia.service could not be found.

What should I do to restore hestia’s service?
Tried:
/usr/local/hestia/bin/v-update-sys-hestia-all
apt install --reinstall hestia
No luck

I use Ubuntu 20.04.4 LTS (GNU/Linux 5.15.0-1020-aws x86_64) and this is a prod server so I need to try to restore first.
Will appreciate any help

apt install --reinstall hestia-nginx

Should reinstall the service is is missing

Thanks for reply. I’ve pasted this command and what happened next(also cp panel is ‘Internal Server Error’ instead of not loading at all):

root@hcp:~# apt install --reinstall hestia-nginx
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
gyp javascript-common libc-ares2 libfwupdplugin1 libjs-inherits libjs-is-typedarray libjs-psl
libjs-typedarray-to-buffer libmcrypt4 libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libssl-dev
libuv1-dev python-pkg-resources python2 python2-minimal python2.7 python2.7-minimal ttf-dejavu-core
Use ‘apt autoremove’ to remove them.
The following NEW packages will be installed:
hestia-nginx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 6216 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://apt.hestiacp.com focal/main amd64 hestia-nginx amd64 1.23.1 [6216 kB]
Fetched 6216 kB in 1s (10.5 MB/s)
Selecting previously unselected package hestia-nginx.
(Reading database … 166040 files and directories currently installed.)
Preparing to unpack …/hestia-nginx_1.23.1_amd64.deb …
Unpacking hestia-nginx (1.23.1) …
Setting up hestia-nginx (1.23.1) …
Job for hestia.service failed because the control process exited with error code.
See “systemctl status hestia.service” and “journalctl -xe” 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-09-23 13:13:06 UTC; 7ms ago
Docs: man:systemd-sysv-generator(8)
Process: 134994 ExecStart=/etc/init.d/hestia start (code=exited, status=2)
Tasks: 2 (limit: 1113)
Memory: 2.2M
CGroup: /system.slice/hestia.service
├─134999 nginx: master process /usr/local/hestia/nginx/sbin/hestia-nginx
└─135000 nginx: worker process

Sep 23 13:13:06 hcp.mydeveloper.co.ua systemd[1]: Starting LSB: starts the hestia control panel…
Sep 23 13:13:06 hcp.mydeveloper.co.ua hestia[134994]: * Starting hestia-nginx hestia-nginx
Sep 23 13:13:06 hcp.mydeveloper.co.ua hestia[134994]: …done.
Sep 23 13:13:06 hcp.mydeveloper.co.ua hestia[134994]: * Starting hestia-php hestia-php
Sep 23 13:13:06 hcp.mydeveloper.co.ua hestia[135001]: start-stop-daemon: unable to stat /usr/local/hestia/php/sbin/hestia-php (No such file or directory)
Sep 23 13:13:06 hcp.mydeveloper.co.ua systemd[1]: hestia.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Sep 23 13:13:06 hcp.mydeveloper.co.ua systemd[1]: hestia.service: Failed with result ‘exit-code’.
Sep 23 13:13:06 hcp.mydeveloper.co.ua systemd[1]: Failed to start LSB: starts the hestia control panel.
dpkg: error processing package hestia-nginx (–configure):
installed hestia-nginx package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (245.4-4ubuntu3.18) …
Errors were encountered while processing:
hestia-nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Also reinstall hesita-php

thanks it helped! all is working now
:sweat_smile: