502 Bad Gateway error after upgrading Ubuntu 14.04 to 16.04
Posted: Fri Aug 16, 2019 2:39 am
Hello, community!
I upgraded my VPS (Ubuntu LTS) recently from 14.04 to 16.04. Every app is working normally except VestaCP. It showing me "502 Bad Gateway - nginx" error.
Status:
When I tried to update:
Please help me on this. Thank you!
I upgraded my VPS (Ubuntu LTS) recently from 14.04 to 16.04. Every app is working normally except VestaCP. It showing me "502 Bad Gateway - nginx" error.
Status:
Code: Select all
uugankhuu@bfa:~$ sudo systemctl status vesta.service
[sudo] password for uugankhuu:
● vesta.service - LSB: starts the vesta control panel
Loaded: loaded (/etc/init.d/vesta; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-08-14 21:44:46 +08; 1 day 12h ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/vesta.service
├─985 nginx: master process /usr/local/vesta/nginx/sbin/vesta-ngin
└─987 nginx: worker process
Aug 14 21:44:46 bfa.mn systemd[1]: Starting LSB: starts the vesta control panel...
Aug 14 21:44:46 bfa.mn vesta[4935]: * Starting vesta-nginx vesta-nginx
Aug 14 21:44:46 bfa.mn vesta[4935]: ...done.
Aug 14 21:44:46 bfa.mn vesta[4935]: * Starting vesta-php vesta-php
Aug 14 21:44:46 bfa.mn vesta[4935]: start-stop-daemon: unable to stat /usr/local/vesta/php/sbin/vesta-php (No such file or directory)
Aug 14 21:44:46 bfa.mn systemd[1]: vesta.service: Control process exited, code=exited status=2
Aug 14 21:44:46 bfa.mn systemd[1]: Failed to start LSB: starts the vesta control panel.
Aug 14 21:44:46 bfa.mn systemd[1]: vesta.service: Unit entered failed state.
Aug 14 21:44:46 bfa.mn systemd[1]: vesta.service: Failed with result 'exit-code'.
Code: Select all
uugankhuu@bfa:~$ sudo /usr/local/vesta/bin/v-update-sys-vesta-all
Error: vesta-php update failed
Error: vesta-ioncube update failed
Error: vesta-softaculous update failed
Code: Select all
uugankhuu@bfa:~$ sudo /usr/local/vesta/bin/v-list-sys-vesta-updates
dpkg-query: package 'vesta-php' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
stat: cannot stat '/var/lib/dpkg/info/vesta-php.list': No such file or directory
date: invalid date ‘@’
date: invalid date ‘@’
PKG VER REL ARCH UPDT DATE
--- --- --- ---- ---- ----
vesta 0.9.8 24 amd64 yes 2019-04-16
vesta-php yes
vesta-nginx 0.9.8 24 amd64 yes 2019-04-16