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 fails to provision my users after upgrade to v30.05

Nextcloud fails to provision my users after upgrade to v30.05

Scheduled Pinned Locked Moved Nextcloud
19 Posts 5 Posters 1.2k Views 5 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.
  • girishG girish

    @coniunctio said in Nextcloud fails to provision my users after upgrade to v30.05:

    sudo -u www-data php occ user:setgroup admin <my_username>

    I guess you mean sudo -u www-data php occ group:adduser admin <my_username> . The above one doesn't work for me (unless some plugin is providing this).

    Which package version are you on? There was a bug in the initial package that the groups of a user are reset on login. This has since been fixed. If you go to Admin -> OpenID Connect -> Cloudron -> edit -> User group provisioning must be unchecked.

    coniunctioC Offline
    coniunctioC Offline
    coniunctio
    wrote on last edited by
    #10

    @girish You are probably correct about that I typed whatever you wrote (I hope!) but just to safe, I'll try what you wrote again and report back if anything changes.

    Just to add, I've been able to correctly change the account to "admin" privileges but it doesn't stick once I actually login to the account. The Nextcloud notifications will even show that the privileges were added, but then removed when I login via the Cloudron login method vs the older username/password approach. Also, for whatever reason, my former password associated with the account just stopped working since this newer login method took effect. It's not like I can use either username/password OR Cloudron login. Just the latter.

    Okay, just tested to confirm and yes, I incorrectly wrote the command I used to change to admin. Your way is correct. Thank you for pointing that out. I'll edit my original post to reduce confusion for future readers.

    Secondly, I noticed that when I add myself as admin, I get the privileges until logging out and then when logging back in they are removed.

    Logged in, added privileges via the OCC command:

    Screenshot 2025-02-14 at 2.50.33 PM.png

    Logged out and logged back in via Cloudron login:

    Screenshot 2025-02-14 at 2.51.10 PM.png

    1 Reply Last reply
    0
    • girishG girish

      @coniunctio said in Nextcloud fails to provision my users after upgrade to v30.05:

      sudo -u www-data php occ user:setgroup admin <my_username>

      I guess you mean sudo -u www-data php occ group:adduser admin <my_username> . The above one doesn't work for me (unless some plugin is providing this).

      Which package version are you on? There was a bug in the initial package that the groups of a user are reset on login. This has since been fixed. If you go to Admin -> OpenID Connect -> Cloudron -> edit -> User group provisioning must be unchecked.

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

      @girish said in Nextcloud fails to provision my users after upgrade to v30.05:

      Which package version are you on? There was a bug in the initial package that the groups of a user are reset on login. This has since been fixed. If you go to Admin -> OpenID Connect -> Cloudron -> edit -> User group provisioning must be unchecked.

      It does sound like you are still on the old broken version. Answering this direct question will help the team to help you @coniunctio

      I use Cloudron with Gandi & Hetzner

      coniunctioC 1 Reply Last reply
      1
      • O odie

        @girish said in Nextcloud fails to provision my users after upgrade to v30.05:

        @odie The app won't update automatically since this is pushed a major package release.

        Are you able to clone your app and provide us access to the test app instance? Understand that it's probably very technical. We can debug the issue further. Can you write to support@cloudron.io , please?

        Apologies for the delay. Things exploded at work. I've cloned the app and sent an e-mail to support.

        O Offline
        O Offline
        odie
        wrote on last edited by
        #12

        @odie said in Nextcloud fails to provision my users after upgrade to v30.05:

        @girish said in Nextcloud fails to provision my users after upgrade to v30.05:

        @odie The app won't update automatically since this is pushed a major package release.

        Are you able to clone your app and provide us access to the test app instance? Understand that it's probably very technical. We can debug the issue further. Can you write to support@cloudron.io , please?

        Apologies for the delay. Things exploded at work. I've cloned the app and sent an e-mail to support.

        Hello again

        I haven't heard back from support, but I noticed I sent it from the wrong email address (an address unassociated with my Cloudron setup). Should I resend from my Clodron associated email?

        Apologies, Friday suddenly became an insane day at work (good stuff, but urgent stuff).

        On a side note - on the cloned app instance. I tried the update, and that too fails in the same way (same error message: Failed to provision the user). I know that Cloudron accepts the login, as I get a "new login" email. So it's something happening after the login is accepted by Cloudron.

        jdaviescoatesJ 1 Reply Last reply
        1
        • O odie

          @odie said in Nextcloud fails to provision my users after upgrade to v30.05:

          @girish said in Nextcloud fails to provision my users after upgrade to v30.05:

          @odie The app won't update automatically since this is pushed a major package release.

          Are you able to clone your app and provide us access to the test app instance? Understand that it's probably very technical. We can debug the issue further. Can you write to support@cloudron.io , please?

          Apologies for the delay. Things exploded at work. I've cloned the app and sent an e-mail to support.

          Hello again

          I haven't heard back from support, but I noticed I sent it from the wrong email address (an address unassociated with my Cloudron setup). Should I resend from my Clodron associated email?

          Apologies, Friday suddenly became an insane day at work (good stuff, but urgent stuff).

          On a side note - on the cloned app instance. I tried the update, and that too fails in the same way (same error message: Failed to provision the user). I know that Cloudron accepts the login, as I get a "new login" email. So it's something happening after the login is accepted by Cloudron.

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

          @odie said in Nextcloud fails to provision my users after upgrade to v30.05:

          I tried the update, and that too fails in the same way (same error message: Failed to provision the user). I know that Cloudron accepts the login, as I get a "new login" email. So it's something happening after the login is accepted by Cloudron.

          Please mention exactly which package you've updated to as it sounds like you might be on Cloudron package 5.0.0 where this issue happened and e.g. users couldn't be made admins etc (well, they could, but not in a way that persisted), but there were some fixes in 5.0.1 and later updates.

          I use Cloudron with Gandi & Hetzner

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

            Sorry hit the weekend, so couldn't spend time on debugging it. But https://git.cloudron.io/packages/nextcloud-app/-/merge_requests/14 should hopefully fix the problem. 🤞

            O 1 Reply Last reply
            1
            • girishG girish

              Sorry hit the weekend, so couldn't spend time on debugging it. But https://git.cloudron.io/packages/nextcloud-app/-/merge_requests/14 should hopefully fix the problem. 🤞

              O Offline
              O Offline
              odie
              wrote on last edited by
              #15

              @girish said in Nextcloud fails to provision my users after upgrade to v30.05:

              Sorry hit the weekend, so couldn't spend time on debugging it. But https://git.cloudron.io/packages/nextcloud-app/-/merge_requests/14 should hopefully fix the problem. 🤞

              Thank you, @girish for debugging and fixing today. Everything was working great.

              ... until it wasn't. Upon installing tonight's update (version 5.1.0), I get the same error message (Access forbidden: Failed to provision the user) when I try to add new clients. This happens on web and via Nextcloud sync clients. On clients where I managed to log in (after the update you fixed earlier today, but before v5.1.0 (could it be Package v5.0.4, perhaps), your fixes worked. But they seem to have been re-introduced in package v5.1.0.

              The behaviour is strange. After updating to v5.1.0, I can still log in and work with files etc. on clients that were logged in before updating to 5.1.0. But after the update, any new client that attempts to connect, get the "Failed to provision the user" error message.

              I restored the v5.0.4 backup, and with this version, I can log in with Cloudron. But once I install v5.1.0, the same errors trigger again.

              girishG 1 Reply Last reply
              1
              • O odie referenced this topic on
              • O odie

                @girish said in Nextcloud fails to provision my users after upgrade to v30.05:

                Sorry hit the weekend, so couldn't spend time on debugging it. But https://git.cloudron.io/packages/nextcloud-app/-/merge_requests/14 should hopefully fix the problem. 🤞

                Thank you, @girish for debugging and fixing today. Everything was working great.

                ... until it wasn't. Upon installing tonight's update (version 5.1.0), I get the same error message (Access forbidden: Failed to provision the user) when I try to add new clients. This happens on web and via Nextcloud sync clients. On clients where I managed to log in (after the update you fixed earlier today, but before v5.1.0 (could it be Package v5.0.4, perhaps), your fixes worked. But they seem to have been re-introduced in package v5.1.0.

                The behaviour is strange. After updating to v5.1.0, I can still log in and work with files etc. on clients that were logged in before updating to 5.1.0. But after the update, any new client that attempts to connect, get the "Failed to provision the user" error message.

                I restored the v5.0.4 backup, and with this version, I can log in with Cloudron. But once I install v5.1.0, the same errors trigger again.

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

                @odie my bad 😕 I fogot to make a patch on top of 5.1.0 as well. Hold on, 5.1.1 is coming

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

                  @odie this should be fixed now. Update to 5.1.1 and it should work.

                  O 1 Reply Last reply
                  1
                  • girishG girish

                    @odie this should be fixed now. Update to 5.1.1 and it should work.

                    O Offline
                    O Offline
                    odie
                    wrote on last edited by odie
                    #18

                    @girish said in Nextcloud fails to provision my users after upgrade to v30.05:

                    @odie this should be fixed now. Update to 5.1.1 and it should work.

                    Thanks! Updating now, will report back if there are any issues (updates take some time due to large backups). Edit: Updated to 5.1.1, the fixes are working. Thanks.

                    1 Reply Last reply
                    2
                    • jdaviescoatesJ jdaviescoates

                      @girish said in Nextcloud fails to provision my users after upgrade to v30.05:

                      Which package version are you on? There was a bug in the initial package that the groups of a user are reset on login. This has since been fixed. If you go to Admin -> OpenID Connect -> Cloudron -> edit -> User group provisioning must be unchecked.

                      It does sound like you are still on the old broken version. Answering this direct question will help the team to help you @coniunctio

                      coniunctioC Offline
                      coniunctioC Offline
                      coniunctio
                      wrote on last edited by
                      #19

                      @jdaviescoates I updated the setting per your instructions and that did the trick! Thank you.

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