pixi: Flaky io error on Windows
Checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.
Issue description
First off, I’m really enjoying the experience of working with pixi. I’m evaluating moving my VegaFusion project to it.
While experimenting, I’ve see a flaky issue on windows in GitHub actions. Here’s an example of the error:
Run pixi run test-py-jupyter-headless
pixi run test-py-jupyter-headless
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
× an io error occurred
├─▶ failed to unpack `\\?\C:
│ \Users\runneradmin\AppData\Local\rattler\cache\pkgs\nodejs-[2](https://github.com/hex-inc/vegafusion/actions/runs/5911727817/job/16034477872#step:6:2)0.5.1-
│ h57928b[3](https://github.com/hex-inc/vegafusion/actions/runs/5911727817/job/16034477872#step:6:3)_0\node.exe`
├─▶ failed to unpack `node.exe` into `\\?\C:
│ \Users\runneradmin\AppData\Local\rattler\cache\pkgs\nodejs-20.[5](https://github.com/hex-inc/vegafusion/actions/runs/5911727817/job/16034477872#step:6:6).1-
│ h5[7](https://github.com/hex-inc/vegafusion/actions/runs/5911727817/job/16034477872#step:6:8)92[8](https://github.com/hex-inc/vegafusion/actions/runs/5911727817/job/16034477872#step:6:9)b3_0\node.exe`
├─▶ request or response body error: error reading a body from connection:
│ end of file before message length reached
├─▶ error reading a body from connection: end of file before message length
│ reached
╰─▶ end of file before message length reached
It doesn’t happen every time (maybe 20% of the time?), and the library it fails on is different each time (it’s nodejs above).
I’m wondering if there’s something that just needs some retry logic.
Thanks!
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 15 (15 by maintainers)
Thanks for the quick fix!
Terrific! We’ll merge this tomorrow then and release pixi asap. Thanks for testing!
The installer doesnt so much. If you download the pixi binary from the ci pipeline here: https://github.com/prefix-dev/pixi/actions/runs/5928170658 you should be able to just invoke it. You can either call it directly or you may want to add it to the Path.
Sure thing @wolfv, and glad to help! I think you’re building something really important here.
I finally caught the error with a full
-vvv
trace. I put it in a gist since it was too large to include in this comment: https://gist.github.com/jonmmease/ed3b57483e497c989c2515d145d7e86cHopefully this is useful!
Thanks so much @jonmmease for testing and the kind words! This is a high priority issue for us and hopefully we can fix it on Monday 😃