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

CLI - Upgrade issue when running command on non root ser #3639

Open
gonzalochief opened this issue Aug 30, 2022 · 0 comments
Open

CLI - Upgrade issue when running command on non root ser #3639

gonzalochief opened this issue Aug 30, 2022 · 0 comments

Comments

@gonzalochief
Copy link

There is an error that appears when running jx upgrade cli with a non-root account, using an installation as describe below:

curl -L https://github.com/jenkins-x/jx/releases/download/v3.4.12/jx-linux-amd64.tar.gz | tar xzv
chmod +x jx 
sudo mv jx /usr/local/bin

The error is related to lack of permissions to access the directory /usr/local/bin when trying to create "jx.new". This directory has 755 permissions.
The command fails even when running with sudo.
The error disappears when the permissions of the directory are changed to 757 or 777.
There should be a note in the documentation alerting that the upgrade fails when running it with an user different to root, or providing the instructions to modify the permissions for the /usr/local/bin directory

Signed-off-by: gonzalochief gonzalochief@gmail.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

No branches or pull requests

1 participant