BoxStarter fails on Windows 8.1 azure vm

Jun 17, 2014 at 5:09 PM
Edited Jun 17, 2014 at 5:35 PM
I'm trying out BoxStarter for the first time.

I start with the new (launched today 2014-06-17) windows 8.1 template VM on azure. Then I launch the weblauncher: http://boxstarter.org/package/url?https://gist.githubusercontent.com/steenhulthin/8e117c887a8d8c33d107/raw/eb792ca4672f9c3287b635dfcf4d4570acba8cc4/miniboxstarter from internet explorer. It appears to start just fine, but after a while I get the following error:
_Boxstarter: Installing package https://gist.githubusercontent.com/steenhulthin/8
e117c887a8d8c33d107/raw/eb792ca4672f9c3287b635dfcf4d4570acba8cc4/miniboxstarter
Boxstarter Version 2.4.15
(c) 2014 Matt Wrock. http://boxstarter.org

Please type CTRL+C or close this window to exit Boxstarter if you do not want to
 risk a reboot during this Boxstarter install.

Boxstarter may need to reboot your system.
Please provide your password so that Boxstarter may automatically log you on.
Your password will be securely stored and encrypted.
Autologon Password: *********
Boxstarter: Successfully authenticated password.
Boxstarter: Disabling Automatic Updates from Windows Update
Boxstarter: Chocolatey not installed. Downloading and installing...
Calling 'C:\Chocolatey\chocolateyinstall\nuget.exe pack temp_BoxstarterPackage\t
emp_BoxstarterPackage.nuspec -NoPackageAnalysis'.
Attempting to build package from 'temp_BoxstarterPackage.nuspec'.
Successfully created package 'C:\Users\steen\AppData\Local\Apps\2.0\OR804RT6.Z1G
\QQCC52G2.V6H\boxs..tion_9b0d113b5eadff54_0002.0004_d3164dcc60997d3b\BuildPackag
es\temp_BoxstarterPackage.1.0.0.nupkg'.

Boxstarter: Created a temporary package temp_BoxstarterPackage from https://gist
.githubusercontent.com/steenhulthin/8e117c887a8d8c33d107/raw/eb792ca4672f9c3287b
635dfcf4d4570acba8cc4/miniboxstarter in C:\Users\steen\AppData\Local\Apps\2.0\OR
804RT6.Z1G\QQCC52G2.V6H\boxs..tion_9b0d113b5eadff54_0002.0004_d3164dcc60997d3b\B
uildPackages
+ Boxstarter starting Calling Chocolatey to install temp_BoxstarterPackage. This
 may take several minutes to complete...
Chocolatey (v0.9.8.23) is installing 'temp_BoxstarterPackage' and dependencies.
By installing you accept the license for 'temp_BoxstarterPackage' and each depen
dency you are installing.
______ temp_BoxstarterPackage v1.0.0 ______
Write-Error : Package 'temp_BoxstarterPackage v1.0.0' did not install successfu
lly: Missing an argument for parameter 'Lock'. Specify a parameter of type 'Sys
tem.Object' and try again.
At C:\Chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:17
+                 Write-Error "Package `'$installedPackageName v$installedPacka
geV ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep
   tion
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
   n,Write-Error

Finished installing 'temp_BoxstarterPackage' and dependencies - if errors not sh
own in console, none detected. Check log for errors if unsure.
+ Boxstarter finished Calling Chocolatey to install temp_BoxstarterPackage. This
 may take several minutes to complete... 00:00:07.6045013
True
Boxstarter: Enabling Automatic Updates from Windows Update
Type ENTER to exit:
Any idea what I'm doing wrong here? Or how I can debug the issue?

Update

Ok, it seems that I have a problem in my script. https://gist.githubusercontent.com/steenhulthin/8e117c887a8d8c33d107/raw/eb792ca4672f9c3287b635dfcf4d4570acba8cc4/miniboxstarter I got this one to work: https://gist.githubusercontent.com/steenhulthin/7e571331e375e1a19aa7/raw/eece0c9ccbb43590b7bf40a2bd6408444eb5edc8/SuperSimpleBoxstarter
Coordinator
Jun 17, 2014 at 5:52 PM
yeah there actually looks like there is a bug here rearding the lock parameter of Set-Taskbar. if you passed a dummy string to the -Lock param it would work. I'll create an issue to track this. Thanks!
Jun 17, 2014 at 7:43 PM
Edited Jun 19, 2014 at 7:10 AM
OK, thanks.

I changed

Set-TaskbarOptions -Size Large -Lock -Dock Bottom

to

Set-TaskbarOptions -Size Large -Lock yay -Dock Bottom

and now it worked! Partly... I ran into a new problem.

The PowerShell script looks for the "explorer" process, but can't find it. Since the explorer process actually crashed at some point this might due to azure windows 8 instability. BoxStarter does finish, but off course I had to restart the explorer process manually. Any idea if this is a BoxStarter problem? How can I debug the problem?
C:\Windows\system32>Call PowerShell -NoProfile -ExecutionPolicy bypass -command
"Import-Module 'C:\Users\steen\AppData\Local\Apps\2.0\OR804RT6.Z1G\QQCC52G2.V6H\
boxs..tion_9b0d113b5eadff54_0002.0004_d3164dcc60997d3b\Boxstarter.Bootstrapper\b
oxstarter.bootstrapper.psd1';Invoke-Boxstarter -RebootOk -NoPassword:$False"
Boxstarter Version 2.4.15
(c) 2014 Matt Wrock. http://boxstarter.org

