Skip to content

.chocolateyPending it is being used by another process #3089

@felistime

Description

@felistime

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.

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.

ChocoError

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

  • Operating System: 10.0.19045.0
  • Windows PowerShell version: 5.1.19041.2673
  • Chocolatey CLI Version: 1.3.1
  • Chocolatey Licensed Extension version: -
  • Chocolatey License type: -
  • Terminal/Emulator: Windows PowerShell

Installed Packages

N/A

Output Log

https://gist.github.com/felistime/643e663cb2f3456eec54ba1634bd330c

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.BugIssues where something has happened which was not expected or intended.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions