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

JEA profile not always installed properly #664

Closed
lazyfrosch opened this issue Sep 25, 2023 · 0 comments · Fixed by #667
Closed

JEA profile not always installed properly #664

lazyfrosch opened this issue Sep 25, 2023 · 0 comments · Fixed by #667
Assignees
Labels
Bug There is an issue present Investigation The team is looking into the cause of the issue
Milestone

Comments

@lazyfrosch
Copy link

lazyfrosch commented Sep 25, 2023

Sometimes the JEA profile is either not built or not installed correctly.

Icingapowershell service is running, but does not listen on the port.

So far nothing found in the eventlog, but I noticed this in the setup transcript (fresh install).

[Notice]: User "icinga" including permissions was successfully installed on this host
[Notice]: Writing Icinga for Windows environment information as JEA profile
[Warning]: The module "icinga-powershell-plugins" is using "Add-Type" or "Add-IcingaAddTypeLib" definitions for file "C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-plugins\provider\disks\Get-IcingaDiskAttributes.psm1". Ensure you validate the code before trusting this publisher.
[Warning]: The module "icinga-powershell-plugins" is using "Add-Type" or "Add-IcingaAddTypeLib" definitions for file "C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-plugins\provider\disks\Get-IcingaUNCPathSize.psm1". Ensure you validate the code before trusting this publisher.
[Notice]: Registering Icinga for Windows JEA profile
PS>TerminatingError(New-PSSession): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: [localhost] Connecting to remote server localhost failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic."
[Notice]: JEA Profile "IcingaForWindows" was successfully installed

Let me know if you want the full transcript and script.

Expected Behavior

Icingapowershell service should respond to API requests.

Current Behavior

UNKNOWN - executing API request failed: Post "https://localhost:5668/v1/checker?command=Invoke-IcingaCheckMemory": dial tcp [::1]:5668: connectex: No connection could be made because the target machine actively refused it. (*fmt.wrapError)

Possible Solution

It helps to manually recreate the JEA profile, maybe a retry procedure during install?

Update-IcingaJEAProfile -IcingaUser '.\icinga';
Restart-IcingaWindowsService;

Steps to Reproduce (for bugs)

Sporadic behavior so far.

Your Environment

  • PowerShell Version used ($PSVersionTable.PSVersion):

    Major  Minor  Build  Revision
    -----  -----  -----  --------
    5      1      20348  1850
    
  • Operating System and version (Get-IcingaWindowsInformation Win32_OperatingSystem | Select-Object Version, BuildNumber, Caption):

    Version    BuildNumber Caption
    -------    ----------- -------
    10.0.20348 20348       Microsoft Windows Server 2022 Standard
    
@LordHepipud LordHepipud self-assigned this Oct 2, 2023
@LordHepipud LordHepipud added Bug There is an issue present Investigation The team is looking into the cause of the issue labels Oct 2, 2023
@LordHepipud LordHepipud added this to the v1.11.1 milestone Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug There is an issue present Investigation The team is looking into the cause of the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants