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

[BUG] - Can't install service fabric with PowerShell 7.x #1477

Open
boydc2014 opened this issue Nov 29, 2023 · 4 comments
Open

[BUG] - Can't install service fabric with PowerShell 7.x #1477

boydc2014 opened this issue Nov 29, 2023 · 4 comments
Labels
type-code-defect Something isn't working

Comments

@boydc2014
Copy link

boydc2014 commented Nov 29, 2023

Describe the bug
Installers in this https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started doesn't work with powershell 7

Area/Component:
Runtime/SDK

To Reproduce
Steps to reproduce the behavior:

  1. Go to (https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started)
  2. Click on 'Install Service Fabric Runtime for Windows'
  3. Run the exe from command with /accepteula

Expected behavior
Installed successfully

Observed behavior:

Screenshots
11/29/2023 12:44:41 PM,Info,Installing Service Fabric Runtime. Logs written to C:\Windows\TEMP\InstallFabricRuntime_638368874815520109.log
11/29/2023 12:44:41 PM,Info,Running extract in parallel.
11/29/2023 12:44:41 PM,Info,Unpackaging autoextractor...
11/29/2023 12:44:41 PM,Info,11/29/2023 8:44:41 PM Running Process: powershell.exe -NoProfile -Command Get-ExecutionPolicy -Scope CurrentUser with timeout 00:01:00
11/29/2023 12:44:41 PM,Info,Creating temporary runtime directory C:\Program Files\Microsoft Service Fabric.ihsmtmxt.3x0.
11/29/2023 12:44:41 PM,Info,Extracting runtime cab to C:\Program Files\Microsoft Service Fabric.ihsmtmxt.3x0...
11/29/2023 12:44:41 PM,Info,11/29/2023 8:44:41 PM Running Process: C:\Windows\TEMP\MicrosoftServiceFabricAutoextractor.exe /L "C:\Program Files\Microsoft Service Fabric.ihsmtmxt.3x0" /E /Y with timeout 01:00:00
11/29/2023 12:44:45 PM,Info,Successfully extracted cab file to C:\Program Files\Microsoft Service Fabric.ihsmtmxt.3x0
11/29/2023 12:45:41 PM,Error,Timeout 00:01:00 exceeded, terminating process..
11/29/2023 12:45:41 PM,Info,Current Powershell Execution Policy:
11/29/2023 12:45:41 PM,Error,Unable to get Powershell ExecutionPolicy. ExitCode: -1
11/29/2023 12:45:41 PM,Info,Cleaning temporary directory C:\Program Files\Microsoft Service Fabric.ihsmtmxt.3x0

Service Fabric Runtime Version:
ex: 7.1., 7.2.

Environment:

  • [OneBox/Dev cluster]
  • OS: Win11
  • Version [e.g. 7.1, 7.2 ]

If this is a regression, which version did it regress from?

Additional context
Add any other context about the problem here.


Assignees: /cc @microsoft/service-fabric-triage

@boydc2014 boydc2014 added the type-code-defect Something isn't working label Nov 29, 2023
@yyoungrrun
Copy link

I also see the same bug, can anyone from service fabric to help?

@yyoungrrun
Copy link

https://learn.microsoft.com/en-us/answers/questions/1181752/service-fabric-runtime-installation-for-windows-fa
this post helps, when I use normal powershell instead of powershell 7, it works

@esbenbach
Copy link

I found that running it as an admin user makes it fail, while running it normally spawns a "regular" powershell in an elevated session and ends up working.

@esbenbach
Copy link

I also found that using winget, one can now install the runtime and the SDK without finding the relevant installer link on github.

winget install Microsoft.ServiceFabricRuntime
winget install Microsoft.ServiceFabricSDK

Works for me at least...

Some proper PS Core support all around would be great though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-code-defect Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants