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

Feature: Improve the error message that we got: exit 125 #432

Closed
1 task done
cmoulliard opened this issue Nov 5, 2024 · 2 comments · Fixed by #435
Closed
1 task done

Feature: Improve the error message that we got: exit 125 #432

cmoulliard opened this issue Nov 5, 2024 · 2 comments · Fixed by #435
Labels
enhancement New feature or request

Comments

@cmoulliard
Copy link
Contributor

cmoulliard commented Nov 5, 2024

Have you searched for this feature request?

  • I searched but did not find similar requests

Problem Statement

Issue

When the kind container fails to be started as by example a file to be mounted don't exist, e got an error: exit 125

Nov  5 16:14:44 INFO Creating kind cluster logger=setup cluster=my-konflux
Nov  5 16:14:45 ERROR Error starting kind cluster logger=setup err=command "podman run --name my-konflux-control-plane --hostname my-konflux-control-plane --label io.x-k8s.kind.role=control-plane --privileged --tmpfs /tmp --tmpfs /run --volume 3b99d6c3e2675118c358c91abcd4a44c0734c822a60fd0c7b504ad916ef036b7:/var:suid,exec,dev --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --net kind --label io.x-k8s.kind.cluster=my-konflux -e container=podman --cgroupns=private --volume /dev/mapper:/dev/mapper --device /dev/fuse --volume=/run/user/1000/containers/auth.json:/var/lib/kubelet/config.json --publish=0.0.0.0:8443:443/tcp --publish=127.0.0.1:38407:6443/tcp -e KUBECONFIG=/etc/kubernetes/admin.conf docker.io/kindest/
node@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e" failed with error: exit status 125

instead of the real error which is

[fedora@charles-k8s my-konflux]$ podman run --name my-konflux-control-plane --hostname my-konflux-control-plane --label io.x-k8s.kind.role=control-plane --privileged --tmpfs /tmp --tmpfs /run --volume 3b99d6c3e2675118c358c91abcd4a44c0734c822a60fd0c7b504ad916ef036b7:/var:suid,exec,dev --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --net kind --label io.x-k8s.kind.cluster=my-konflux -e container=podman --cgroupns=private --volume /dev/mapper:/dev/mapper --device /dev/fuse --volume=/run/user/1000/containers/auth.json:/var/lib/kubelet/config.json --publish=0.0.0.0:8443:443/tcp --publish=127.0.0.1:38407:6443/tcp -e KUBECONFIG=/etc/kubernetes/admin.conf docker.io/kindest/node@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e
Error: statfs /run/user/1000/containers/auth.json: no such file or directory

Possible Solution

n/a

Alternatives Considered

No response

@cmoulliard cmoulliard added the enhancement New feature or request label Nov 5, 2024
@nabuskey
Copy link
Collaborator

nabuskey commented Nov 5, 2024

Same as #357

@cmoulliard
Copy link
Contributor Author

You got exit 1 and I got exit 125 ;-)

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

Successfully merging a pull request may close this issue.

2 participants