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. OIDC "Login with Cloudron" into Nextcloud suddenly broken?

OIDC "Login with Cloudron" into Nextcloud suddenly broken?

Scheduled Pinned Locked Moved Solved Nextcloud
11 Posts 3 Posters 361 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.
  • jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    wrote on last edited by
    #2

    Still working for me. Which versions of Cloudron and the Nextcloud package are you on?

    Have you recently updated any plugins? Mostly it's incompatible plugins that break Nextcloud

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    0
    • whitespaceW Offline
      whitespaceW Offline
      whitespace
      wrote on last edited by
      #3

      Nextcloud:
      Nextcloud 31.0.2
      com.nextcloud.cloudronapp@5.4.1

      Cloudron:
      v8.3.1 (Ubuntu 22.04.2 LTS)

      1 Reply Last reply
      0
      • BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote on last edited by
        #4

        Please try a different browser. Everytime I see Safari I have a gut feeling. . .
        If that is not it.
        Did you recently update the nextcloud app? Did you try a restore if that solves your issue?

        Like my work? Consider donating a drink. Cheers!

        whitespaceW 1 Reply Last reply
        0
        • BrutalBirdieB BrutalBirdie

          Please try a different browser. Everytime I see Safari I have a gut feeling. . .
          If that is not it.
          Did you recently update the nextcloud app? Did you try a restore if that solves your issue?

          whitespaceW Offline
          whitespaceW Offline
          whitespace
          wrote on last edited by
          #5

          @BrutalBirdie

          Same error log in Firefox.

          The problem started before the update. I updated to the latest version in hope of a fix. To no avail.

          This part of the error points to ShareDisableChecker.php. I don't know what to do with that.

          /app/code/lib/private/Share20/ShareDisableChecker.php' line 59","userAgent":
          

          Looking into Nextcloud's code I see this on line 59:

            $remainingGroups = array_diff($usersGroups, $excludedGroups);
          

          Source:
          https://github.com/nextcloud/server/blob/master/lib/private/Share20/ShareDisableChecker.php#L59


          I assume it has something to do with Users Groups then. But this is as far as I get.

          Group provisioning on Nextcloud OIDC plugin is enabled.

          BrutalBirdieB 1 Reply Last reply
          0
          • whitespaceW whitespace

            @BrutalBirdie

            Same error log in Firefox.

            The problem started before the update. I updated to the latest version in hope of a fix. To no avail.

            This part of the error points to ShareDisableChecker.php. I don't know what to do with that.

            /app/code/lib/private/Share20/ShareDisableChecker.php' line 59","userAgent":
            

            Looking into Nextcloud's code I see this on line 59:

              $remainingGroups = array_diff($usersGroups, $excludedGroups);
            

            Source:
            https://github.com/nextcloud/server/blob/master/lib/private/Share20/ShareDisableChecker.php#L59


            I assume it has something to do with Users Groups then. But this is as far as I get.

            Group provisioning on Nextcloud OIDC plugin is enabled.

            BrutalBirdieB Offline
            BrutalBirdieB Offline
            BrutalBirdie
            Partner
            wrote on last edited by
            #6

            @whitespace said in OIDC "Login with Cloudron" into Nextcloud suddenly broken?:

            The problem started before the update.

            If so, what where your latest changes to the Nextcloud? Maybe you did some setting change?
            Maybe share the app log for fruther investigation.

            Like my work? Consider donating a drink. Cheers!

            whitespaceW 1 Reply Last reply
            0
            • BrutalBirdieB BrutalBirdie

              @whitespace said in OIDC "Login with Cloudron" into Nextcloud suddenly broken?:

              The problem started before the update.

              If so, what where your latest changes to the Nextcloud? Maybe you did some setting change?
              Maybe share the app log for fruther investigation.

              whitespaceW Offline
              whitespaceW Offline
              whitespace
              wrote on last edited by
              #7

              @BrutalBirdie

              I changed which groups can manage users within Nextcloud. That is all.
              Some users had lost their admin rights which I regranted them. I made a post a few hours ago that shows how I did this.

              One thing that I noticed is that users I put into a Nextcloud group within Nextcloud did not stay there after re-logins at first. Then all of a sudden no user was able to login as described.

              jdaviescoatesJ 1 Reply Last reply
              0
              • BrutalBirdieB Offline
                BrutalBirdieB Offline
                BrutalBirdie
                Partner
                wrote on last edited by
                #8

                Ah soo this issue is linked to https://forum.cloudron.io/topic/13593/oidc-regex-removed-nc-admin-group.

                Like my work? Consider donating a drink. Cheers!

                1 Reply Last reply
                1
                • whitespaceW whitespace

                  @BrutalBirdie

                  I changed which groups can manage users within Nextcloud. That is all.
                  Some users had lost their admin rights which I regranted them. I made a post a few hours ago that shows how I did this.

                  One thing that I noticed is that users I put into a Nextcloud group within Nextcloud did not stay there after re-logins at first. Then all of a sudden no user was able to login as described.

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

                  @whitespace said in OIDC "Login with Cloudron" into Nextcloud suddenly broken?:

                  One thing that I noticed is that users I put into a Nextcloud group within Nextcloud did not stay there after re-logins at first. Then all of a sudden no user was able to login as described.

                  Sounds like your fix broke it.

                  @whitespace said in OIDC "Login with Cloudron" into Nextcloud suddenly broken?:

                  One thing that I noticed is that users I put into a Nextcloud group within Nextcloud did not stay there after re-logins at first.

                  This was a bug with one version, but then the next version resolved it. But I think the broken version was also then recalled, so I'm surprised you hit it again. Unless you'd already updated to it before it was revoked, hadn't spotted the issue, then spotted it and tried to fix the issue yourself with the regex thing? Then updated again but it was still broken? If so, if I were you what I'd probably try is: make a clone from a backup of Cloudron package 4.23.4. Then update that until the latest version and see if it's all working fine. If so, do the same with your existing one, or just change the new updated clone to be the URL of the now broken one (after changing that to something else first, obviously).

                  I use Cloudron with Gandi & Hetzner

                  1 Reply Last reply
                  0
                  • whitespaceW Offline
                    whitespaceW Offline
                    whitespace
                    wrote on last edited by
                    #10

                    Good Morning and thank you for supporting my thought process.

                    I restored from the last functioning backup and was able to login. Of course we are missing 24 hours of synced data but this is not a big issue. Backups are there and local folders are slowly getting synced up into nc.

                    Now, I was able to make a certain profile nc admin again via occ. This gave me the chance to get into the config of the Open ID Connect app inside nc.

                    Right now I suppose the problem occurs due to a conflict of group provisioning. We have OIDC users and their groups are being provisioned into nc. We also have legacy nc native groups. If the conflict really lies within the group provisioning, I am not sure what to do next.

                    Do you recommend to turn off group provisioning until it is clear?


                    On the weekend I will clone the working copy and update it to see if the issue is caused by the update or by something else. This is my strategy so far.

                    1 Reply Last reply
                    1
                    • whitespaceW Offline
                      whitespaceW Offline
                      whitespace
                      wrote on last edited by
                      #11

                      Just updated the last working version to the newest package. Everything is fine. I guess the cause was the strange group provisioning confusion I caused.

                      Smooth ride so far.

                      1 Reply Last reply
                      2
                      • J joseph marked this topic as a question on
                      • J joseph has marked this topic as solved 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