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

Update-Icinga: Error while updating "icingapowershell"-service #523

Closed
tectumopticum opened this issue May 19, 2022 · 0 comments · Fixed by #532
Closed

Update-Icinga: Error while updating "icingapowershell"-service #523

tectumopticum opened this issue May 19, 2022 · 0 comments · Fixed by #532
Assignees
Labels
Bug There is an issue present
Milestone

Comments

@tectumopticum
Copy link

During the execution of "Update-Icinga -Name service -Confirm;" the following error is written to ps-stdout:
"[...] Failed to stop service "icingapowershell". Error: The term 'Optimize-IcingaForWindowsMemory' is not recognized as the na
me of a cmdlet, function, script file, or operable program. [...]"

Steps to Reproduce (for bugs)

  1. open a Admin PS
  2. use-icinga
  3. define a new local repository: New-IcingaRepository -Name 'Icinga Local Stable' -Path 'C:\Users\Administrator\Desktop';
  4. update service: Update-Icinga –Name service -Confirm;
    Complete output:
[Notice]: Downloading "service" from "C:/Users/Administrator/Desktop/icinga-service-v1.2.0.zip"
[Notice]: Installing component "service" into "C:\Program Files\icinga-framework-service\"
[Notice]: Updating Icinga PowerShell Service binary
[Notice]: Service User ".\LocalSystem" for service "icingapowershell" successfully updated
[Notice]: Stopping service "icingapowershell"
[
Error
]:
Failed to stop service "icingapowershell". Error: The term 'Optimize-IcingaForWindowsMemory' is not recognized as the na
me of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, v
erify that the path is correct and try again.
[Notice]: Restarting service "icingapowershell"
[
Error
]:
Failed to restart service "icingapowershell". Error: The term 'Optimize-IcingaForWindowsMemory' is not recognized as the
 name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included
, verify that the path is correct and try again.
[Notice]: Stopping service "icingapowershell"
[Notice]: Service User "NT Authority\NetworkService" for service "icingapowershell" successfully updated
[Notice]: Installation of component "service" was successful

Your Environment

PS-framework-version: 1.9.1

  • PowerShell Version used ($PSVersionTable.PSVersion):
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14393  5066
  • Operating System and version (Get-IcingaWindowsInformation Win32_OperatingSystem | Select-Object Version, BuildNumber, Caption):
Version    BuildNumber Caption
-------    ----------- -------
10.0.14393 14393       Microsoft Windows Server 2016 Datacenter
@LordHepipud LordHepipud self-assigned this May 19, 2022
@LordHepipud LordHepipud added the Investigation The team is looking into the cause of the issue label May 19, 2022
@LordHepipud LordHepipud added this to the v1.10.0 milestone Jun 8, 2022
@LordHepipud LordHepipud added Bug There is an issue present and removed Investigation The team is looking into the cause of the issue labels Jun 8, 2022
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
Projects
None yet
2 participants