Boxstarter: Disabling Automatic Updates from Windows Update
Calling 'C:\Chocolatey\chocolateyinstall\nuget.exe pack temp_BoxstarterPackage\t
emp_BoxstarterPackage.nuspec -NoPackageAnalysis'.
Attempting to build package from 'temp_BoxstarterPackage.nuspec'.
Successfully created package 'C:\Users\steen\AppData\Local\Apps\2.0\OR804RT6.Z1G
\QQCC52G2.V6H\boxs..tion_9b0d113b5eadff54_0002.0004_d3164dcc60997d3b\BuildPackag
es\temp_BoxstarterPackage.1.0.0.nupkg'.

Boxstarter: Created a temporary package temp_BoxstarterPackage from https://gist
.githubusercontent.com/steenhulthin/8e117c887a8d8c33d107/raw/26eb9a579e45ffa6d53
b033ac7dd7eda828ceeb1/miniboxstarter in C:\Users\steen\AppData\Local\Apps\2.0\OR
804RT6.Z1G\QQCC52G2.V6H\boxs..tion_9b0d113b5eadff54_0002.0004_d3164dcc60997d3b\B
uildPackages
++ Boxstarter starting Calling Chocolatey to install temp_BoxstarterPackage. Thi
s may take several minutes to complete...
Chocolatey (v0.9.8.23) is installing 'temp_BoxstarterPackage' and dependencies.
By installing you accept the license for 'temp_BoxstarterPackage' and each depen
dency you are installing.
______ temp_BoxstarterPackage v1.0.0 ______
Get-Process : Cannot find a process with the name "explorer". Verify the proces
s name and call the cmdlet again.
At C:\Users\steen\AppData\Local\Apps\2.0\OR804RT6.Z1G\QQCC52G2.V6H\boxs..tion_9
b0d113b5eadff54_0002.0004_d3164dcc60997d3b\Boxstarter.WinConfig\Restart-Explore
r.ps1:6 char:9
+         Get-Process -Name explorer -IncludeUserName | ? { $_.UserName -eq "$(
$us ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (explorer:String) [Get-Process],
    ProcessCommandException
    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.
   Commands.GetProcessCommand

+++ Boxstarter starting Calling Chocolatey to install GoogleChrome. This may tak
e several minutes to complete...
Chocolatey (v0.9.8.23) is installing 'GoogleChrome' and dependencies. By install
ing you accept the license for 'GoogleChrome' and each dependency you are instal
ling.
'GoogleChrome 35.0.1916.114' already installed.
If you want to reinstall the current version of an existing package, please use
the -force command.

Finished installing 'GoogleChrome' and dependencies - if errors not shown in con
sole, none detected. Check log for errors if unsure.
+++ Boxstarter finished Calling Chocolatey to install GoogleChrome. This may tak
e several minutes to complete... 00:00:05.3750794
+++ Boxstarter starting Calling Chocolatey to install notepadplusplus.install. T
his may take several minutes to complete...
Chocolatey (v0.9.8.23) is installing 'notepadplusplus.install' and dependencies.
 By installing you accept the license for 'notepadplusplus.install' and each dep
endency you are installing.
'notepadplusplus.install 6.6.6' already installed.
If you want to reinstall the current version of an existing package, please use
the -force command.

Finished installing 'notepadplusplus.install' and dependencies - if errors not s
hown in console, none detected. Check log for errors if unsure.
+++ Boxstarter finished Calling Chocolatey to install notepadplusplus.install. T
his may take several minutes to complete... 00:00:05.5575929
+++ Boxstarter starting Calling Chocolatey to install 7zip.install. This may tak
e several minutes to complete...
Chocolatey (v0.9.8.23) is installing '7zip.install' and dependencies. By install
ing you accept the license for '7zip.install' and each dependency you are instal
ling.
'7zip.install 9.22.01.20130618' already installed.
If you want to reinstall the current version of an existing package, please use
the -force command.

Finished installing '7zip.install' and dependencies - if errors not shown in con
sole, none detected. Check log for errors if unsure.
+++ Boxstarter finished Calling Chocolatey to install 7zip.install. This may tak
e several minutes to complete... 00:00:05.0031255
Finished installing 'temp_BoxstarterPackage' and dependencies - if errors not sh
own in console, none detected. Check log for errors if unsure.
++ Boxstarter finished Calling Chocolatey to install temp_BoxstarterPackage. Thi
s may take several minutes to complete... 00:00:26.6662515
True
Boxstarter: Enabling Automatic Updates from Windows Update
Boxstarter: Enabling UAC
Type ENTER to exit:
Update
I think this is either a windows 8.1 issue, but more likely an windows 8.1 on azure issue. I ran the same script successfully on a windows server 2012. The new Windows 8.1 image does not seem very stable yet.
Coordinator
Jun 21, 2014 at 9:15 PM
this is likely a race condition issue that will manifest itself on a machine with low resources. Hard to say. However, there is a related issue that has a fix pending for the next release that will address this.

http://www.mattwrock.com/post/2014/01/21/Released-Boxstarter-23-Windows-Azure-integration.aspx

Thanks!!