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. All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server

All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server

Scheduled Pinned Locked Moved Nextcloud
migratemigrationnextcloud
9 Posts 2 Posters 1.1k Views 2 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.
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by jdaviescoates
      #1

      This is even more concerning that the post-migration username issue!

      As far as I can tell none of the folders and files that were in the Nextcloud before migrating it to a new Cloudron server have been migrated over with it 😱

      (but all the pointless annoying default Nextcloud files are all there again)

      Luckily I've not actually switched the domain over and the old version of the app is still live and running on the old Cloudron server, but I need to get this working and at present it just isn't, at all.

      I use Cloudron with Gandi & Hetzner

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

        This is really the same issue as https://forum.cloudron.io/topic/10107/migrating-nextcloud-to-a-different-cloudron-has-resulted-in-all-the-nextcloud-user-s-usernames-having-_xxxx-appended-at-the-end . It's thinking of your old Cloudron users and new Cloudron users as different.

        jdaviescoatesJ 1 Reply Last reply
        0
        • girishG girish

          This is really the same issue as https://forum.cloudron.io/topic/10107/migrating-nextcloud-to-a-different-cloudron-has-resulted-in-all-the-nextcloud-user-s-usernames-having-_xxxx-appended-at-the-end . It's thinking of your old Cloudron users and new Cloudron users as different.

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by
          #3

          @girish thanks, as I said there:

          @jdaviescoates said in Migrating Nextcloud to a different Cloudron has resulted in all the Nextcloud user's usernames having _xxxx appended at the end:

          @girish said in Migrating Nextcloud to a different Cloudron has resulted in all the Nextcloud user's usernames having _xxxx appended at the end:

          as long as the new Cloudron and old Cloudron use the same usernames.

          I think this is probably the issue. I think I imported the backup before importing all the users! I've now imported all the users, uninstalled the broken install, and am currently re-importing the backup again...

          I use Cloudron with Gandi & Hetzner

          girishG 1 Reply Last reply
          0
          • jdaviescoatesJ jdaviescoates

            @girish thanks, as I said there:

            @jdaviescoates said in Migrating Nextcloud to a different Cloudron has resulted in all the Nextcloud user's usernames having _xxxx appended at the end:

            @girish said in Migrating Nextcloud to a different Cloudron has resulted in all the Nextcloud user's usernames having _xxxx appended at the end:

            as long as the new Cloudron and old Cloudron use the same usernames.

            I think this is probably the issue. I think I imported the backup before importing all the users! I've now imported all the users, uninstalled the broken install, and am currently re-importing the backup again...

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

            @jdaviescoates what do you mean by importing all users? Are you referring to Cloudron side? Note that importing users does not change the unique uid (this is a unique id generated on the fly). You will hit the same issue again.

            Any reason why you are not doing Cloudron level migration/restore and instead doing app by app migration ? If you do Cloudron restore, the uids are retained and will be the same in the new server also.

            jdaviescoatesJ 2 Replies Last reply
            0
            • girishG girish

              @jdaviescoates what do you mean by importing all users? Are you referring to Cloudron side? Note that importing users does not change the unique uid (this is a unique id generated on the fly). You will hit the same issue again.

              Any reason why you are not doing Cloudron level migration/restore and instead doing app by app migration ? If you do Cloudron restore, the uids are retained and will be the same in the new server also.

              jdaviescoatesJ Offline
              jdaviescoatesJ Offline
              jdaviescoates
              wrote on last edited by jdaviescoates
              #5

              @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

              @jdaviescoates what do you mean by importing all users?

              I'm mean using the Cloudron export/ import users features here:

              8f33945b-9217-411e-82b8-a37b27cdb01b-image.png

              @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

              Note that importing users does not change the unique uid (this is a unique id generated on the fly). You will hit the same issue again.

              Oh, damn!

              @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

              Any reason why you are not doing Cloudron level migration/restore and instead doing app by app migration ?

              Yes, because I'm retiring one barely used Cloudron completely and moving the apps over to my primary Cloudron which is now on a dedicated server with spare capacity.

              Same thing with another Cloudron server that just wasn't powerful enough for PeerTube.

              Basically I'm moving all the apps in 2 small Cloudrons into a third (my main, primary) big Cloudron.

              I use Cloudron with Gandi & Hetzner

              girishG 1 Reply Last reply
              0
              • girishG girish

                @jdaviescoates what do you mean by importing all users? Are you referring to Cloudron side? Note that importing users does not change the unique uid (this is a unique id generated on the fly). You will hit the same issue again.

                Any reason why you are not doing Cloudron level migration/restore and instead doing app by app migration ? If you do Cloudron restore, the uids are retained and will be the same in the new server also.

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by
                #6

                @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

                You will hit the same issue again.

                Confirmed 😞

                So is it not possible to move an instance of Nextcloud from one Cloudron to another? Because I really need to do that, twice.

                Now at a total loss as to what to do 😢

                I use Cloudron with Gandi & Hetzner

                1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

                  @jdaviescoates what do you mean by importing all users?

                  I'm mean using the Cloudron export/ import users features here:

                  8f33945b-9217-411e-82b8-a37b27cdb01b-image.png

                  @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

                  Note that importing users does not change the unique uid (this is a unique id generated on the fly). You will hit the same issue again.

                  Oh, damn!

                  @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

                  Any reason why you are not doing Cloudron level migration/restore and instead doing app by app migration ?

                  Yes, because I'm retiring one barely used Cloudron completely and moving the apps over to my primary Cloudron which is now on a dedicated server with spare capacity.

                  Same thing with another Cloudron server that just wasn't powerful enough for PeerTube.

                  Basically I'm moving all the apps in 2 small Cloudrons into a third (my main, primary) big Cloudron.

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

                  @jdaviescoates that makes sense. So, I recommend one of these:

                  • This depends on how much you use nextcloud. Just setup a fresh nextcloud and import things over from your previous install. Most things have import/export . For files, since you already installed a broken one, it already has the files. Just cp over all your files from broken install to the fresh one. After you copy files, https://docs.cloudron.io/apps/nextcloud/#rescan-files in web terminal. Note that you will have to also re-share stuff if you use that feature.

                  • Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations .

                  jdaviescoatesJ 2 Replies Last reply
                  1
                  • girishG girish

                    @jdaviescoates that makes sense. So, I recommend one of these:

                    • This depends on how much you use nextcloud. Just setup a fresh nextcloud and import things over from your previous install. Most things have import/export . For files, since you already installed a broken one, it already has the files. Just cp over all your files from broken install to the fresh one. After you copy files, https://docs.cloudron.io/apps/nextcloud/#rescan-files in web terminal. Note that you will have to also re-share stuff if you use that feature.

                    • Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations .

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by
                    #8

                    @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

                    @jdaviescoates that makes sense. So, I recommend one of these:

                    • This depends on how much you use nextcloud. Just setup a fresh nextcloud and import things over from your previous install. Most things have import/export . For files, since you already installed a broken one, it already has the files. Just cp over all your files from broken install to the fresh one. After you copy files, https://docs.cloudron.io/apps/nextcloud/#rescan-files in web terminal. Note that you will have to also re-share stuff if you use that feature.

                    OK, I might do that. Thankfully the two instances of Nextcloud I need to migrate aren't very large nor very actively used.

                    • Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations .

                    That'd be great. Ideally Nextcloud on Cloudron would be properly portable like most other apps seem to be.

                    For now I'm just going to do nothing and leave the Nexcloud apps where there are (but do really want to move them so I can save money by cancelling the VPS servers they are currently on)

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply
                    1
                    • girishG girish

                      @jdaviescoates that makes sense. So, I recommend one of these:

                      • This depends on how much you use nextcloud. Just setup a fresh nextcloud and import things over from your previous install. Most things have import/export . For files, since you already installed a broken one, it already has the files. Just cp over all your files from broken install to the fresh one. After you copy files, https://docs.cloudron.io/apps/nextcloud/#rescan-files in web terminal. Note that you will have to also re-share stuff if you use that feature.

                      • Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations .

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by jdaviescoates
                      #9

                      @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

                      Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations .

                      Out of interest (because it came up again here did you ever get around to investigating this?

                      And re "uid based installations" - is that some legacy thing? i.e. are there non-"uid based installations" - and were you referring to installations of Nextcloud or installations of Cloudron? 🙂

                      I'm thinking/ hoping that perhaps you meant uid installations of Nextcloud and that was a legacy thing and now they aren't like that and perhaps Nextcloud is portable from one Cloudron server to another? But I'm not at all clear 🙂

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      0
                      • jdaviescoatesJ jdaviescoates referenced this topic on
                      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