-
Notifications
You must be signed in to change notification settings - Fork 161
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
Chocolatey aborting shutdown causes Boxstarter to report failed install #148
Comments
please provide a gist of the boxstarter log found at |
I've seen this a few times as well. Just grabbed a boxstarter.log from a user who saw this: |
Boxstarter checks the environment's exitcode immediately after running a chocolatey package. Its certainly possible to have a script that ends up with a non zero exit code even though things seemed to have gone ok. I'm certainly not saying there could be something wrong on boxstarter's end, but especially if you are seeing this happen consistently with a particular script, try printing out the |
In the gist above, the user reported that they had seen the error when they only installed Beyond Compare 4. Looking at the gist, I see that Beyond Compare 4 did indeed succeed - but after that, something runs a That command is not in the boxstarter script, but it looks like Chocolatey itself issues a
Testing on my own machine, this returns the exit code we see in the gist if it is run when no shutdown is in progress:
So it appears that sometimes choco will issue a shutdown abort when no shutdown is in progress. The nonzero exit code from that is what makes Boxstarter report a failure. I'm opening an issue in the choco repo. |
I've got this extensive log where I draw the following conclusion from:
I have no workaround as of yet. Most installs are just fine after a reboot when the package is idempotent but for one package I have the workaround to install it a second time with -n to not execute the install script but still mark it as installed. |
Keeping this open until chocolatey/choco#610 is resolved. |
I doubt that this is still relevant (especially since Boxstarter v3 looking at the given output above, the way Boxstarter used to hijack the session of choco made it probably more sensible to stderr/write-error problems than necessary). I'd vote to close the issue and link a new one here if it ever happens again. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Dear contributor, As this issue seems to have been inactive for quite some time now, it has been automatically closed. |
I am using boxstarter.org\package\url?c:\myscript.ps1 to run the script and after the package is installed successfully, boxstarter report exit code 1 in the log as below. Did some google and found something here, hope this help: chocolatey-archive/chocolatey#387
The text was updated successfully, but these errors were encountered: