Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Can not uninstall Nextcloud

    Support
    nginx reverseproxy
    3
    8
    495
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      privsec last edited by girish

      When I attempt to uninstall nextcloud, I get an error message

      3bc491d2-e819-4bc9-ab6f-07b4ef711430-image.png

      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

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @privsec last edited by

        @privsec Can you check the output of journalctl -u nginx ? It seems nginx is not reloading for some reason. You can also try systemctl 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?

        P 1 Reply Last reply Reply Quote 0
        • P
          privsec @girish last edited by

          @girish Thanks for the reply, I am not sure where to run those commands. And no, I do not.

          fbartels 1 Reply Last reply Reply Quote 0
          • P
            privsec last edited by

            To add to this, I just tried to install another version of nextcloud and it wont let me do that either.

            girish 1 Reply Last reply Reply Quote 0
            • fbartels
              fbartels App Dev @privsec last edited by

              @privsec said in Can not uninstall Nextcloud:

              I am not sure where to run those commands

              These are to be run directly on the Cloudron host via for example ssh.

              1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @privsec last edited by

                @privsec Did you manage to run the commands?

                P 1 Reply Last reply Reply Quote 0
                • P
                  privsec @girish last edited by

                  @girish

                  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:~$
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB