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. Migrating Nextcloud to a different Cloudron has resulted in all the Nextcloud user's usernames having _xxxx appended at the end

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

Scheduled Pinned Locked Moved Nextcloud
5 Posts 2 Posters 725 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
      #1

      This is what I did:

      Took a backup of Nextcloud on the old Cloudron server.
      Imported the backup of Nextcloud on the new Cloudron server.

      I could then login as one of the users on the new Cloudron, but I wasn't an admin as I should've been.

      I tried adding my username as an admin using:

      sudo -u www-data php -f /app/code/occ group:adduser admin <username> -n

      But that didn't seem to work.

      So in the end I recreated the admin user and added that user to the admin group, then I could finally login as an admin.

      When I go and look at the list of users, they are all there, but every single one has got:

      oldusername_1234

      i.e. all the the usernames have had an _ and for random numbers appended to the end!

      The bizarre thing is that even though my new username appears to be jdaviescoates_8530 I still seem able to login with just jdaviescoates

      What is going on? 🤔

      I use Cloudron with Gandi & Hetzner

      jdaviescoatesJ 1 Reply Last reply
      0
      • jdaviescoatesJ jdaviescoates

        This is what I did:

        Took a backup of Nextcloud on the old Cloudron server.
        Imported the backup of Nextcloud on the new Cloudron server.

        I could then login as one of the users on the new Cloudron, but I wasn't an admin as I should've been.

        I tried adding my username as an admin using:

        sudo -u www-data php -f /app/code/occ group:adduser admin <username> -n

        But that didn't seem to work.

        So in the end I recreated the admin user and added that user to the admin group, then I could finally login as an admin.

        When I go and look at the list of users, they are all there, but every single one has got:

        oldusername_1234

        i.e. all the the usernames have had an _ and for random numbers appended to the end!

        The bizarre thing is that even though my new username appears to be jdaviescoates_8530 I still seem able to login with just jdaviescoates

        What is going on? 🤔

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

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

        The bizarre thing is that even though my new username appears to be jdaviescoates_8530 I still seem able to login with just jdaviescoates

        And I just impersonated another user too, same thing.

        Perhaps that means I just don't have to worry about this. But it's still all a bit odd and disconcerting.

        Why have all the usernames now got _xxxx appended to them?
        Why is Nextcloud ignoring the _xxxx part of the username when logging in?

        So many questions!

        I use Cloudron with Gandi & Hetzner

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

          Does your installation have a file /app/data/.ldap_uid ? Long time ago, we used to use Cloudron user id to identify users. While this is technically more correct, it made it hard to migrate across Cloudrons. We have since change the package long time to user username instead. Using username makes it more portable, as long as the new Cloudron and old Cloudron use the same usernames.

          jdaviescoatesJ 1 Reply Last reply
          1
          • girishG girish referenced this topic on
          • girishG girish

            Does your installation have a file /app/data/.ldap_uid ? Long time ago, we used to use Cloudron user id to identify users. While this is technically more correct, it made it hard to migrate across Cloudrons. We have since change the package long time to user username instead. Using username makes it more portable, as long as the new Cloudron and old Cloudron use the same usernames.

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

            @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

            jdaviescoatesJ 1 Reply Last reply
            0
            • jdaviescoatesJ jdaviescoates

              @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...

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

              @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...

              Just to add more info here, I can't fully remember the details, but I'm pretty sure that didn't help as in the end I gave up trying to get this to work.

              I'm pretty sure I tried it again the other way around (creating users with the exact same usernames and in the exact same groups etc) and hit exactly the same issue.

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              1
              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