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

Deployment fails due to required reboot, 100% deployment failure rate #41

Open
easyveazie opened this issue Jun 1, 2023 · 7 comments
Open

Comments

@easyveazie
Copy link

easyveazie commented Jun 1, 2023

Installing Chocolatey on the local machine
VERBOSE: Loading module from path
'C:\Users\administrator\AppData\Local\Temp\chocolatey\chocoInstall\tools\chocolateysetup.psm1'.
VERBOSE: Exporting function 'Initialize-Chocolatey'.
VERBOSE: Importing function 'Initialize-Chocolatey'.
VERBOSE: Loading module from path
'C:\Users\administrator\AppData\Local\Temp\chocolatey\chocoInstall\tools\chocolateyInstall\helpers\chocolateyInstaller.
psm1'.
.NET Framework 4.8 was installed, but a reboot is required.
Please reboot the system and try to install/upgrade Chocolatey again.

At C:\AzHCI_Sandbox\AzSHCISandbox-main\New-AzSHCISandbox.ps1:2028 char:5
+     Invoke-Command -VMName AzSMGMT -Credential $localCred -ScriptBloc ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (.NET Framework ...ocolatey again.:String) [], RuntimeException
    + FullyQualifiedErrorId : .NET Framework 4.8 was installed, but a reboot is required.
 Please reboot the system and try to install/upgrade Chocolatey again.
    + PSComputerName        : AzSMGMT
@lucaslccs
Copy link

lucaslccs commented Jun 4, 2023

+1

The new release of Chocolatey 2.0.0 from May 31 are upgrading the .NET:

-"Upgrade to target version 4.8 of the .NET Framework" chocolatey/choco#2738

https://docs.chocolatey.org/en-us/choco/release-notes

@lucaslccs
Copy link

lucaslccs commented Jun 4, 2023

I am testing a workaround:

Edit the file 'New-AzSHCISandbox.ps1' and change the line 2543:

From: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

To: Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-WebRequest -Uri 'https://chocolatey.org/install.ps1' -OutFile 'install.ps1'; .\install.ps1 -ChocolateyDownloadUrl "https://community.chocolatey.org/api/v2/package/chocolatey/1.4.0"

EDIT: worked

@easyveazie
Copy link
Author

@lucaslccs thank you for the quick workaround. When this is merged, I'll give it another spin as well.

@easyveazie easyveazie changed the title Deployment fails due to required reboot Deployment fails due to required reboot, 100% deployment failure rate Jun 7, 2023
@Gustvob10
Copy link

Hi guys it still not working I’m trying to deploy it I’ll try that work around now

@JuliaHazelwood
Copy link

@easyveazie , @lucaslccs - has a pull request to make this change already been submitted? I also had the same issue and that change in the script fixed my deployment as well

@ronmiab
Copy link

ronmiab commented Apr 2, 2024

Hello @easyveazie / @lucaslccs / @JuliaHazelwood , I messaged with Luminita Vijiianu in TEAMS and sharing the same here.

In my communications with PMs/Devs, there have been some newer options introduced in the last month in terms of evaluating Azure Stack HCI.

Here are the latest offerings:

There hasn’t been any determination on the fix or continuation of use with the Evaluation Guide. For now, please see the two options posted above.

@ronmiab
Copy link

ronmiab commented Apr 2, 2024

@easyveazie - with the new items shared can we close this issue?

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

5 participants