Skip to content
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

can't start ubuntu (useradd: UID is not unique) #1483

Open
2-www opened this issue May 1, 2024 · 1 comment
Open

can't start ubuntu (useradd: UID is not unique) #1483

2-www opened this issue May 1, 2024 · 1 comment
Labels
1. Bug Something isn't working

Comments

@2-www
Copy link

2-www commented May 1, 2024

$ toolbox create --distro ubuntu --release latest
Created container: ubuntu-toolbox-latest
Enter with: toolbox enter ubuntu-toolbox-latest
$ toolbox enter ubuntu-toolbox-latest
Error: failed to initialize container ubuntu-toolbox-latest
$ journalctl ...
...
ubuntu-toolbox-latest[66635]: level=debug msg="Adding user user with UID 1000:"
ubuntu-toolbox-latest[66635]: level=debug msg=useradd
ubuntu-toolbox-latest[66635]: level=debug msg=--groups
ubuntu-toolbox-latest[66635]: level=debug msg=sudo
ubuntu-toolbox-latest[66635]: level=debug msg=--home-dir
ubuntu-toolbox-latest[66635]: level=debug msg=/home/user
ubuntu-toolbox-latest[66635]: level=debug msg=--no-create-home
ubuntu-toolbox-latest[66635]: level=debug msg=--shell
ubuntu-toolbox-latest[66635]: level=debug msg=/bin/bash
ubuntu-toolbox-latest[66635]: level=debug msg=--uid
ubuntu-toolbox-latest[66635]: level=debug msg=1000
ubuntu-toolbox-latest[66635]: level=debug msg=user
ubuntu-toolbox-latest[66635]: useradd: UID 1000 is not unique
useradd[66677]: failed adding user 'user', exit code: 4
ubuntu-toolbox-latest[66635]: Error: failed to add user user with UID 1000: failed to invoke useradd(1)
...

Output of toolbox --version (v0.0.90+)
toolbox version 0.0.99.3

Toolbx package info (rpm -q toolbox)
i don't have rpm

Output of podman version

Client:       Podman Engine
Version:      4.9.3
API Version:  4.9.3
Go Version:   go1.21.6
Built:        Thu Jan  1 03:00:00 1970
OS/Arch:      linux/amd64

Podman package info (rpm -q podman)
i don't have rpm

Info about your OS
Debian testing

@2-www 2-www added the 1. Bug Something isn't working label May 1, 2024
@pdfrod
Copy link

pdfrod commented Aug 28, 2024

Had the same issue with Ubuntu 23.04 and 23.10.

After poking around in the image, I noticed that there's already a user named ubuntu with UID 1000. So it seems to be a UID conflict between the host and the guest config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants