chocolatey/boxstarter

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

Opened this issue · 4 comments

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

pauby commented

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.

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

pauby commented

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.