Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boxstarter.bat across a UNC getting .chocolateyPending lock on some choco packages #433

Open
hopkinsp opened this issue May 25, 2020 · 4 comments
Labels
0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue Blocked - External The issue or pull request is not fixable without a change in a upstream/external library Priority_LOW Issues that are low priority, and will most likely only be fixed by the community

Comments

@hopkinsp
Copy link

hopkinsp commented May 25, 2020

What You Are Seeing?

boxstarter.bat across a UNC getting .chocolateyPending lock on some choco packages
These 3 example packages have trouble installing
nuget.commandline
sysinternals
7zip.portable

Those packages install fine with a cinst command, just not unc:\myserver\boxstarter.bat

What Is Expected?

The same boxstarter setup works fine from local drive using boxstarter.bat with the same packages. This worked OK on my previous version which was 2.4.205

How Did You Get This To Happen? (Steps to Reproduce)

  1. Install boxstarter via setup.bat in boxstarter.2.12.0.zip
  2. Copy installed boxstarter.bat from C:\ProgramData\Boxstarter to SMB server \myserver\
  3. Try and install a simple package ef \myserver\tools\boxstarter\boxstarter.bat sysinternals

Output Log

https://gist.github.com/hopkinsp/ff034ec20a5b72494079e37831994458

@hopkinsp hopkinsp added 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue Bug Issues where something has happened which was not expected or intended labels May 25, 2020
@pauby
Copy link
Member

pauby commented May 26, 2020

This is an issue with Chocolatey itself and not Boxstarter. The gist confirms this:

[2020-05-26T08:56:12.4603685+10:00:::PID 1664] Boxstarter: Error from Chocolatey: 

ErrorRecord                 : Exception calling "Run" with "1" argument(s): 
                              "The process cannot access the file 'C:\ProgramDa
                              ta\chocolatey\lib\sysinternals\.chocolateyPending
                              ' because it is being used by another process."

If you have anything that confirms Boxstarter is causing this please let me know.

@pauby pauby added Chocolatey Issue and removed 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue Bug Issues where something has happened which was not expected or intended labels May 26, 2020
@hopkinsp
Copy link
Author

If I install via chocolatey its fine, this only happens when its wrapped in boxstarter,bat

@pauby pauby added 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue Priority_LOW Issues that are low priority, and will most likely only be fixed by the community labels May 27, 2020
@pauby
Copy link
Member

pauby commented Jun 5, 2020

As Boxstarter simply calls Chocolatey I still believe it's a Chocolatey issue, as shown by the logs.

I will leave this issue open for a while to allow for others to comment.

@hopkinsp
Copy link
Author

hopkinsp commented Jun 5, 2020 via email

@pauby pauby added Blocked - External The issue or pull request is not fixable without a change in a upstream/external library and removed Chocolatey Issue labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue Blocked - External The issue or pull request is not fixable without a change in a upstream/external library Priority_LOW Issues that are low priority, and will most likely only be fixed by the community
Projects
None yet
Development

No branches or pull requests

2 participants