Skip to content

Windows: pixi install fails to rename package temp directory in default cache (Access is denied, os error 5) #5660

@kg1980

Description

@kg1980

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

pixi install

Error: x failed to fetch scikit-learn-1.7.2-py312h91ac024_0.conda
|-> failed to interact with the package cache layer.
|-> package cache layer error: failed to rename temp directory 'C:\Dev\pixi-cache\pkgs.scikit-learn-1.7.2-
| py312h91ac024_0in0Z0R' to 'C:\Dev\pixi-cache\pkgs\scikit-learn-1.7.2-py312h91ac024_0': failed to rename file
| from C:\Dev\pixi-cache\pkgs.scikit-learn-1.7.2-py312h91ac024_0in0Z0R to C:\Dev\pixi-cache\pkgs\scikit-learn-
| 1.7.2-py312h91ac024_0: Access is denied. (os error 5)
`-> failed to rename temp directory 'C:\Dev\pixi-cache\pkgs.scikit-learn-1.7.2-py312h91ac024_0in0Z0R' to
'C:\Dev\pixi-cache\pkgs\scikit-learn-1.7.2-py312h91ac024_0': failed to rename file from C:\Dev\pixi-
cache\pkgs.scikit-learn-1.7.2-py312h91ac024_0in0Z0R to C:\Dev\pixi-cache\pkgs\scikit-learn-1.7.2-
py312h91ac024_0: Access is denied. (os error 5)

Issue description

On Windows, pixi install failed while fetching a package due to a cache-layer rename failure.
The failure occurs when Pixi tries to rename a temporary package directory to the final package-cache directory, and Windows returns:
Access is denied. (os error 5)

Clearing the cache solved the issue, so this seems like a Pixi cache-handling robustness bug rather than a package-content issue.

This also happens in the default cache directory.

Expected behavior

pixi install

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions