ava-labs / avalanche-cli

Other
104 stars 67 forks source link

[Bug]: Text file busy when updating #2180

Open twilwa opened 1 month ago

twilwa commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

anon@pop-os:~/bin$ avalanche update We found a new version of Avalanche-CLI v1.7.4 upstream. You are running v1.7.1 ✔ Yes Starting update... Downloading install script... Installing new release... ava-labs/avalanche-cli info checking GitHub for latest tag ava-labs/avalanche-cli info found version: 1.7.4 for linux/amd64 cp: cannot create regular file '/home/anon/bin/avalanche': Text file busy installation failed: exit status 1 Error: exit status 1

To Reproduce Steps to reproduce the behavior.

install cli from repo + build from source, then attempt update/follow update prompt

Expected behavior A clear and concise description of what you expected to happen.

update normally

Screenshots If applicable, add screenshots to help explain your problem. see telegram

Logs If applicable, please include the relevant logs that indicate a problem. n.a

Operating System Which OS you used to reveal the bug.

Linux pop-os 6.10.4-061004-generic #202408111201 SMP PREEMPT_DYNAMIC Sun Aug 11 12:15:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Additional context Add any other context about the problem here.

this error can be resolved by re-running the install script, works normally afterward

arturrez commented 1 month ago

is it possible that avalanche was running in another ssh/tmux session, i.e. in another terminal at this time? If so it would explain it