WASP PROTECT AssetCloud OP Cloud On Premise User Guide

June 16, 2024
WASP PROTECT

AssetCloud OP Cloud On Premise

Portal > Knowledgebase > Cloud > Cloud On-Premise: red errors in PowerShell during RabbitMQ installation – “no valid module file was found in any module directory”

Cloud On-Premise: red errors in PowerShell during RabbitMQ installation – “no valid module file was found in any module directory”
Scott Barnett – 2021-11-09 – in Cloud
During the Cloud On-Premise installation (AssetCloud OP or InventoryCloud OP), red errors are seen in the PowerShell window, containing verbiage similar to “The specified module ‘.\ModuleName.ps1’ was not loaded because no valid module file was found in any module directory.”
This can lead to the RabbitMQ component to not install, and produce an error when logging into the OP software: “Installation has not been completed. The following components are required: RabbitMQ Queue”

Possible cause

Group Policy is overriding the script settings, preventing PowerShell from running install scripts. Note that alhough the “Get-ExecutionPolicy” command has returned the value “Unrestricted” (as mentioned in the On-Premise Prerequisites article), scripts still fail in this situation.

Resolution

Cancel the OP installation, enable running scripts in Local Group Policy Editor, then rerun the OP installer.
Steps to enable:

  1. Click on “Edit group policy” in the search results.
    Expand Computer Configuration -> Administrative Templates -> Windows Launch Local Group Policy Editor: Click the Windows button and type “group policy”.

  2. Components, and click on Windows Powershell
    In the right pane, double-click “Turn on Script Execution”.

  3. Click the Enabled radio button.

  4. Under Options, set Execution Policy to “Allow all scripts”.

  5. OK.

  6. This should allow the installation scripts to run without error.

After the installation completes, if desired, the setting can be returned to the original value in the same manner, clicking “Not Configured” in Step 4. Related Pages
Cloud On-Premise: RabbitMQ component uninstall & reinstall procedure
Cloud On-Premise installation: PowerShell permission configuration

References

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Related Manuals