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

Launch from Web: Script is only executed on second execution #518

Closed
Hativ opened this issue Aug 19, 2022 · 3 comments · Fixed by #534
Closed

Launch from Web: Script is only executed on second execution #518

Hativ opened this issue Aug 19, 2022 · 3 comments · Fixed by #534
Assignees
Labels
5 - Released The issue has been resolved, and released to the public for consumption Bug Issues where something has happened which was not expected or intended Priority_HIGH Issues that are considered to be a high priority to get fixed
Milestone

Comments

@Hativ
Copy link

Hativ commented Aug 19, 2022

Hello,

we use Boxstarter "Launch from Web" with a URL like this (opened in Microsoft Edge): https://boxstarter.org/package/nr/url?https://example.com/link-to-our-script

The first run will install Chocolatey, but the script (from our own url) will not be executed afterwards. The script is only executed if we let it run a second time. This happens on multiple devices and very probably only since Boxstarter 3.0.0.

Log 1st run:

[2022-08-17T17:09:43.2004525+02:00:::PID 14088] parent process is cmd
[2022-08-17T17:09:43.3008159+02:00:::PID 14088] Error getting parent process
[2022-08-17T17:09:43.3008159+02:00:::PID 14088] Boxstarter: Disabling reboots
[2022-08-17T17:09:43.3321742+02:00:::PID 14088] Boxstarter: Installing package https://example.com/link-to-our-script
[2022-08-17T17:09:43.4168459+02:00:::PID 14088] Boxstarter Version 3.0.0.0
[2022-08-17T17:09:43.4168459+02:00:::PID 14088] (c) 2018 Chocolatey Software, Inc, 2012 - 2018 Matt Wrock. https://boxstarter.org

[2022-08-17T17:09:43.4496085+02:00:::PID 14088] + Boxstarter starting Installation session.
[2022-08-17T17:09:43.4509098+02:00:::PID 14088] Boxstarter: NoPassword is false checking autologin
[2022-08-17T17:09:43.4666339+02:00:::PID 14088] Boxstarter: AutoLogin status is False
[2022-08-17T17:09:43.4666339+02:00:::PID 14088] Boxstarter: NoPassword is set to True and RebootOk is set to False and the NoPassword parameter passed was False and StopOnPackageFailure is set to False
[2022-08-17T17:09:43.4666339+02:00:::PID 14088] Boxstarter: Disabling Automatic Updates from Windows Update
[2022-08-17T17:09:43.4666339+02:00:::PID 14088] Boxstarter: Disabling Automatic Updates from Windows Update
[2022-08-17T17:09:43.6421887+02:00:::PID 14088] Boxstarter: Disabling reboots
[2022-08-17T17:09:43.6421887+02:00:::PID 14088] Boxstarter: LocalRepo is at C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages
[2022-08-17T17:09:43.6891597+02:00:::PID 14088] Boxstarter: Passing the following args to Chocolatey: @(  -y)
[2022-08-17T17:09:43.7173205+02:00:::PID 14088] Boxstarter: Exported Boxstarter.Log from 14088 to $env:BEX.Boxstarter.Log with value C:\Users\admin\AppData\Local\Boxstarter\boxstarter.log
[2022-08-17T17:09:43.7173205+02:00:::PID 14088] Boxstarter: Exported Boxstarter.ProgramFiles86 from 14088 to $env:BEX.Boxstarter.ProgramFiles86 with value C:\Program Files (x86)
[2022-08-17T17:09:43.7329418+02:00:::PID 14088] Boxstarter: Exported Boxstarter.SuppressLogging from 14088 to $env:BEX.Boxstarter.SuppressLogging with value False
[2022-08-17T17:09:43.7329418+02:00:::PID 14088] Boxstarter: Exported Boxstarter.RebootOk from 14088 to $env:BEX.Boxstarter.RebootOk with value False
[2022-08-17T17:09:43.7486666+02:00:::PID 14088] Boxstarter: Exported Boxstarter.StopOnPackageFailure from 14088 to $env:BEX.Boxstarter.StopOnPackageFailure with value False
[2022-08-17T17:09:43.7505916+02:00:::PID 14088] Boxstarter: Exported Boxstarter.LocalRepo from 14088 to $env:BEX.Boxstarter.LocalRepo with value C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages
[2022-08-17T17:09:43.7505916+02:00:::PID 14088] Boxstarter: Exported Boxstarter.AutologedOn from 14088 to $env:BEX.Boxstarter.AutologedOn with value False
[2022-08-17T17:09:43.7662327+02:00:::PID 14088] Boxstarter: Exported Boxstarter.NoPassword from 14088 to $env:BEX.Boxstarter.NoPassword with value True
[2022-08-17T17:09:43.7662327+02:00:::PID 14088] Boxstarter: Exported Boxstarter.NugetSources from 14088 to $env:BEX.Boxstarter.NugetSources with value https://chocolatey.org/api/v2
[2022-08-17T17:09:43.7662327+02:00:::PID 14088] Boxstarter: Exported Boxstarter.IsRebooting from 14088 to $env:BEX.Boxstarter.IsRebooting with value False
[2022-08-17T17:09:43.7818523+02:00:::PID 14088] Boxstarter: Exported Boxstarter.ScriptToCall from 14088 to $env:BEX.Boxstarter.ScriptToCall with value Import-Module (Join-Path -Path "C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c" -ChildPath BoxStarter.Chocolatey\Boxstarter.Chocolatey.psd1) -global -DisableNameChecking; Invoke-ChocolateyBoxstarter -bootstrapPackage 'https://example.com/link-to-our-script' -DisableReboots 
[2022-08-17T17:09:43.7818523+02:00:::PID 14088] Boxstarter: Exported Boxstarter.BaseDir from 14088 to $env:BEX.Boxstarter.BaseDir with value C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c
[2022-08-17T17:09:43.7975803+02:00:::PID 14088] Boxstarter: Exported VerbosePreference from 14088 to $env:BEX.VerbosePreference with value SilentlyContinue
[2022-08-17T17:09:43.8021071+02:00:::PID 14088] Boxstarter: Exported DebugPreference from 14088 to $env:BEX.DebugPreference with value SilentlyContinue
[2022-08-17T17:09:43.8021071+02:00:::PID 14088] Boxstarter: Using current PowerShell...
[2022-08-17T17:09:43.8178285+02:00:::PID 14088] Boxstarter: Current runtime is 4.0.30319.42000
[2022-08-17T17:09:43.9023932+02:00:::PID 14088] Boxstarter: SNAP! Chocolatey seems to be missing! - installing NOW!
[2022-08-17T17:09:43.9023932+02:00:::PID 14088] Boxstarter: SNAP! Chocolatey seems to be missing! - installing NOW!
[2022-08-17T17:09:44.9564954+02:00:::PID 14088] WARNING: It's very likely you will need to close and reopen your shell 
  before you can use choco.
[2022-08-17T17:09:45.3569455+02:00:::PID 14088] WARNING: You can safely ignore errors related to missing log files when 
  upgrading from a version of Chocolatey less than 0.9.9. 
  'Batch file could not be found' is also safe to ignore. 
  'The system cannot find the file specified' - also safe.
[2022-08-17T17:09:45.5416809+02:00:::PID 14088] PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
[2022-08-17T17:09:47.4724063+02:00:::PID 14088] Boxstarter: setting current directory location to C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c
[2022-08-17T17:09:47.4724063+02:00:::PID 14088] Boxstarter: BoxstarterWrapper::Run(  -y)...
[2022-08-17T17:09:47.4724063+02:00:::PID 14088] Boxstarter: restoring current directory location to C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c
[2022-08-17T17:09:47.5660650+02:00:::PID 14088] Invoke-Command : Das Argument für den Parameter "ArgumentList" kann nicht überprüft werden. Das Argument ist NULL oder 
leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
In C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d06
7c\Boxstarter.Common\Enter-DotNet4.ps1:38 Zeichen:9
+         Invoke-Command -ScriptBlock $ScriptBlock -argumentlist $Argum ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
 

[2022-08-17T17:09:47.5817710+02:00:::PID 14088] Boxstarter: Restore Automatic Updates from Windows Update
[2022-08-17T17:09:47.6133470+02:00:::PID 14088] Boxstarter: Cleaning up and not rebooting

Log 2nd run:

[2022-08-19T10:18:42.9980025+02:00:::PID 5292] parent process is cmd
[2022-08-19T10:18:43.0740671+02:00:::PID 5292] Error getting parent process
[2022-08-19T10:18:43.0896125+02:00:::PID 5292] Boxstarter: Disabling reboots
[2022-08-19T10:18:43.0896125+02:00:::PID 5292] Boxstarter: Installing package https://example.com/link-to-our-script
[2022-08-19T10:18:43.1360124+02:00:::PID 5292] Boxstarter Version 3.0.0.0
[2022-08-19T10:18:43.1516378+02:00:::PID 5292] (c) 2018 Chocolatey Software, Inc, 2012 - 2018 Matt Wrock. https://boxstarter.org

[2022-08-19T10:18:43.1672684+02:00:::PID 5292] + Boxstarter starting Installation session.
[2022-08-19T10:18:43.1672684+02:00:::PID 5292] Boxstarter: NoPassword is false checking autologin
[2022-08-19T10:18:43.1828948+02:00:::PID 5292] Boxstarter: AutoLogin status is False
[2022-08-19T10:18:43.1828948+02:00:::PID 5292] Boxstarter: NoPassword is set to True and RebootOk is set to False and the NoPassword parameter passed was False and StopOnPackageFailure is set to False
[2022-08-19T10:18:43.1985184+02:00:::PID 5292] Boxstarter: Disabling Automatic Updates from Windows Update
[2022-08-19T10:18:43.1985184+02:00:::PID 5292] Boxstarter: Disabling Automatic Updates from Windows Update
[2022-08-19T10:18:43.2359671+02:00:::PID 5292] Boxstarter: Disabling reboots
[2022-08-19T10:18:43.2359671+02:00:::PID 5292] Boxstarter: LocalRepo is at C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages
[2022-08-19T10:18:43.2672217+02:00:::PID 5292] Boxstarter: Downloading https://example.com/link-to-our-script
[2022-08-19T10:18:43.2672217+02:00:::PID 5292] Boxstarter: Attempt #1...
[2022-08-19T10:18:43.4513941+02:00:::PID 5292] Boxstarter: Attempt #1...
[2022-08-19T10:18:43.4826448+02:00:::PID 5292] Boxstarter: Searching for tmpD839.tmp\tmpD839.tmp.nuspec
[2022-08-19T10:18:43.4983530+02:00:::PID 5292] Boxstarter: Passing the following args to Chocolatey: @(Pack tmpD839.tmp\tmpD839.tmp.nuspec -y)
[2022-08-19T10:18:43.5200024+02:00:::PID 5292] Boxstarter: Exported Boxstarter.Log from 5292 to $env:BEX.Boxstarter.Log with value C:\Users\admin\AppData\Local\Boxstarter\boxstarter.log
[2022-08-19T10:18:43.5356783+02:00:::PID 5292] Boxstarter: Exported Boxstarter.ProgramFiles86 from 5292 to $env:BEX.Boxstarter.ProgramFiles86 with value C:\Program Files (x86)
[2022-08-19T10:18:43.5356783+02:00:::PID 5292] Boxstarter: Exported Boxstarter.SuppressLogging from 5292 to $env:BEX.Boxstarter.SuppressLogging with value False
[2022-08-19T10:18:43.5512730+02:00:::PID 5292] Boxstarter: Exported Boxstarter.RebootOk from 5292 to $env:BEX.Boxstarter.RebootOk with value False
[2022-08-19T10:18:43.5512730+02:00:::PID 5292] Boxstarter: Exported Boxstarter.StopOnPackageFailure from 5292 to $env:BEX.Boxstarter.StopOnPackageFailure with value False
[2022-08-19T10:18:43.5512730+02:00:::PID 5292] Boxstarter: Exported Boxstarter.LocalRepo from 5292 to $env:BEX.Boxstarter.LocalRepo with value C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages
[2022-08-19T10:18:43.5668959+02:00:::PID 5292] Boxstarter: Exported Boxstarter.AutologedOn from 5292 to $env:BEX.Boxstarter.AutologedOn with value False
[2022-08-19T10:18:43.5668959+02:00:::PID 5292] Boxstarter: Exported Boxstarter.NoPassword from 5292 to $env:BEX.Boxstarter.NoPassword with value True
[2022-08-19T10:18:43.5668959+02:00:::PID 5292] Boxstarter: Exported Boxstarter.NugetSources from 5292 to $env:BEX.Boxstarter.NugetSources with value https://chocolatey.org/api/v2
[2022-08-19T10:18:43.5825199+02:00:::PID 5292] Boxstarter: Exported Boxstarter.IsRebooting from 5292 to $env:BEX.Boxstarter.IsRebooting with value False
[2022-08-19T10:18:43.5825199+02:00:::PID 5292] Boxstarter: Exported Boxstarter.ScriptToCall from 5292 to $env:BEX.Boxstarter.ScriptToCall with value Import-Module (Join-Path -Path "C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c" -ChildPath BoxStarter.Chocolatey\Boxstarter.Chocolatey.psd1) -global -DisableNameChecking; Invoke-ChocolateyBoxstarter -bootstrapPackage 'https://example.com/link-to-our-script' -DisableReboots 
[2022-08-19T10:18:43.5981462+02:00:::PID 5292] Boxstarter: Exported Boxstarter.BaseDir from 5292 to $env:BEX.Boxstarter.BaseDir with value C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c
[2022-08-19T10:18:43.5981462+02:00:::PID 5292] Boxstarter: Exported VerbosePreference from 5292 to $env:BEX.VerbosePreference with value SilentlyContinue
[2022-08-19T10:18:43.6138592+02:00:::PID 5292] Boxstarter: Exported DebugPreference from 5292 to $env:BEX.DebugPreference with value SilentlyContinue
[2022-08-19T10:18:43.6511461+02:00:::PID 5292] Boxstarter: Using current PowerShell...
[2022-08-19T10:18:43.6670794+02:00:::PID 5292] Boxstarter: Current runtime is 4.0.30319.42000
[2022-08-19T10:18:43.6828837+02:00:::PID 5292] Boxstarter: setting current directory location to C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages
[2022-08-19T10:18:43.6828837+02:00:::PID 5292] Boxstarter: BoxstarterWrapper::Run(Pack tmpD839.tmp\tmpD839.tmp.nuspec -y)...
[2022-08-19T10:18:44.1591930+02:00:::PID 5292] Boxstarter: BoxstarterWrapper::Run => 
[2022-08-19T10:18:44.1591930+02:00:::PID 5292] Boxstarter: restoring current directory location to C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c
[2022-08-19T10:18:44.1591930+02:00:::PID 5292] Boxstarter: Created a temporary package tmpD839.tmp from https://example.com/link-to-our-script in C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages
[2022-08-19T10:18:44.1591930+02:00:::PID 5292] Boxstarter: Created a temporary package tmpD839.tmp from https://example.com/link-to-our-script in C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages
[2022-08-19T10:18:44.1748607+02:00:::PID 5292] Boxstarter: Deleting previous tmpD839.tmp package
[2022-08-19T10:18:44.1748607+02:00:::PID 5292] Boxstarter: Installing 1 packages from C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages;https://chocolatey.org/api/v2
[2022-08-19T10:18:44.1905439+02:00:::PID 5292] Boxstarter: Parameters to be passed to Chocolatey: Command='install', args='System.String[] -source C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages;https://chocolatey.org/api/v2 -force: True -execution-timeout 86400'
[2022-08-19T10:18:44.1905439+02:00:::PID 5292] Boxstarter: Will stop on first package error: False
[2022-08-19T10:18:44.2206351+02:00:::PID 5292] Boxstarter: RebootCodes: '3010 -2067919934' (2 elements)
[2022-08-19T10:18:44.2206351+02:00:::PID 5292] Boxstarter: Installing 1 packages
[2022-08-19T10:18:44.2362838+02:00:::PID 5292] Boxstarter: Checking for Pending reboot
[2022-08-19T10:18:44.3246478+02:00:::PID 5292] Boxstarter: Detected Pending reboot
[2022-08-19T10:18:44.3246478+02:00:::PID 5292] @{Computer=L187; CBServicing=False; WindowsUpdate=False; CCMClientSDK=; PendComputerRename=False; PendFileRename=True; PendFileRenVal=System.String[]; RebootPending=True}
[2022-08-19T10:18:44.3246478+02:00:::PID 5292] ++ Boxstarter starting Calling Chocolatey to install tmpD839.tmp. This may take several minutes to complete...
[2022-08-19T10:18:44.3246478+02:00:::PID 5292] ++ Boxstarter starting Calling Chocolatey to install tmpD839.tmp. This may take several minutes to complete...
[2022-08-19T10:18:44.3406993+02:00:::PID 5292] Boxstarter: p: -source
[2022-08-19T10:18:44.3406993+02:00:::PID 5292] Boxstarter: p: C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages;https://chocolatey.org/api/v2
[2022-08-19T10:18:44.3406993+02:00:::PID 5292] Boxstarter: p: -force:
[2022-08-19T10:18:44.3406993+02:00:::PID 5292] Boxstarter: p: True
[2022-08-19T10:18:44.3406993+02:00:::PID 5292] Boxstarter: p: -execution-timeout
[2022-08-19T10:18:44.3406993+02:00:::PID 5292] Boxstarter: p: 86400
[2022-08-19T10:18:44.3563652+02:00:::PID 5292] Boxstarter: Passing the following args to Chocolatey: @(install tmpD839.tmp -source C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages;https://chocolatey.org/api/v2 -f -execution-timeout 86400 -y)
[2022-08-19T10:18:44.3563652+02:00:::PID 5292] Boxstarter: Exported Boxstarter.Log from 5292 to $env:BEX.Boxstarter.Log with value C:\Users\admin\AppData\Local\Boxstarter\boxstarter.log
[2022-08-19T10:18:44.3563652+02:00:::PID 5292] Boxstarter: Exported Boxstarter.ProgramFiles86 from 5292 to $env:BEX.Boxstarter.ProgramFiles86 with value C:\Program Files (x86)
[2022-08-19T10:18:44.3563652+02:00:::PID 5292] Boxstarter: Exported Boxstarter.SuppressLogging from 5292 to $env:BEX.Boxstarter.SuppressLogging with value False
[2022-08-19T10:18:44.3563652+02:00:::PID 5292] Boxstarter: Exported Boxstarter.RebootOk from 5292 to $env:BEX.Boxstarter.RebootOk with value False
[2022-08-19T10:18:44.3563652+02:00:::PID 5292] Boxstarter: Exported Boxstarter.Package from 5292 to $env:BEX.Boxstarter.Package with value tmpD839.tmp
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported Boxstarter.StopOnPackageFailure from 5292 to $env:BEX.Boxstarter.StopOnPackageFailure with value False
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported Boxstarter.LocalRepo from 5292 to $env:BEX.Boxstarter.LocalRepo with value C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported Boxstarter.AutologedOn from 5292 to $env:BEX.Boxstarter.AutologedOn with value False
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported Boxstarter.NoPassword from 5292 to $env:BEX.Boxstarter.NoPassword with value True
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported Boxstarter.NugetSources from 5292 to $env:BEX.Boxstarter.NugetSources with value https://chocolatey.org/api/v2
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported Boxstarter.IsRebooting from 5292 to $env:BEX.Boxstarter.IsRebooting with value False
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported Boxstarter.ScriptToCall from 5292 to $env:BEX.Boxstarter.ScriptToCall with value Import-Module (Join-Path -Path "C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c" -ChildPath BoxStarter.Chocolatey\Boxstarter.Chocolatey.psd1) -global -DisableNameChecking; Invoke-ChocolateyBoxstarter -bootstrapPackage 'https://example.com/link-to-our-script' -DisableReboots 
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported Boxstarter.BaseDir from 5292 to $env:BEX.Boxstarter.BaseDir with value C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported VerbosePreference from 5292 to $env:BEX.VerbosePreference with value SilentlyContinue
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Exported DebugPreference from 5292 to $env:BEX.DebugPreference with value SilentlyContinue
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Using current PowerShell...
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: Current runtime is 4.0.30319.42000
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: setting current directory location to C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c
[2022-08-19T10:18:44.3719903+02:00:::PID 5292] Boxstarter: BoxstarterWrapper::Run(install tmpD839.tmp -source C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages;https://chocolatey.org/api/v2 -f -execution-timeout 86400 -y)...
[2022-08-19T10:18:47.6022766+02:00:::PID 2764] Boxstarter: Importing Boxstarter vars into pid 2764 from pid: 5292
[2022-08-19T10:18:47.6420817+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.AutologedOn from 5292 to 2764 with value False
[2022-08-19T10:18:47.6568759+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.BaseDir from 5292 to 2764 with value C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c
[2022-08-19T10:18:47.6667241+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.IsRebooting from 5292 to 2764 with value False
[2022-08-19T10:18:47.6718573+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.LocalRepo from 5292 to 2764 with value C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c\BuildPackages
[2022-08-19T10:18:47.6820270+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.Log from 5292 to 2764 with value C:\Users\admin\AppData\Local\Boxstarter\boxstarter.log
[2022-08-19T10:18:47.6871243+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.NoPassword from 5292 to 2764 with value True
[2022-08-19T10:18:47.6979699+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.NugetSources from 5292 to 2764 with value https://chocolatey.org/api/v2
[2022-08-19T10:18:47.7022166+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.Package from 5292 to 2764 with value tmpD839.tmp
[2022-08-19T10:18:47.7117084+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.ProgramFiles86 from 5292 to 2764 with value C:\Program Files (x86)
[2022-08-19T10:18:47.7117084+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.RebootOk from 5292 to 2764 with value False
[2022-08-19T10:18:47.7216589+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.ScriptToCall from 5292 to 2764 with value Import-Module (Join-Path -Path "C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c" -ChildPath BoxStarter.Chocolatey\Boxstarter.Chocolatey.psd1) -global -DisableNameChecking; Invoke-ChocolateyBoxstarter -bootstrapPackage 'https://example.com/link-to-our-script' -DisableReboots 
[2022-08-19T10:18:47.7321640+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.StopOnPackageFailure from 5292 to 2764 with value False
[2022-08-19T10:18:47.7416947+02:00:::PID 2764] Boxstarter: Importing BEX.Boxstarter.SuppressLogging from 5292 to 2764 with value False
[2022-08-19T10:18:47.7617621+02:00:::PID 2764] Boxstarter: *** HELLO WORLD ***
[2022-08-19T10:18:47.7767456+02:00:::PID 2764] Boxstarter: *** HELLO WORLD ***
[2022-08-19T10:18:47.9019558+02:00:::PID 2764] Starting Client enrollment. Please wait...
[2022-08-19T10:19:08.3488957+02:00:::PID 2764] Done...
[2022-08-19T10:19:09.7834108+02:00:::PID 5292] Boxstarter: BoxstarterWrapper::Run => 
[2022-08-19T10:19:09.7843040+02:00:::PID 5292] Boxstarter: restoring current directory location to C:\Users\admin\AppData\Local\Apps\2.0\TC5Y4WDT.KEA\2J0CXWVW.20Q\boxs..tion_361ed8ca92bbadd3_0003.0000_62576fb8472d067c
[2022-08-19T10:19:09.7900602+02:00:::PID 5292] Boxstarter: Exit Code: 0
[2022-08-19T10:19:09.8087812+02:00:::PID 5292] ++ Boxstarter finished Calling Chocolatey to install tmpD839.tmp. This may take several minutes to complete... 00:00:25.4660002
[2022-08-19T10:19:09.8102342+02:00:::PID 5292] ++ Boxstarter finished Calling Chocolatey to install tmpD839.tmp. This may take several minutes to complete... 00:00:25.4660002
[2022-08-19T10:19:09.8370049+02:00:::PID 5292] Boxstarter: Restore Automatic Updates from Windows Update
[2022-08-19T10:19:09.8863410+02:00:::PID 5292] Boxstarter: Cleaning up and not rebooting
@pauby
Copy link
Member

pauby commented Aug 19, 2022

Thanks for raising this issue. I can confirm I've reproduced it using the first Boxstarter gist I found in GitHub,

START https://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/preston-griggs/box_starter/master/drake.txt

This is what happens:

WindowsSandboxClient_GL8eXbPy0X

I suspect the issue is that we no longer rely on Chocolatey being part of Boxstarter.

@pauby pauby added Bug Issues where something has happened which was not expected or intended 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue Priority_HIGH Issues that are considered to be a high priority to get fixed labels Aug 19, 2022
@mwallner mwallner self-assigned this Aug 27, 2022
@mwallner mwallner added this to the 3.0.1 milestone Aug 27, 2022
@mwallner
Copy link
Member

issue is most likely in

-> Call-Chocolatey w/o arguments breaks further workflow

@mwallner mwallner modified the milestones: 3.0.1, 3.1.0 Nov 17, 2022
@mwallner mwallner removed the 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue label Nov 17, 2022
mwallner added a commit to mwallner/boxstarter that referenced this issue Jun 6, 2023
@gep13 gep13 modified the milestones: 3.1.0, 3.0.1 Jun 6, 2023
@gep13 gep13 added the 4 - Done Code has been added to the repository, and has been reviewed by a team member label Jun 6, 2023
gep13 pushed a commit that referenced this issue Jun 6, 2023
(cherry picked from commit 8dacaec)
gep13 added a commit that referenced this issue Jun 6, 2023
* hotfix/3.0.1:
  GH-518: fix Call-Chocolatey usage
  (GH-532) Use 'choco install' instead of cinst (#533)
  (#524) Fix Build Handling of Long Prerelease
  (maint) eol consistency
  (maint) .gitattributes new line
  (GH-501) Fix Propagation of VerbosePreference (#512)
  (#508) Fix package iconUrl
  Fixed typo in README.md
  Update README.md
  (maint) Re-instate the Boxstarter logo
  (maint) link boxstarter.org repository
  (maint) crlf in Markdown files!
@gep13 gep13 changed the title Launch from Web: Script is only executed at the second run Launch from Web: Script is only executed on second execution Jun 6, 2023
@gep13 gep13 added 5 - Released The issue has been resolved, and released to the public for consumption and removed 4 - Done Code has been added to the repository, and has been reviewed by a team member labels Jun 6, 2023
@choco-bot
Copy link

🎉 This issue has been resolved in version 3.0.1 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

gep13 added a commit that referenced this issue Jun 6, 2023
* master:
  (build) Handle null value for PreReleaseLabel
  (build) Add standard config for GitReleaseManager
  (build) Add templates for GitReleaseManager
  (maint) Fix line endings
  GH-518: fix Call-Chocolatey usage
  (GH-532) Use 'choco install' instead of cinst (#533)
  (#524) Fix Build Handling of Long Prerelease
  (maint) Re-instate the Boxstarter logo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Released The issue has been resolved, and released to the public for consumption Bug Issues where something has happened which was not expected or intended Priority_HIGH Issues that are considered to be a high priority to get fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants