hi everyone im getting a 🚨 [error]: Could not ...
# troubleshooting
m
hi everyone im getting a 🚨 [error]: Could not bring up the servers: while binding the LDAP server: while binding to the port 3890: Address not available (os error 99) but im not running anything that would bind to that port this is the compose im using
Copy code
yml
version: "3"

volumes:
  lldap_data:
    driver: local

services:
  lldap:
    image: nitnelave/lldap:stable
    #restart: unless-stopped
    ports:
      # For LDAP
      - "3890:3890"
      # For LDAPS (LDAP Over SSL), enable port if LLDAP_LDAPS_OPTIONS__ENABLED set true, look env below
      #- "6360:6360"
      # For the web front-end
      - "17170:17170"
    volumes:
      - "/var/lldap:/data"
      # Alternatively, you can mount a local folder
      # - "./lldap_data:/data"
i 777nd the /var/lldap folder and all its contents
n
Here's a brand new thread for you! Please keep the discussion for this problem in this thread.
n
Stupid question, but are you sure you don't have 2 instances of LLDAP running?
Or is there anything else running on the host on that port?
sudo lsof -i:3890
m
Yes
I edited my config and commented out the line with the host IP for LDAP and http and now it seams to work but I can't seam to connect/setup access from nextcloud
I also tried to connect the container to the nextcloud network
n
You shouldn't need to expose the 3890 port if you only access LLDAP (via LDAP) from other Docker containers, just put them on the same network (as it seems you did)
If you open a shell in the nextcloud container, can you resolve the lldap host?
If you try to ping it, for instance
Maybe it won't reply, but at least the name should resolve
m
Ping on fqdn works and responds with IP address so name resolution and connection seam to work
I tested the connection with the nextcloud AIO container
The AIO Apache container is also able to ping me
n
So what's wrong with nextcloud? What error are you getting?
Sorry, it's bedtime for me, but if you have any logs, LLDAP or nextcloud, I can have a look tomorrow
m
Jea same np I get "Configuration incorrect" and "Lost connection to LDAP server." a couple of times
I got this in my logs: ldap_bind(): Unable to bind to server: Can't contact LDAP server at /var/www/html/apps/user_ldap/lib/LDAP.php#306
Ok so I tried to connect with a different server and exposed the port and now it's working but only if I keep the port open so I either connected the wrong container to the wrong net or it's just not working
n
Well, it's hard for me to diagnose docker connectivity without seeing what you do 😅 If you want, you can share the relevant parts of your docker compose and how you're trying to connect to LLDAP from nextcloud, and we can have a look