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. Moodle
  3. Migrated Moodle to new Cloudron and admin users lost their capabilities

Migrated Moodle to new Cloudron and admin users lost their capabilities

Scheduled Pinned Locked Moved Moodle
7 Posts 3 Posters 868 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.
  • jordanurbsJ Offline
    jordanurbsJ Offline
    jordanurbs
    wrote on last edited by jordanurbs
    #1

    Have tried this twice now, with different results.

    The first migration, admin users lost their admin permissions.

    In further attempts, it appears that the admin users don't even exist.

    Any thoughts? Have tried using the CLI to change the admin's passwords but even the 'admin' user doesn't exist.

    Original set-up's admin users don't exist. admin/changeme123 offers nothing. It's like there's no users at all in the database or something.

    (maybe someone can let me know the command to check inside the CLI?)

    I seem to be getting this error on importing the backup from the old Cloudron, but after a few "retry import tasks", it seems to get past it...

    Addons Error: Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/d3fd5897-a3b5-456a-8fbf-1de8bcd842e6/postgresqldump to http://172......:3000/databases/dbd3fd5897a3b5456a8fbf1de8bcd842e6/restore?access_token=abac1be9f8a6257243b9e526d4a6c1db3645b2a592955e66ab2c547a880e6404f93e24a342bf36f490f4acf35eb3d55b28f4292139ebf5a3a7f8ec6351276fad22aff829e8e4e45fbf34d2876a9d91823c605a341f99e6bb1033f61c09288912cbec423e1f02beabf67facfb95a18c2175c5cbcbdd57fac230a8d1bbbbf92390&username=userd3fd5897a3b5456a8fbf1de8bcd842e6: status 500 complete false
    

    I've tried multiple times to migrate choosing, "Leave user management to the app" and also "Allow all users from Cloudron", but there doesn't seem to be any difference.

    Not sure why but only that very first attempt at migrating seemed to offer any semblance of success.

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

      You are migrating from Moodle on one Cloudron to another Cloudron by importing from a backup . Is this correct?

      In your original instance, were you using Cloudron authentication (i.e via LDAP) ? This is most likely to do with migration of users across instances.

      1 Reply Last reply
      0
      • jordanurbsJ Offline
        jordanurbsJ Offline
        jordanurbs
        wrote on last edited by
        #3

        @girish on the original instance it says "Login with dedicated account" which I believe is not Cloudron authentication?

        Any way to be able to migrate users too?

        1 Reply Last reply
        0
        • jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by
          #4

          I wonder if this is similar to issues I had with trying to move a Nextcloud from one Cloudron to another (it basically doesn't work because the users don't migrate)

          See https://forum.cloudron.io/post/74341

          I use Cloudron with Gandi & Hetzner

          jordanurbsJ 1 Reply Last reply
          0
          • jdaviescoatesJ jdaviescoates

            I wonder if this is similar to issues I had with trying to move a Nextcloud from one Cloudron to another (it basically doesn't work because the users don't migrate)

            See https://forum.cloudron.io/post/74341

            jordanurbsJ Offline
            jordanurbsJ Offline
            jordanurbs
            wrote on last edited by
            #5

            @jdaviescoates sounds like it could be, however none of the users can login with the original usernames (and I'm not sure how to check the database)

            1 Reply Last reply
            1
            • jordanurbsJ Offline
              jordanurbsJ Offline
              jordanurbs
              wrote on last edited by
              #6

              Update: Tried the Moodle backup restore on the new cloudron for the 7th time and it's suddenly all running smoothly, all admin users can access without issue.

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

                OK, that's strange! Let us know if you figure out what changed.

                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