After upgrade Ubuntu 20.04 to 22.04, nginx will not start
Solved
Support
-
I followed the upgrade guide
After a reboot, I get this:root@xx:/home/yellowtent/box/scripts# ./cloudron-support --troubleshoot Vendor: Hetzner Product: vServer Linux: 5.15.0-119-generic Ubuntu: jammy 22.04 Processor: Intel Xeon Processor (Skylake, IBRS) x 2 RAM: 3907512KB Disk: /dev/sda1 14G [OK] node version is correct [OK] docker is running [OK] MySQL is running [FAIL] nginx is down. Removing extraneous dashboard domain configs ... Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
Systemctl shows this:
root@xxx:/home/yellowtent/box/scripts# systemctl status nginx.service × nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/nginx.service.d └─cloudron.conf Active: failed (Result: exit-code) since Tue 2024-08-27 18:58:54 UTC; 8s ago Docs: man:nginx(8) Process: 6795 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) CPU: 5ms Aug 27 18:58:54 xxx systemd[1]: Starting A high performance web server and a reverse proxy server... Aug 27 18:58:54 xxx nginx[6795]: nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) Aug 27 18:58:54 xxx nginx[6795]: nginx: configuration file /etc/nginx/nginx.conf test failed Aug 27 18:58:54 xxx systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Aug 27 18:58:54 xxx systemd[1]: nginx.service: Failed with result 'exit-code'. Aug 27 18:58:54 xxx systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Is there a backup of this conf file somewhere or can it be recreated?
Thank you! -
-