Error: File exists (os error 17)
I started getting this error today:
$ bob update --all
Jun 01 21:26:15.463 INFO Fetching latest version
Jun 01 21:26:15.927 INFO Stable is already updated!
Jun 01 21:26:16.016 INFO Looking for nightly updates
Jun 01 21:26:16.016 INFO Creating rollback: nightly-a18652e
Jun 01 21:26:16.016 ERROR Error: File exists (os error 17)
I started getting this error today:
$ bob update --all Jun 01 21:26:15.463 INFO Fetching latest version Jun 01 21:26:15.927 INFO Stable is already updated! Jun 01 21:26:16.016 INFO Looking for nightly updates Jun 01 21:26:16.016 INFO Creating rollback: nightly-a18652e Jun 01 21:26:16.016 ERROR Error: File exists (os error 17)
Is this still happening?
No, but it can happen if a download fails.
Let me know if you want repro steps
Let me know if you want repro steps
Would prefer yes
I encountered this issue today, and it makes sense that it is related to a failed download. In my case, I had the nightly version and two rollbacks:
bob list
┌────────────────────┬─────────────┐
│ Version │ Status │
├────────────────────┼─────────────┤
│ nightly-aa6b9c6 │ Installed │
│ nightly │ Used │
│ nightly-e702030 │ Installed │
└────────────────────┴─────────────┘
For some reason, probably due to a failed download, the nightly version was the same as the rollback nightly-e702030 :
NVIM v0.11.0-dev-322+ge7020306a
Build type: RelWithDebInfo
LuaJIT 2.1.1716656478
Run "nvim -V1 -v" for more info
When updating, bob is likely trying to check the current version and then create the corresponding rollback version. Since both versions are the same, it results in the error "File exists".
I fixed it by uninstalling the nightly-e702030 version with bob uninstall nightly-e702030. Then I updated it as usual, and bob was able to create the rollback version I had just uninstalled, as you can see:
bob list
┌────────────────────┬─────────────┐
│ Version │ Status │
├────────────────────┼─────────────┤
│ nightly-aa6b9c6 │ Installed │
│ nightly │ Used │
│ nightly-e702030 │ Installed │
└────────────────────┴─────────────┘
As expected, the nightly and rollback versions are no longer the same:
NVIM v0.11.0-dev-323+g8f5e90811
Build type: RelWithDebInfo
LuaJIT 2.1.1716656478
Run "nvim -V1 -v" for more info
Do you guys still get this error on newer versions? and if so what are ways I could reproduce this?
Closing due to inactivity, please do reopen this issue if this issue persists.
Hi, I am using the bob version 4.0.2
bob use nightly
Jan 30 21:29:46.240 INFO Make sure to have /home/fildo7525/.local/share/bob/nvim-bin in PATH
Jan 30 21:29:46.597 INFO Looking for nightly updates
Jan 30 21:29:46.653 INFO Creating rollback: nightly-2470db0
...
| phanium fix(log): log unset $TMPDIR at "debug" level #32137
| georgev93 feat(extmarks): virtual text can be right-aligned, truncated #31921
|
| Problem: Right aligned virtual text can cover up buffer text if virtual
| text is too long
|
| Solution: An additional option for `virt_text_pos` called
| `eol_right_align` has been added to truncate virtual text if it would
| have otherwise covered up buffer text. This ensures the virtual text
| extends no further left than EOL.
| Luuk van Baal fix(lua): pop retval for fast context LuaRef
|
| Problem: nlua_call_ref_ctx() does not pop the return value in fast
| context that did not error.
| Solution: Fall through to end; calling nlua_call_pop_retval().
| Luuk van Baal fix(messages): avoid empty msg_showmode with 'noshowmode'
| Christian Clason ci(tests): remove build-types jobs
|
| Problem: Some CI jobs are redundant: `RelWithDebInfo` is already tested
| on Linux-Arm64; `MinSizeRel` and Ninja Multi Config are not sufficiently
| relevant in practice to spend CI cycles on.
|
| Solution: Remove `build-types` job.
| Christian Clason ci(tests): add arm64 runner
|
| Problem: Linux `aarch64`/`arm64` builds are not tested.
|
| Solution: Add `ubuntu-arm` runners to test matrix (using
| `RelWithDebInfo` build).
Jan 30 21:29:47.596 ERROR Error: Please provide an existing neovim version, Not Found
bob list
┌────────────────────┬─────────────┐
│ Version │ Status │
├────────────────────┼─────────────┤
│ nightly-a9c12d4 │ Installed │
│ nightly │ Used │
│ nightly-2470db0 │ Installed │
└────────────────────┴─────────────┘
nvim --version
NVIM v0.11.0-dev-1627+g2470db02c5
Build type: RelWithDebInfo
LuaJIT 2.1.1736781742
Run "nvim -V1 -v" for more info
This is a new issue look at #253
happening to me as well as today
so, for anyone stumbling on this one
this is caused by
#284 and #281
Once this happened, just remove this version (bob rm nightly-{version}) and update your bob before installing the nightly