netbox-docker: LDAP broken after upgrade to 1.x

Current Behavior

Upgraded from 0.27 to 1.0.1 per the instructions. Everything starts up fine but LDAP authentication doesn’t work. Logs don’t show /etc/netbox/config/ldap/ldap_config.py getting loaded …

Expected Behavior

Loading of /etc/netbox/config/ldap/ldap_config.py and LDAP authentication working like with 0.27 …

Debug Information

docker-compose version

docker-compose version 1.25.0, build unknown
docker-py version: 4.1.0
CPython version: 3.8.5
OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020

docker version

Client:
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.13.8
 Git commit:        afacb8b7f0
 Built:             Fri Dec 18 12:15:19 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.8
  Git commit:       afacb8b7f0
  Built:            Fri Dec  4 23:02:49 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.3.3-0ubuntu2.2
  GitCommit:
 runc:
  Version:          spec: 1.0.1-dev
  GitCommit:
 docker-init:
  Version:          0.18.0
  GitCommit:

git rev-parse HEAD 4dd7a51c7d79b097dea8ee7cf493dff00ebf50c3

Command used to start docker-compose up -d

The output of docker inspect netboxcommunity/netbox:latest --format "{{json .Config.Labels}}": `

{
   "BUILD_REASON":"netbox-docker",
   "NETBOX_GIT_BRANCH":"HEAD",
   "NETBOX_GIT_REF":"856d2e317605011e16a17bd87062721737ce3474",
   "NETBOX_GIT_URL":"https://github.com/netbox-community/netbox.git",
   "ORIGINAL_TAG":"docker.io/netboxcommunity/netbox:v2.10.4",
   "org.label-schema.build-date":"2021-02-03T14:30+00:00",
   "org.label-schema.description":"A container based distribution of Netbox, the free and open IPAM and DCIM solution.",
   "org.label-schema.name":"Netbox Docker",
   "org.label-schema.schema-version":"1.0",
   "org.label-schema.url":"https://github.com/netbox-community/netbox-docker",
   "org.label-schema.usage":"https://github.com/netbox-community/netbox-docker/wiki",
   "org.label-schema.vcs-ref":"4dd7a51c7d79b097dea8ee7cf493dff00ebf50c3",
   "org.label-schema.vcs-url":"https://github.com/netbox-community/netbox-docker.git",
   "org.label-schema.vendor":"The netbox-docker contributors.",
   "org.label-schema.version":"1.0.1",
   "org.opencontainers.image.authors":"The netbox-docker contributors.",
   "org.opencontainers.image.created":"2021-02-03T14:30+00:00",
   "org.opencontainers.image.description":"A container based distribution of Netbox, the free and open IPAM and DCIM solution.",
   "org.opencontainers.image.documentation":"https://github.com/netbox-community/netbox-docker/wiki",
   "org.opencontainers.image.licenses":"Apache-2.0",
   "org.opencontainers.image.revision":"4dd7a51c7d79b097dea8ee7cf493dff00ebf50c3",
   "org.opencontainers.image.source":"https://github.com/netbox-community/netbox-docker.git",
   "org.opencontainers.image.title":"Netbox Docker",
   "org.opencontainers.image.url":"https://github.com/netbox-community/netbox-docker",
   "org.opencontainers.image.vendor":"The netbox-docker contributors.",
   "org.opencontainers.image.version":"1.0.1"
}

The output of docker-compose logs netbox: https://gist.github.com/karrots/f1312d393fdbc6ed7447028b3ea86133

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Got the same issue, I am using the latest ldap image.

/opt/netbox/netbox/netbox/ does not contain a ldap_config file. in /etc/netbox/config/ldap_config.py does exist.

Any hints?

Using docker image: netboxcommunity/netbox:v2.10.4

You should be using the -ldap image.