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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Can not uninstall Nextcloud

Can not uninstall Nextcloud

Scheduled Pinned Locked Moved Solved Support
nginxreverseproxy
8 Posts 3 Posters 1.7k Views 3 Watching
  • 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 Offline
    P Offline
    privsec
    wrote on last edited by girish
    #1

    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

    girishG 1 Reply Last reply
    0
    • P privsec

      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

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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
      0
      • girishG girish

        @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 Offline
        P Offline
        privsec
        wrote on last edited by
        #3

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

        fbartelsF 1 Reply Last reply
        0
        • P Offline
          P Offline
          privsec
          wrote on last edited by
          #4

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

          girishG 1 Reply Last reply
          0
          • P privsec

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

            fbartelsF Offline
            fbartelsF Offline
            fbartels
            App Dev
            wrote on last edited by
            #5

            @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
            0
            • P privsec

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

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @privsec Did you manage to run the commands?

              P 1 Reply Last reply
              0
              • girishG girish

                @privsec Did you manage to run the commands?

                P Offline
                P Offline
                privsec
                wrote on last edited by
                #7

                @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
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  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
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search