Closed log1-c closed 2 years ago
I have seen this issue on a small amount of systems, but I don't know what the cause of it is right away. My assumption is, that old versions of the module are still loaded within the PowerShell, causing problems because some parts were moved from the plugins directly into the Framework - and for some reason, an old function call is used here.
Does this issue keep occurring on the systems? The error is simply caused by the state fetching of the services, to restart them in case they are running (and being stopped before installation/updates). So it does not do much harm and is just a convenience feature. However, throwing an error is never perfect.
Can you please try the following on the machines (if the error continues):
Import-Module icinga-powershell-framework -Global -Force;
Import-Module icinga-powershell-framework -Force;
Import-Module icinga-powershell-plugins -Global -Force;
Import-Module icinga-powershell-plugins-Force;
I assume the "old" version of the module is still available in the Global
space, causing issues on the installation.
Hi:) thanks for your feedback!
There were no older versions of the framework or plugins present on the system, it was a complete new install. Will see if I can get a fresh test vm and test again.
Is this issue still present? I'm not sure if there is any action that has to be done and could have happend because of migrations from certain function from plugins to the framework.
I'm not sure on how imminent this issue is and if it requires any fixing anymore.
Sadly the customer hasn't given me an account with the appropriate permissions yet to test this any further. I will ask in the next meeting with him again, if this is possible.
Currently we have worked around the issue by installing a previous version of the plugins and framework to get the installation via SCCM running.
Hi there :)
I know the cmdlet
Start-IcingaAgentInstallWizard
is deprecated, but I currently don't have the time to work myself into the new bits and bobs of the new installation routine, especially as we use the installation files locally because of no internet connection and using config mgmt (sccm or ansible for example).When running the cmdlet with the new framework I get the following messages after nearly every action the installation takes beginning after these steps:
The messages/errors look like this:
They are always referring to these two lines:
Here is part of the installation script:
But the installation of the agent works without problems and is successful. Maybe you could have a quick look into it? In case it matters: Server ist a Windows Server 2019