Can not uninstall Nextcloud
Solved
Support
-
When I attempt to uninstall nextcloud, I get an error message
In my logs, I get
nextcloud1.xxxxxxxx.com (Nextcloud) Aug 02 11:16:56 box:settings initCache: pre-load settings Aug 02 11:16:56 box:taskworker Starting task 2221. Logs are at /home/yellowtent/platformdata/logs/app-Path/apptask.log Aug 02 11:16:56 box:tasks 2221: {"percent":2,"error":null} Aug 02 11:16:56 box:apptask nextcloud1.xxxxxxxx.com startTask installationState: pending_uninstall runState: running Aug 02 11:16:56 box:tasks 2221: {"percent":20,"message":"Deleting container"} Aug 02 11:16:56 box:shell reload spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx Aug 02 11:16:56 box:shell reload (stdout): nginx: [emerg] no host in upstream ":80" in /etc/nginx/applications/app-path.conf:136 Aug 02 11:16:56 box:shell reload code: 1, signal: null Aug 02 11:16:56 box:apptask nextcloud1.xxxxxxxx.com error uninstalling app: BoxError: Error reloading nginx: reload exited with code 1 signal null at /home/yellowtent/box/src/reverseproxy.js:194:36 at f (/home/yellowtent/box/node_modules/once/once.js:25:25) at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:77:9) at ChildProcess.emit (events.js:315:20) at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) { reason: 'Nginx Error', details: {} Aug 02 11:16:56 box:taskworker Task took 0.113 seconds Aug 02 11:16:56 box:tasks setCompleted - 2221: {"result":null,"error":{"stack":"BoxError: Error reloading nginx: reload exited with code 1 signal null\n at /home/yellowtent/box/src/reverseproxy.js:194:36\n at f (/home/yellowtent/box/node_modules/once/once.js:25:25)\n at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:77:9)\n at ChildProcess.emit (events.js:315:20)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)","name":"BoxError","reason":"Nginx Error","details":{},"message":"Error reloading nginx: reload exited with code 1 signal null"}} Aug 02 11:16:56 box:tasks 2221: {"percent":100,"result":null,"error":{"stack":"BoxError: Error reloading nginx: reload exited with code 1 signal null\n at /home/yellowtent/box/src/reverseproxy.js:194:36\n at f (/home/yellowtent/box/node_modules/once/once.js:25:25)\n at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:77:9)\n at ChildProcess.emit (events.js:315:20)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)","name":"BoxError","reason":"Nginx Error","details":{},"message":"Error reloading nginx: reload exited with code 1 signal null"}}
I have restarted the service for nextcloud and reattempted the uninstall, but it did the same thing
-
@privsec Can you check the output of
journalctl -u nginx
? It seems nginx is not reloading for some reason. You can also trysystemctl reload nginx
manually to see if it works (it most likely won't). Do you happen to have any custom nginx configs by any chance? -
-
I just did now, here is the first
username@VPSID:~$ journalctl -u nginx Hint: You are currently not seeing messages from other users and the system. Users in groups 'adm', 'systemd-journal' can see all messages. Pass -q to turn off this notice. -- Logs begin at DATE AND TIME UTC, end at DATE AND TIME UTC. -- -- No entries -- username@VPSID:~$
The second one is
username@VPSID:~$ systemctl reload nginx ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to reload 'nginx.service'. Authenticating as: MYNAME,,, (username) Password: ==== AUTHENTICATION COMPLETE === nginx.service is not active, cannot reload. username@VPSID:~$
-
nginx configs became corrupt. Once we got nginx up, it uninstalled. I am putting notes on why nginx configs were corrupt at https://forum.cloudron.io/topic/5457/site-is-not-reachable