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

dev_web_nodejs.ps1 stall at Installing visual studio workload #79

Open
ddieppa opened this issue Nov 12, 2018 · 4 comments
Open

dev_web_nodejs.ps1 stall at Installing visual studio workload #79

ddieppa opened this issue Nov 12, 2018 · 4 comments

Comments

@ddieppa
Copy link

ddieppa commented Nov 12, 2018

was running the dev_web_nodejs script and got a few red messages, but the problem really happens when installing Visual Studio workloads, here is the screenshot:

image

the script stall there like for more than an hour, any clue? and then got this:

image

here are the print screen of the other issues found, perhaps they are related:

image

image

image

@yodurr
Copy link
Contributor

yodurr commented Nov 15, 2018

It's strange the title window says "Select Ubuntu 18.04" but that could just be an artifact of installing Ubuntu for WSL earlier in the script.

Any chance you went offline during the install? Adding @crutkas who's more familiar with the visual studio installation.

@crutkas
Copy link
Member

crutkas commented Nov 15, 2018

can we get the logs?

we did just update VS to 15.9, wonder if that could have caused an issue with Choco?

@ddieppa
Copy link
Author

ddieppa commented Nov 21, 2018

Here is the Boxstarter and Chocolatey log files, sorry for the delay
boxstarter.log
chocolatey.log

@AdmiringWorm
Copy link

If I may, let me chime in a little here after looking at the issue and the logs.

Lets start with the failure of the Visual Studio installation,
this is basically just the installation timing out
because Visual Studio (or in this case, the workload) uses too long.
By default, chocolatey have a default timeout of 2700 seconds (45 minutes).

I've seen myself when setting up my own computers
that this sometimes isn't enough time when installing
visual studio and their worloads.
In this case, I would suggest editing the script
and update the timeout to be a little longer
(personally I use something like 2 hours or so).

That can be easily achieved by adding --timeout 7200 to the command
for installing visual studio (and the workloads).
The reason it seems to stall though,
is because by default the package is installing visual studio in
silent/quiet mode, without showing the progress.
If you wish to see the progress, you add the following to the choco install command:
--package-parameters='"/passive"' (The order of the quotes is important here).

Now onto the second error, which would be the missing string terminator.

Looking at the history of the repo,
this makes me actually believe that you perhaps is using an outdated edition
of the repository, where the quotation of the arguments were used incorrectly.
I would suggest that you either update to the latest master commit,
or go through each install script in the repo and changing the quotation to be correct.
(for instance, the quotes for git should be in the following order seen here: https://github.com/Microsoft/windows-dev-box-setup-scripts/blob/master/scripts/CommonDevTools.ps1#L4)

Now for the last error (I'm skipping the subsystem one, since I'm not familiar with it):
This is/was most likely due to the google chrome package being outdated,
it usually is a few hours after google released a new version before a new
one is available on chocolatey.
This usually reslults in checksum errors during this time, as the same url
is used for every version of Google Chrome.

/cc @ddieppa

@crutkas crutkas removed their assignment Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants