Repository navigation
Labels
bugSomething isn't working
Description
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.
Reproducible example
Commands I ran and their output:
PS D:\Repos\datastructures_tools> pixi publish --to \\mypage.org\xxx\channel --clean
...
Publishing 1 package(s) to channel file://mypage.org/channel
Error: x Failed to index channel: Unexpected (temporary) at write, context: { service: fs, path: noarch/repodata.json } => uncategorized error, source: Der Vorgang ist bei einer Datei mit einem geöffneten Bereich, der einem Benutzer | zugeordnet ist, nicht anwendbar. (os error 1224)
PS D:\Repos\datastructures_tools> rattler-index fs \\mypage.org\xxx\channel
[00:00:00] ######################################## 1/1 Finished noarch
Finished indexing channel. PS D:\Repos\datastructures_tools> pixi.toml/pyproject.toml file that reproduces my issue:
pixi info output:
PS D:\Repos\datastructures_tools> pixi info System ------------ Pixi version: 0.70.2
TLS backend: rustls
Platform: win-64
Virtual packages: __win=10.0.19044=0
: __archspec=1=x86_64_v3
Cache dir: C:\Users\Y19REKOCOMMO\AppData\Local\rattler\cache
Auth storage: C:\Users\Y19REKOCOMMO\.rattler\credentials.json
Config locations: C:\Users\Y19REKOCOMMO\.pixi\config.toml
Global
------------
Bin dir: C:\Users\yyy\.pixi\bin
Environment dir: C:\Users\yyy\.pixi\envs
Manifest dir: C:\Users\yyy\.pixi\manifests\pixi-global.toml
Workspace
------------
Name: datastructures_tools
Version: 2.1.3.dev11+g99f5ef670.d20260520
Manifest file: D:\Repos\datastructures_tools\pixi.toml
Last updated: 15-06-2026 13:22:46
Other files (e.g. script files, source files, etc.):
Issue description
The command pixi publish --to \\mypage.org\xxx\channel --clean fails with the error
Failed to index channel: Unexpected (temporary) at write, context: { service: fs, path: noarch/repodata.json } => uncategorized error, source: Der Vorgang ist bei einer Datei mit einem geöffneten Bereich, der einem Benutzer | zugeordnet ist, nicht anwendbar. (os error 1224)
Expected behavior
The command pixi publish --to \\mypage.org\xxx\channel --clean fails with the errorsucceeds, just like the commandrattler-index fs \mypage.org\xxx\channel`.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
wolfv commentedon Jun 15, 2026
Thanks @kaiserls - is the filesystem that you want to publish to in any way special? E.g. a NFS or similar network shared drive?
Maybe we need to make sure that we close the file before trying to modify it ...
hunger commentedon Jun 15, 2026
Do you have a virus scanner/endpoint security tool running on the machine hosting \mypage.org\xxx\channel and/or locally? I had this kind of problem before on windows when trying to do something with a file that was just in the process of getting scanned.
Just wait a few seconds and retry: Does it work then?
kaiserls commentedon Jun 15, 2026
@wolfv I'm impressed by the quick analysis! Thank you for the fast resolution!
I tested it and can confirm that the issue only occurs if the channel published to also appears as source channel
amirhosseindavoody commentedon Jun 25, 2026
The analysis looks aligned with my experience in #6126 . Over there, I had the publish channel also as a source channel in the manifest.
kaiserls commentedon Jul 6, 2026
@Hofer-Julian Could you please reopen the issue? os error 1224 was solved, but now I get os error 5.
Commands I ran and their output:
pixi infooutput:Other files (e.g. script files, source files, etc.):
hunger commentedon Jul 6, 2026
Reopening as requested by the @kaiserls .
fix: release workspace gateway before indexing on publish
hunger commentedon Jul 10, 2026
@kaiserls Could you maybe test my latest PR? It should make Wolf's fix actually take, but I have no windows machines to test this with, so it might not :-/