jx-docs icon indicating copy to clipboard operation
jx-docs copied to clipboard

CLI - Upgrade issue when running command on non root ser

Open gonzalochief opened this issue 2 years ago • 0 comments

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 [email protected]

gonzalochief avatar Aug 30 '22 16:08 gonzalochief