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. Nextcloud
  3. Nextcloud upgrade failed

Nextcloud upgrade failed

Scheduled Pinned Locked Moved Nextcloud
10 Posts 3 Posters 1.3k 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.
  • E Offline
    E Offline
    ekevu123
    wrote on last edited by
    #1

    Oddly, my Nextcloud shows this in the logs while the app is not responding:

    [no timestamp]  Update failed","userAgent":"--","version":"25.0.2.3","data":{"app":"updater"}}
    [no timestamp]  upgrade from 25.0.2.3 to 29.0.2.2","userAgent":"--","version":"25.0.2.3","data":{"app":"core"}}
    [no timestamp]  Maintenance mode is kept active","userAgent":"--","version":"25.0.2.3","data":{"app":"updater"}}
    [no timestamp]  Reset log level to Error(3)","userAgent":"--","version":"25.0.2.3","data":{"app":"updater"}}
    

    This is odd, because I have done updates regularly all the time. But I am not sure how to resolve this.

    Since all the data Nextcloud uses is on a mounted block storage, I was wondering if I can simply set up Nextcloud again but use the same data directory, then I can remove this instance and change the domain.

    Not sure if there is a better course of action, or if I did this, how can I get another Nextcloud instance to use this data directory?

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      upgrade from 25.0.2.3 to 29.0.2.2

      @ekevu123 are you trying to update nextcloud from inside nextcloud ? somehow the above line doesn't make sense. Cloudron packages are shipped for every patch version, so this is a bit hard to understand.

      1 Reply Last reply
      1
      • E Offline
        E Offline
        ekevu123
        wrote on last edited by
        #3

        No, I haven't tried anything like that. We discussed in another thread how I tried to resize my Vultr Block storage, which I now successfully have done. I haven't changed anything else, so I am as surprised as you are about this error.

        But how do we solve it? I wouldn't mind setting up a fresh Nextcloud if I could connect all my block storage data to it.

        girishG 1 Reply Last reply
        0
        • E ekevu123

          No, I haven't tried anything like that. We discussed in another thread how I tried to resize my Vultr Block storage, which I now successfully have done. I haven't changed anything else, so I am as surprised as you are about this error.

          But how do we solve it? I wouldn't mind setting up a fresh Nextcloud if I could connect all my block storage data to it.

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

          @ekevu123 said in Nextcloud upgrade failed:

          But how do we solve it? I wouldn't mind setting up a fresh Nextcloud if I could connect all my block storage data to it.

          Did you mount the block storage inside Nextcloud or via Cloudron Volume ? i.e you added a Cloudron Volume and then used the https://docs.cloudron.io/apps/#data-directory feature ?

          If you have the files locally, can't you set up a new nextcloud, move data directory and then sync up all the files again ?

          1 Reply Last reply
          0
          • E Offline
            E Offline
            ekevu123
            wrote on last edited by
            #5

            I do have the files locally and I could set everything up again, but I was trying to avoid that process. But if there is no other way, then sure.

            I used the volume as the main data directory for the app, not as an external storage within Nextcloud. The volume is fully accessible, all files are there as well, and I have set up a second Nextcloud instance for testing, but I cannot get it to use the configuration and files of the other.

            1 Reply Last reply
            0
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #6

              Nextcloud maintains the file listing in its Postgres database, so whatever is on disk will not automatically picked up by it. If data on disk is changed behind its back, all sorts of issues will arise with Nextcloud.
              If you are confident enough about the directory structure on disk, you could attempt to make Nextcloud rescan all files: https://docs.cloudron.io/apps/nextcloud/#rescan-files

              1 Reply Last reply
              0
              • E Offline
                E Offline
                ekevu123
                wrote on last edited by
                #7

                I appreciate the advice, but I am not confident that this would solve the problem completely. So, I am going to use a fresh install and upload all data again.
                Perhaps something went very wrong while running out of disk space plus resizing the block storage with having the whole Nextcloud installation on the volume, not just its data.

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  ekevu123
                  wrote on last edited by
                  #8

                  ... but it seems like uninstalling this Nextcloud instance is not as easy as I had thought: I am stuck at tearing down addons and the app froze in the process, the logs don't show anything.

                  Is there a way to force the uninstall? I suppose the problem is somehow related to the fact that the installation is on the block storage itself, but if there is a problem accessing it for some reason, we cannot uninstall the app properly either.

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    ekevu123
                    wrote on last edited by
                    #9

                    From the logs, this was 10 minutes ago:
                    Jun 26 15:07:08
                    Jun 26 15:07:08 Command "upgrade" is not defined.
                    Jun 26 15:07:08 ==> run migration
                    Jun 26 15:07:08 ==> update config
                    Jun 26 15:07:08 Nextcloud is not installed - only a limited number of commands are available
                    Jun 26 15:07:17 => Healtheck error: Error: Timeout of 7000ms exceeded
                    Jun 26 15:07:27 => Healtheck error: Error: Timeout of 7000ms exceeded
                    Jun 26 15:07:37 => Healtheck error: Error: Timeout of 7000ms exceeded
                    Jun 26 15:07:47 => Healtheck error: Error: Timeout of 7000ms exceeded
                    Jun 26 15:07:53 => Healtheck error: Error: connect EHOSTUNREACH 172.18.17.60:80
                    Jun 26 15:08:01 box:taskworker Starting task 4625. Logs are at /home/yellowtent/platformdata/logs/c7c7e8c7-4120-4f85-bdaa-c05453fac2ed/apptask.log
                    Jun 26 15:08:01 box:apptask run: startTask installationState: pending_uninstall runState: running
                    Jun 26 15:08:01 box:tasks update 4625: {"percent":20,"message":"Deleting container"}
                    Jun 26 15:08:01 box:shell reload /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx
                    Jun 26 15:08:02 box:apptask deleteContainer: deleting app containers (app, scheduler)
                    Jun 26 15:08:02 box:shell removeLogrotateConfig /usr/bin/sudo -S /home/yellowtent/box/src/scripts/configurelogrotate.sh remove c7c7e8c7-4120-4f85-bdaa-c05453fac2ed
                    Jun 26 15:08:02 box:tasks update 4625: {"percent":30,"message":"Teardown addons"}
                    Jun 26 15:08:02 box:services teardownAddons: Tearing down ["postgresql","sendmail","ldap","redis","localstorage","scheduler","turn"]
                    Jun 26 15:08:02 box:services teardownAddons: Tearing down addon postgresql with options {}
                    Jun 26 15:08:02 box:services Tearing down sendmail
                    Jun 26 15:08:02 box:services teardownAddons: Tearing down addon sendmail with options {"supportsDisplayName":false}
                    Jun 26 15:08:02 box:services Tearing down LDAP
                    Jun 26 15:08:02 box:services teardownAddons: Tearing down addon ldap with options {}
                    Jun 26 15:08:02 box:services teardownAddons: Tearing down addon redis with options {}
                    Jun 26 15:08:02 box:shell removeVolume /usr/bin/sudo -S /home/yellowtent/box/src/scripts/rmaddondir.sh redis c7c7e8c7-4120-4f85-bdaa-c05453fac2ed
                    Jun 26 15:08:02 box:services teardownAddons: Tearing down addon localstorage with options {}
                    Jun 26 15:08:02 box:services teardownLocalStorage
                    Jun 26 15:08:02 box:shell clearVolume /usr/bin/sudo -S /home/yellowtent/box/src/scripts/clearvolume.sh rmdir /mnt/next.cloud/next.cloud
                    Jun 26 15:08:03 => Healtheck error: Error: connect EHOSTUNREACH 172.18.17.60:80

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      ekevu123
                      wrote on last edited by
                      #10

                      The app disappeared after a while.

                      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