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. BookStack
  3. Cannot login anymore after switch to OIDC in latest update

Cannot login anymore after switch to OIDC in latest update

Scheduled Pinned Locked Moved Solved BookStack
46 Posts 6 Posters 3.4k Views 6 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

    @Jan-Macenka Cloudron uses a DNS server called unbound internally. See https://docs.cloudron.io/networking/#private-dns . All the DNS queries go via unbound, so you have to maybe fix up unbound based on your setup (instead of editing /etc/hosts which won't solve it for apps that use DNS).

    Jan MacenkaJ Offline
    Jan MacenkaJ Offline
    Jan Macenka
    wrote on last edited by Jan Macenka
    #41

    @girish and @nebulon thanks a lot (as always, I really love the amount of support you provide!)

    Effectively everything was already documented here, and I just had to connect the dots.

    What worked for me:

    1. Login to the Cloudron-Server via SSH
    2. Create this file sudo touch /etc/unbound/unbound.conf.d/cloudron-local.conf
    3. Edit the file with this content sudo nano /etc/unbound/unbound.conf.d/cloudron-local.conf:
    server:
            # Local zone definitions
            local-zone: "<YOUR_DOMAIN_HERE>." typetransparent
            local-data: "<YOUR_SUB_DOMAIN_HERE>.<YOUR_DOMAIN_HERE>. IN A <YOUR_STATIC_IP_HERE>"
    

    so for example:

    server:
            # Local zone definitions
            local-zone: "example.com." typetransparent
            local-data: "my.example.com. IN A 10.10.0.3"
    
    1. Reboot the system

    This should hopefully also fix this for other Apps that need to resolve this.

    UPDATE: Damn... this fixed the immediate issue but after some more dabbling, I found that this had some side-effects where other Apps seem to have trouble connecting properly... Will work on this some more and update you if I find a workable solution.

    girishG Jan MacenkaJ 2 Replies Last reply
    2
    • Jan MacenkaJ Jan Macenka

      @girish and @nebulon thanks a lot (as always, I really love the amount of support you provide!)

      Effectively everything was already documented here, and I just had to connect the dots.

      What worked for me:

      1. Login to the Cloudron-Server via SSH
      2. Create this file sudo touch /etc/unbound/unbound.conf.d/cloudron-local.conf
      3. Edit the file with this content sudo nano /etc/unbound/unbound.conf.d/cloudron-local.conf:
      server:
              # Local zone definitions
              local-zone: "<YOUR_DOMAIN_HERE>." typetransparent
              local-data: "<YOUR_SUB_DOMAIN_HERE>.<YOUR_DOMAIN_HERE>. IN A <YOUR_STATIC_IP_HERE>"
      

      so for example:

      server:
              # Local zone definitions
              local-zone: "example.com." typetransparent
              local-data: "my.example.com. IN A 10.10.0.3"
      
      1. Reboot the system

      This should hopefully also fix this for other Apps that need to resolve this.

      UPDATE: Damn... this fixed the immediate issue but after some more dabbling, I found that this had some side-effects where other Apps seem to have trouble connecting properly... Will work on this some more and update you if I find a workable solution.

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

      @Jan-Macenka said in Cannot login anymore after switch to OIDC in latest update:

      UPDATE: Damn... this fixed the immediate issue but after some more dabbling, I found that this had some side-effects where other Apps seem to have trouble connecting properly... Will work on this some more and update you if I find a workable solution.

      Can you explain this a bit more? What other apps have problems? Maybe you just have them too to local-data ?

      Jan MacenkaJ 1 Reply Last reply
      0
      • girishG girish

        @Jan-Macenka said in Cannot login anymore after switch to OIDC in latest update:

        UPDATE: Damn... this fixed the immediate issue but after some more dabbling, I found that this had some side-effects where other Apps seem to have trouble connecting properly... Will work on this some more and update you if I find a workable solution.

        Can you explain this a bit more? What other apps have problems? Maybe you just have them too to local-data ?

        Jan MacenkaJ Offline
        Jan MacenkaJ Offline
        Jan Macenka
        wrote on last edited by
        #43

        @girish when trying to use Roundcube (Email), it states that "Verbindung zum Speicherserver fehlgeschlagen" (Connection to storage server failed). Also when I try to go to Cloudron-Web-UI > Settings > Email, I always get a re-direct to the /#/apps path.

        bb9790d8-2cd4-4242-b2a2-6e58c9fadff3-2023-12-06_17-50.png

        I disabled the /etc/unbound/unbound.conf.d/cloudron-local.conf file but same result.

        Any advise where to debug this?

        girishG 1 Reply Last reply
        0
        • Jan MacenkaJ Jan Macenka

          @girish when trying to use Roundcube (Email), it states that "Verbindung zum Speicherserver fehlgeschlagen" (Connection to storage server failed). Also when I try to go to Cloudron-Web-UI > Settings > Email, I always get a re-direct to the /#/apps path.

          bb9790d8-2cd4-4242-b2a2-6e58c9fadff3-2023-12-06_17-50.png

          I disabled the /etc/unbound/unbound.conf.d/cloudron-local.conf file but same result.

          Any advise where to debug this?

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

          @Jan-Macenka OK, so this fails regardless of the unbound configuration . Have you enabled Cloudron email in the first place? On a side note, it's quite unlikely that running Email from an internal network (and no hairpinning) will work.

          Jan MacenkaJ 1 Reply Last reply
          0
          • girishG girish

            @Jan-Macenka OK, so this fails regardless of the unbound configuration . Have you enabled Cloudron email in the first place? On a side note, it's quite unlikely that running Email from an internal network (and no hairpinning) will work.

            Jan MacenkaJ Offline
            Jan MacenkaJ Offline
            Jan Macenka
            wrote on last edited by
            #45

            @girish answered you in direct chat. If we have results that are of public interest, we can publish it here afterwards 🙂

            1 Reply Last reply
            0
            • Jan MacenkaJ Jan Macenka

              @girish and @nebulon thanks a lot (as always, I really love the amount of support you provide!)

              Effectively everything was already documented here, and I just had to connect the dots.

              What worked for me:

              1. Login to the Cloudron-Server via SSH
              2. Create this file sudo touch /etc/unbound/unbound.conf.d/cloudron-local.conf
              3. Edit the file with this content sudo nano /etc/unbound/unbound.conf.d/cloudron-local.conf:
              server:
                      # Local zone definitions
                      local-zone: "<YOUR_DOMAIN_HERE>." typetransparent
                      local-data: "<YOUR_SUB_DOMAIN_HERE>.<YOUR_DOMAIN_HERE>. IN A <YOUR_STATIC_IP_HERE>"
              

              so for example:

              server:
                      # Local zone definitions
                      local-zone: "example.com." typetransparent
                      local-data: "my.example.com. IN A 10.10.0.3"
              
              1. Reboot the system

              This should hopefully also fix this for other Apps that need to resolve this.

              UPDATE: Damn... this fixed the immediate issue but after some more dabbling, I found that this had some side-effects where other Apps seem to have trouble connecting properly... Will work on this some more and update you if I find a workable solution.

              Jan MacenkaJ Offline
              Jan MacenkaJ Offline
              Jan Macenka
              wrote on last edited by
              #46

              Ok, after same more debugging with @girish it turned out that this solution works as intended.

              My Email-Services stopped working which was due to a change in local name resolution. Restarting the Email-Server and updating some configurations in my Firewall solved the issue.

              1 Reply Last reply
              1
              • Jan MacenkaJ Jan Macenka 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