-
Checklist
What You Are Seeing?Packages don't install correctly, i get this error: "The process cannot access the file 'C:\ProgramData\chocolatey\lib\jpegoptim.chocolateyPending' because it is being used by another process", i monitored the file with process monitor and i see this: choco.exe | 4968 | CreateFile | C:\ProgramData\chocolatey\lib\jpegoptim.chocolateyPending | SHARING VIOLATION | Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a I don't have any active antivirus and it's seems that no other process is locking it. I tried the solution proposed in #1159 with no success. What is Expected?Packages install without errors. How Did You Get This To Happen?I ran this command: choco install jpegoptim. The error happens also for other packages i tried to install. System Details
Installed PackagesN/A Output Loghttps://gist.github.com/felistime/643e663cb2f3456eec54ba1634bd330c Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Can you help me understand why the issue has been raised? If another process is holding that file open, stopping Chocolatey CLI from opening it, then that would mean it's not a Chocolatey CLI issue, but whatever else is running on your system? I see you say this happens with other packages. Does it happen with all packages, random packages or specific packages (trying to understand if there is a pattern)? Have you reproduced this on another system? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
If the installation works as expected on another system, that would suggest this is an environmental issue. If you can determine that Chocolatey is at fault, then we could look at this.
An issue is to report a bug, or request an enhancement. If you need information or help determining the issue, then a discussion is better for questions. I will convert this to a Discussion, but I would recommend you use our Community Discord. |
Beta Was this translation helpful? Give feedback.
-
Experiencing same issue here, always hit this issue when installing packages. |
Beta Was this translation helpful? Give feedback.
If the installation works as expected on another system, that would suggest this is an environmental issue. If you can determine that Chocolatey is at fault, then we could look at this.
An issue is to report a bug, or request an enhancement. If you need information or help determining the issue, then a discussion is better for questions.
I will convert this to a Discussion, but I would recommend you use our Community Discord.