unable to find package

Jun 5, 2014 at 10:18 PM
I have a custom chocolatey package housed on a network share. I can call it from chocolatey locally on the system with cinst pve_web_112, but when I try to call it from within a boxstarter package being run remotely, it fails with "unable to find package pve_web_112. I'll enclose the pertinent bits of the chocolateyinstall.log, though I didn't get much from it.

20140605-17:16:08 [CHOCO] ################################################################################
20140605-17:16:08 [CHOCO] # Going Chocolatey on 2014-06-05 17:16:08Z #
20140605-17:16:08 [CHOCO] ################################################################################
20140605-17:16:08 [DEBUG] Arguments: $command = 'Install'|$packageNames='pve_web_112'|$source='C:\Users\a-jbenner.PLANVIEW\AppData\Local\Temp\Boxstarter\BuildPackages;http://chocolatey.org/api/v2;http://www.myget.org/F/boxstarter/api/v2'|$version=''|$allVersions=False|$InstallArguments=''|$overrideArguments=False|$force=False|$prerelease=False|$localonly=False|$verbosity=False|$debug=False|$name=''|$ignoreDependencies=False|$forceX86=False|$packageParameters=''|PowerShellVersion=1.0.0.0
20140605-17:16:08 [DEBUG] Invoke-ChocolateyFunction is calling: $ChocoFunction='Chocolatey-Install'|@paramlist='@paramlist'
20140605-17:16:08 [DEBUG] Running 'Chocolatey-Install' for 'pve_web_112' with source: 'C:\Users\a-jbenner.PLANVIEW\AppData\Local\Temp\Boxstarter\BuildPackages;http://chocolatey.org/api/v2;http://www.myget.org/F/boxstarter/api/v2', version: '', installerArguments:''
20140605-17:16:08 [DEBUG] Running 'Chocolatey-NuGet' for pve_web_112 with source:'C:\Users\a-jbenner.PLANVIEW\AppData\Local\Temp\Boxstarter\BuildPackages;http://chocolatey.org/api/v2;http://www.myget.org/F/boxstarter/api/v2'. Force? False
20140605-17:16:08 [CHOCO] Chocolatey (v0.9.8.23) is installing 'pve_web_112' and dependencies. By installing you accept the license for 'pve_web_112' and each dependency you are installing.
20140605-17:16:08 [DEBUG] Installing packages to "C:\Chocolatey\lib".
20140605-17:16:08 [DEBUG] Running 'Run-NuGet' for pve_web_112 with source: 'C:\Users\a-jbenner.PLANVIEW\AppData\Local\Temp\Boxstarter\BuildPackages;http://chocolatey.org/api/v2;http://www.myget.org/F/boxstarter/api/v2', version:''
20140605-17:16:08 [DEBUG] ___ NuGet ____
20140605-17:16:08 [DEBUG] Using '-Source "C:\Users\a-jbenner.PLANVIEW\AppData\Local\Temp\Boxstarter\BuildPackages;http://chocolatey.org/api/v2;http://www.myget.org/F/boxstarter/api/v2"' as the source arguments
20140605-17:16:08 [DEBUG] Calling 'C:\Chocolatey\chocolateyinstall\nuget.exe' install pve_web_112 -Outputdirectory "C:\Chocolatey\lib" -Source "C:\Users\a-jbenner.PLANVIEW\AppData\Local\Temp\Boxstarter\BuildPackages;http://chocolatey.org/api/v2;http://www.myget.org/F/boxstarter/api/v2" -NonInteractive -NoCache
20140605-17:16:10 [DEBUG]
20140605-17:16:10 [DEBUG] Caught 'Unable to find package 'pve_web_112'.
'
20140605-17:16:10 [CHOCO] Unable to find package 'pve_web_112'.

20140605-17:16:10 [CHOCO] Command 'Install' failed (sometimes this indicates a partial failure). Additional info/packages: pve_web_112
20140605-17:16:10 [DEBUG] Exiting with non-zero exit code.
20140605-17:16:10 [ERROR] Chocolatey reported an unsuccessful exit code of 1
20140605-17:16:10 [CHOCO] [SGPVMWGPVE01]++ Boxstarter finished Calling Chocolatey to install pve_web_112. This may take several minutes to complete... 00:00:02.7265054
20140605-17:16:11 [CHOCO] [SGPVMWGPVE01]++ Boxstarter starting Calling Chocolatey to install pve_admin_112. This may take several minutes to complete...
20140605-17:16:11 [DEBUG] Running 'Append-InstallLog' with chocoInstallLog:''
Jun 5, 2014 at 10:19 PM
Can anyone shed some light on why this is happening?
Coordinator
Jun 6, 2014 at 5:36 AM
When you install a Boxstarter package remotely, boxstarter will scan for packages that are in the boxstarter package repository on the remote machine. Now, Boxstarter will copy all packages from the local boxstarter repository to the remote machines repo so usually this means that boxstarter "effevctively" scans packages in the local machine's repo.

You can get better logging details from %localappdata%\boxstarter\boxstarter.log. There should be a line beginning with:

LocalRepo is at

and that tell you where boxstartr is looking for packages on disk.
Jun 6, 2014 at 3:37 PM
I must be doing something very wrong then. “LocalRepo is at C:\Users\a-jbenner.PLANVIEW\AppData\Local\Temp\Boxstarter\BuildPackages” I am trying to install a chocolatey package that is not on the local machine. I sent the chocolatey log because it seems like chocolatey is getting the install command and the name of the package, which should be enough to get the install done. I’m pretty confused.
Jun 6, 2014 at 4:53 PM
The actual packages exist on a network share which chocolatey is configured to look in.
Coordinator
Jun 6, 2014 at 5:42 PM
Ahhh. ok. This sounds like a bug. when you do a remote install, boxstarter does not copy your local config (which points to the share) to the remote machine. A "workaround" would be to create another "wrapper" package that does a cinst on the original package and uses the -source param to point to the share. I'll create an issue for this.
Jun 6, 2014 at 6:04 PM
I put the packages in the local repository, but they make calls to installers on remote shares that are now failing. I am missing something simple here and will keep looking through the docs to figure out what it is. If anyone wants to shine a light for me in the meantime, I would definitely appreciate it. I know that there are no permissions issues at play, because the share is open to everyone and I am passing creds that should get to bunches of stuff.
Jun 6, 2014 at 8:51 PM
Invoke-FromTask seems to be the magic beans that I was needing. Not sure why.