Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

More descriptive / detailed error expected #439

Open
DenisBalan opened this issue May 13, 2024 · 0 comments
Open

More descriptive / detailed error expected #439

DenisBalan opened this issue May 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@DenisBalan
Copy link

When running on a fresh ubuntu vm
containerd-rootless-setuptool.sh check or rootlesskit bash

Got strange error

ubuntu@energetic-anemone:~$ containerd-rootless-setuptool.sh check
[INFO] Checking RootlessKit functionality
[rootlesskit:parent] error: failed to start the child: fork/exec /proc/self/exe: operation not permitted
[ERROR] RootlessKit failed, see the error messages and https://rootlesscontaine.rs/getting-started/common/ .

https://github.com/containerd/nerdctl/blob/35f22c7bf0cd011077c1cb0429a58730fb5be411/extras/rootless/containerd-rootless-setuptool.sh#L110

Turn out containerd-rootless-setuptool.sh is not well description enough to provide resolution (as rootlesskit bash is doing)
Or at least to pipe whole output from inner rootlesskit process

	INFO "Checking RootlessKit functionality"
	if ! rootlesskit \
		--net=slirp4netns \
		--disable-host-loopback \
		--copy-up=/etc --copy-up=/run --copy-up=/var/lib \
		true; then
		ERROR "RootlessKit failed, see the error messages and https://rootlesscontaine.rs/getting-started/common/ ."
		exit 1
	fi

It took some time until I figured out that there is similar issue, see also #425

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants