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

Installation stuck at "Loading Powershell Framework" #781

Open
benhartwich opened this issue Feb 3, 2025 · 4 comments
Open

Installation stuck at "Loading Powershell Framework" #781

benhartwich opened this issue Feb 3, 2025 · 4 comments
Assignees
Labels
Investigation The team is looking into the cause of the issue

Comments

@benhartwich
Copy link

Hi,

I am using an elevated powershell and set:
Set-ExecutionPolicy -ExecutionPolicy ByPass -Scope Process

and tried to install the power shell framework:

[Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11';
$ProgressPreference                         = 'SilentlyContinue';
[string]$ScriptFile                         = 'C:\Users\Public\IcingaForWindows.ps1';

Invoke-WebRequest `
    -UseBasicParsing `
    -Uri             'https://packages.icinga.com/IcingaForWindows/IcingaForWindows.ps1' `
    -OutFile         $ScriptFile;

& $ScriptFile `
    -ModuleDirectory  'C:\Program Files\WindowsPowerShell\Modules\' `
    -InstallCommand   '{"IfW-DirectorSelfServiceKey":{"Values":["313483a65a4"]},"IfW-DirectorUrl":{"Values":["http://te-icinga-vm.xy.at/director/"]},"IfW-StableRepository":{"Values":["https://packages.icinga.com/IcingaForWindows/stable"]}}' `
    -IcingaRepository 'https://packages.icinga.com/IcingaForWindows/stable/ifw.repo.json'

The installation is stuck at "loading powershell framework - what could I´ve done wrong?

[Notice]: PowerShell Execution-Policies are configured to run Scripts and/or Modules.
[Notice]: Icinga PowerShell Framework is already installed. Using Framework functions for kickstarter.
[Notice]: Loading Icinga PowerShell Framework.
@LordHepipud
Copy link
Collaborator

The system shouldn't freeze at this point and can't reproduce this. What operating system are you running this on?
Have you set the execution policy for the CurrentUser / LocalMachine as well?

@LordHepipud LordHepipud added the Investigation The team is looking into the cause of the issue label Feb 3, 2025
@LordHepipud LordHepipud self-assigned this Feb 3, 2025
@benhartwich
Copy link
Author

I have set the ExecutionPolicy to CurrentUser and there it stops at another when trying a new install on Windows 11 Pro.

[Notice]: The task "Set Process Priority" has been successfully registered at location "\Icinga\Icinga for Windows\".

I don´t know where to start - is there any kind of debug parameter for the script in order to see, what is happening exactly?

@LordHepipud
Copy link
Collaborator

What happens if you run

icinga -Shell

Basically what is called next after the message is

Use-Icinga

Maybe we can start there to check what is going on.

@benhartwich
Copy link
Author

It succeeded after setting the ExecutionPolicy to ByPass for the LocalMachine also and reinstalled all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigation The team is looking into the cause of the issue
Projects
None yet
Development

No branches or pull requests

2 participants