So, the search doesn’t even work. I can type a module name in and just nothing happens. Spins for a second and then no output.
Log shows this output when searching:
System.Management.Automation.CmdletInvocationException: NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed.
---> System.InvalidOperationException: NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed.
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at Universal.Server.Services.ModuleDiscoveryService.FindModule(String searchText) in D:\a\universal\universal\src\Universal.Server\Services\ModuleDiscoveryService.cs:line 36
2022-03-07 09:38:10.882 -06:00 [WRN] Failed to sync
System.IO.FileNotFoundException: Could not find file 'C:\ProgramData\UniversalAutomation\Repository\Modules\AWS.Tools.Common\4.1.18.0\AWS.Tools.Common.psm1'.
File name: 'C:\ProgramData\UniversalAutomation\Repository\Modules\AWS.Tools.Common\4.1.18.0\AWS.Tools.Common.psm1'
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.File.AsyncStreamReader(String path, Encoding encoding)
at System.IO.File.InternalReadAllTextAsync(String path, Encoding encoding, CancellationToken cancellationToken)
at UniversalAutomation.Services.ModulesConfigurationScript.ReadAsync(Boolean initialSync) in D:\a\universal\universal\src\Universal.Server\Services\Configuration\Modules.cs:line 51
at UniversalAutomation.Services.UniversalConfigurationService.NotifyChange(String fileName) in D:\a\universal\universal\src\Universal.Server\Services\UniversalConfigurationService.cs:line 143
2022-03-07 09:38:10.944 -06:00 [WRN] Failed to sync
System.IO.FileNotFoundException: Could not find file 'C:\ProgramData\UniversalAutomation\Repository\Modules\AWS.Tools.Common\4.1.18.0\AWS.Tools.Common.psm1'.
File name: 'C:\ProgramData\UniversalAutomation\Repository\Modules\AWS.Tools.Common\4.1.18.0\AWS.Tools.Common.psm1'
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.File.AsyncStreamReader(String path, Encoding encoding)
at System.IO.File.InternalReadAllTextAsync(String path, Encoding encoding, CancellationToken cancellationToken)
at UniversalAutomation.Services.ModulesConfigurationScript.ReadAsync(Boolean initialSync) in D:\a\universal\universal\src\Universal.Server\Services\Configuration\Modules.cs:line 51
at UniversalAutomation.Services.UniversalConfigurationService.NotifyChange(String fileName) in D:\a\universal\universal\src\Universal.Server\Services\UniversalConfigurationService.cs:line 143
However, the nuget provider is installed:
PS C:\ProgramData\PowerShellUniversal> gci 'C:\Program Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.208\Microsoft.PackageManagement.NuGetProvider.dll'
Directory: C:\Program Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.208
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 3/7/2022 9:23 AM 174256 Microsoft.PackageManagement.NuGetProvider.dll
The second two errors seem unrelated, but they came right after the initial error. BTW, the AWS.Tools.Common is a binary module and doesn’t have a PSM1… so it shouldn’t be looking for that file.