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. Support
  3. Cloudron 8.2.4 - Configure LDAP leads to box.service crash

Cloudron 8.2.4 - Configure LDAP leads to box.service crash

Scheduled Pinned Locked Moved Solved Support
directoryserver
5 Posts 2 Posters 337 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.
  • BrutalBirdieB Offline
    BrutalBirdieB Offline
    BrutalBirdie
    Partner
    wrote on last edited by joseph
    #1
    2025-02-27T14:32:46.644Z TypeError: Converting circular structure to JSON
    2025-02-27T14:32:46.644Z     --> starting at object with constructor 'Object'                                           2025-02-27T14:32:46.644Z     --- property 'issuerCertificate' closes the circle
    2025-02-27T14:32:46.644Z     at JSON.stringify (<anonymous>)
    2025-02-27T14:32:46.644Z     at new BoxError (/home/yellowtent/box/src/boxerror.js:13:154)
    2025-02-27T14:32:46.644Z     at /home/yellowtent/box/src/externalldap.js:139:38
    2025-02-27T14:32:46.644Z     at Client.callbackWrapper (/home/yellowtent/box/node_modules/ldapjs/lib/client/client.js:294:5)                                                                                                                    2025-02-27T14:32:46.644Z     at Client.emit (node:events:519:28)                                                        2025-02-27T14:32:46.644Z     at TLSSocket.onResult (/home/yellowtent/box/node_modules/ldapjs/lib/client/client.js:812:14)                                                                                                                       2025-02-27T14:32:46.644Z     at Object.onceWrapper (node:events:634:26)
    2025-02-27T14:32:46.644Z     at TLSSocket.emit (node:events:519:28)
    2025-02-27T14:32:46.644Z     at emitErrorNT (node:internal/streams/destroy:169:8)
    2025-02-27T14:32:46.644Z     at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    

    c89ce475-05a2-412e-9d76-e58d8b6fc0b6-image.png

    Investigating.

    Like my work? Consider donating a drink. Cheers!

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

      Somehow, this issue resolved itself overnight.
      I mean yea nice, it solved itself, but I wanted to understand whhhyyyyyy.

      Anyway.

      #SOLVED

      Like my work? Consider donating a drink. Cheers!

      1 Reply Last reply
      1
      • J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #2

        Per the backtrace, it seems the bind is not working . Is the Cloudron IP whitelisted?

        1 Reply Last reply
        0
        • J joseph marked this topic as a question on
        • BrutalBirdieB Offline
          BrutalBirdieB Offline
          BrutalBirdie
          Partner
          wrote on last edited by
          #3

          Yes.
          a5e978db-f2ba-4eb2-a1e2-0edb7d1ec038-image.png
          Server 1:
          29490a31-1907-4727-830e-69395e2bf6fd-image.png
          Server 2:
          9e714989-020b-40ae-a1b6-daa431c21f90-image.png

          That did not get touched. 🤔

          Like my work? Consider donating a drink. Cheers!

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

            I got hooked and wanted more.

            Can't I use the node.js debugger? I could? Right?

            node inspect -p $(systemctl show --property MainPID --value box.service)
            connecting to 127.0.0.1:9229 ... ok
            

            Ah, so now I ssh tunnel into the server:

            ssh -L 9229:localhost:9229 USER@my.DOMAIN.TLD
            

            In chromium (my case Brave) I simply open chrome://inspect and can see the box.js and all other src files and set breakpoints and get a more in detail break log:
            b7580c9a-3396-45ae-9126-44b6fc2327a0-image.png

            So I guess from the error in my original post it should be here:

            2025-02-27T14:32:46.644Z     at /home/yellowtent/box/src/externalldap.js:139:38
            

            f3b186e6-1e3b-4277-af99-7e4eb52e099e-image.png
            Hmm this only throws the error in // ensure we don't just crash but we did exactly that 😄
            So the Issue seems to arise in the getClient function. 🤔

            22f01934-0c36-4efe-aed1-86c7d30c5a54-2ea45b7a-52c2-4618-bcd1-ab49b8b2d4ee-image.png
            So it seems the ldap.createClient(ldapConfig) errors. Right?
            I made sure it was not my super secure password causing some string escaping issue or anything by setting a basic hex string as the bind password.

            Need to dig deeper! But not today. 👋file:///home/eha/Downloads/2ea45b7a-52c2-4618-bcd1-ab49b8b2d4ee-image.png

            Like my work? Consider donating a drink. Cheers!

            1 Reply Last reply
            2
            • BrutalBirdieB Offline
              BrutalBirdieB Offline
              BrutalBirdie
              Partner
              wrote on last edited by
              #5

              Somehow, this issue resolved itself overnight.
              I mean yea nice, it solved itself, but I wanted to understand whhhyyyyyy.

              Anyway.

              #SOLVED

              Like my work? Consider donating a drink. Cheers!

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