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

Installing a version when one is already installed failed #8

Closed
chriscool opened this issue Dec 12, 2015 · 2 comments · Fixed by #10
Closed

Installing a version when one is already installed failed #8

chriscool opened this issue Dec 12, 2015 · 2 comments · Fixed by #10

Comments

@chriscool
Copy link
Contributor

This is also described in issue #7:

root@3416e74c98e9:/mnt# sharness/bin/ipfs-update install v0.3.8
installing ipfs version v0.3.8
binary downloaded, verifying...
success!
installing new binary to /usr/local/bin/ipfs

installation complete.

root@3416e74c98e9:/mnt# echo $?
0

root@3416e74c98e9:/mnt# sharness/bin/ipfs-update install v0.3.8
installing ipfs version v0.3.8
binary downloaded, verifying...
success!
stashing old binary
installing new binary to /usr/local/bin/ipfs/ipfs
ERROR: Install failed:  error moving new binary into place: open /usr/local/bin/ipfs/ipfs: no such file or directory
install failed, reverting changes...
Error reverting
failed to replace binary after install fail:  open /usr/local/bin/ipfs/ipfs: no such file or directory
sorry :(
your old ipfs binary should still be located at:  /root/.ipfs/old-bin/ipfs-v0.3.8
try: `mv "/root/.ipfs/old-bin/ipfs-v0.3.8" "/usr/local/bin/ipfs/ipfs"`
ERROR: error moving new binary into place: open /usr/local/bin/ipfs/ipfs: no such file or directory 

root@3416e74c98e9:/mnt# echo $?
1

It also fails in the same way when installing v0.3.8 after v0.3.9.

@whyrusleeping
Copy link
Member

interesting. is this in a test?

@chriscool
Copy link
Contributor Author

Yes, I was trying to write more install tests, see PR #9.

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 a pull request may close this issue.

2 participants