-
-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to Start on 3.0.2 with "user 101 not found" #586
Comments
Does anyone have a workaround for this to get back running? Fortunately I had the 1.3.0 version of 3.0.2 cached so I was able to downgrade to that. |
I changed the last 2 lines of launch-netbox.sh from "--user 101 --group 0" to "--user unit --group unit" and it worked for me. |
@rehashedsalt try to add the user option to your ansible task, equivilent to this line in the compose file: /~https://github.com/netbox-community/netbox-docker/blob/release/docker-compose.yml#L11 I'm assuming that it fails because the user doesn't exist according to getpwnam(3). Ansible task documentation for the option: |
That change seems to have mitigated the issue. |
Is this the proper solution, though? It looks to me that the purpose of #546 is to drop to a lesser user transparently when the container is spawned as root. That functionality, if I understand it correctly, is currently broken. |
Could you test your deployment with the changes from PR #589 (You have to build an image with theses changes)? Side note: It's not recommended to run the container as root. Also the user ID can be anything as long as the group ID is 0. |
Hi @tobiasge I had the same issue as @rehashedsalt described. This morning I built a docker image using your PR (please see gdelanoe/netbox:pr-589). Thanks a lot! |
Current Behavior
Attempting to start the container on my production instance fails with the following error:
I'm also not the only one observing this problem: #585
Expected Behavior
The container starts.
Debug Information
The output of
docker-compose version
: N/AThe output of
docker version
:The command you used to start the project: It's complicated. Here's the Ansible task I use. The rest of the repository contains configuration for the rest of my environment, and I'd be happy to provide details if anything is unclear.
The output of
docker inspect netboxcommunity/netbox:latest --format "{{json .Config.Labels}}"
:The output of
docker-compose logs netbox
: N/A. Relevant log section is at the top of the issue.The output of
cat docker-compose.override.yml
: N/A.Additional Details
I was unable to replicate the issue using just the docker-compose provided in the repo, but observed the issue in my lab environment. This suggests that the issue manifests over the course of Netbox usage and/or when a particular feature is used.
The text was updated successfully, but these errors were encountered: