KB0031 - Environment Not Found Error

KB0031 - Environment Not Found Error

Applicability

Users that have Git sync enabled may run into an issue where PowerShell Universal reports that an environment was not found. 

Root Cause

The root cause is currently unknown. We are currently investigating this issue. This article will be updated when a patch has been released. 

Workaround

To work around this issue, you will want to ensure that you have an environments.ps1 file generated in your environment. Click Settings \ Environments in the admin console. Next, click the pencil icon to edit the properties of one of your environments. We suggest changing a setting such as Max Runspaces, saving the setting, editing it again and setting it back to the default value. This will generate an environments.ps1 file in your environment. 
The issue is related to environment auto-discovery in PowerShell Universal. By creating an environments.ps1 file, it will no longer attempt to discover environments. 
    • Related Articles

    • HTTPS Certificate Not Found

      Version: Any Issue: After configuration the certificate for your PowerShell Universal and attempting to start the server, you receive the following error.  Unhandled exception. System.InvalidOperationException: The requested certificate ...
    • KB0045 - The requested certificate could not be found

      Problem When specifying a certificate for PowerShell Universal in appsettings.json, an error may occur stating that the certificate could not be found. 2023-09-06 07:52:06.376 -05:00 [FTL] Fatal error starting PowerShell Universal. ...
    • KB0059 - Error During PowerShell Universal Install or Upgrade

      Affected Versions - All PowerShell Universal Versions Problem When running the PowerShell Universal MSI on a system that had an older version of the product installed, the user will see an error message that states "The folder path 'C:' contains an ...
    • "[WARN] Call failed. An error occurred while sending the request." message in all jobs

      Version: Any Root Cause When PowerShell Universal starts a new job, it uses the Management API to retrieve job information from the server. It does this over HTTP and will generate a Read-Only app token for the identity of the user that started or ...
    • KB0042 - HTTP Error 500.19 - internal server error 0x8007000d

      Problem When trying to browse your instance of PowerShell Universal (running on IIS under Windows Server via the ZIP install of PowerShell Universal [1] ) you receive HTTP Error 500.19 - Internal Server Error with error code 0x8007000d Cause You may ...