Skip to content

Pixi failing to index channel after publishing to channel #6362

Description

@kaiserls

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`.

Activity

  1. added
    bug
    on Jun 15, 2026
  2. wolfv commented on Jun 15, 2026

    @wolfv
    Member

    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 ...

  3. hunger commented on Jun 15, 2026

    @hunger
    Contributor

    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?

  4. kaiserls commented on Jun 15, 2026

    @kaiserls
    Author

    @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

  5. amirhosseindavoody commented on Jun 25, 2026

    @amirhosseindavoody

    The analysis looks aligned with my experience in #6126 . Over there, I had the publish channel also as a source channel in the manifest.

  6. kaiserls commented on Jul 6, 2026

    @kaiserls
    Author

    @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:

    PS D:\Repos\datastructures_tools> pixi publish --to-channel file://mypage.org/xxx/channel --clean
    ...
    Publishing 1 package(s) to channel file://mypage.org/channel
    Error:   x Failed to index channel: PermissionDenied (permanent) at write, context: { service: fs, path: noarch/repodata.json, written: 13012 } => permission denied, source: Zugriff  | verweigert (os error 5)
    PS D:\Repos\datastructures_tools> rattler-index fs [\\mypage.org\xxx\channel](file://mypage.org/xxx/channel)
    [00:00:00] ########################################       1/1       Finished noarch
    Finished indexing channel.                                                                                                                                                                                                                              PS D:\Repos\datastructures_tools>  

    pixi info output:

    PS  D:\Repos\datastructures_tools> pixi info
    System
    ------------
    Pixi version: 0.72.0
    TLS backend: rustls
    Platform: win-64
    Virtual packages:
    __win=10.0.19044=0                                                                                                                                                                 : __archspec=1=x86_64_v3
    ...
    

    Other files (e.g. script files, source files, etc.):

  7. hunger commented on Jul 6, 2026

    @hunger
    Contributor

    Reopening as requested by the @kaiserls .

  8. reopened this on Jul 6, 2026
  9. added a commit that references this issue on Jul 10, 2026
    ab3d388
  10. hunger commented on Jul 10, 2026

    @hunger
    Contributor

    @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 :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions