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

Improve error message when CLI wrapper Exec fails #7373

Merged
merged 1 commit into from Apr 28, 2023

Conversation

brandond
Copy link
Contributor

@brandond brandond commented Apr 28, 2023

Proposed Changes

Improve error message when CLI wrapper Exec fails

Right now if the k3s CLI wrapper fails to exec the extracted binaries (most frequently because /var is mounted noxec), it just prints a fairly hard to diagnose FATA [0000] permission denied error.

This wraps the exec error in some context showing what it was trying to exec, to assist with troubleshooting.

Perhaps we could also check to see if the filesystem is mounted noexec and return an even more meaningful error, but there doesn't seem to be a particularly graceful way to do that.

Types of Changes

bugfix

Verification

See linked issue

Testing

Linked Issues

User-Facing Change

K3s now prints a more meaningful error when attempting to run from a filesystem mounted `noexec`.

Further Comments

@brandond brandond requested a review from a team as a code owner April 28, 2023 08:47
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants