Skip to content

Instantly share code, notes, and snippets.

@tinuwalther
Last active June 20, 2024 15:20
Show Gist options
  • Save tinuwalther/961712eb94550ad4fd2ab81b67ae421b to your computer and use it in GitHub Desktop.
Save tinuwalther/961712eb94550ad4fd2ab81b67ae421b to your computer and use it in GitHub Desktop.
VMware Aria

VMware Aria Automation Orchestrator

VMware Aria Automation Orchestrator 8.16.2

Assets, Environments

2024-06-20 16:31:19.570 +02:00INFO   [Start downloading dependencies]
2024-06-20 16:31:19.571 +02:00INFO
2024-06-20 16:31:19.572 +02:00INFO   HTTP proxy is configured
2024-06-20 16:31:22.882 +02:00ERROR  Register-PSRepository:  The specified Uri 'https://nexus.company.local/repository/intPSModules-intern/' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements.
2024-06-20 16:31:22.947 +02:00INFO   Downloading PsNetTools 0.7.8 ...
2024-06-20 16:31:25.882 +02:00ERROR  Get-PackageSource:  Unable to find repository 'PrivateRepo'. Use Get-PSRepository to see all
2024-06-20 16:31:25.883 +02:00ERROR  available repositories.\u001B[0m
2024-06-20 16:31:25.962 +02:00INFO
2024-06-20 16:31:25.963 +02:00INFO   [Completed downloading dependencies]

Aria Orchestrator Appliance

Proxy exception for nexus.company.local is set.

vracli proxy show
...
"upstream_proxy_host": "proxy.company.local",
"user-proxy-exclude": "nexus.company.local",
...

Certificate

The certificate of the nexus is valid, but it's a wildcard-certificate and imported in Aria Orchestrator.

Register-PSRepository failed with SourceLocation is an invalid Web Uri

Wrapped ch.dunes.scripting.server.polyglot.PolyglotRunnerException: 
The specified Uri 'https://nexus.company.local/repository/intPSModules-intern/' for parameter 'SourceLocation' is an invalid Web Uri. 
Please ensure that it meets the Web Uri requirements.

Output from Action importModuleTest with -Debug

Invoke-WebRequest returned 200 OK, Register-PSRepository failed with SourceLocation is an invalid Web Uri, Ping-Endpoint: location=https://nexus.company.local/repository/intPSModules-intern/, statuscode=, resolvedLocation=

2024-06-17 19:33:05.472 +02:00INFOStatusCode        : 200 # from Invoke-WebRequest
2024-06-17 19:33:05.476 +02:00INFOStatusDescription : OK # from Invoke-WebRequest
2024-06-17 19:33:05.600 +02:00INFOName              : PowerShellGet
2024-06-17 19:33:05.601 +02:00INFOVersion           : 2.2.5
2024-06-17 19:33:05.602 +02:00INFOPath              : /opt/microsoft/powershell/Modules/PowerShellGet/PowerShellGet.psd1
...
2024-06-17 19:33:06.545 +02:00INFO DEBUG: Ping-Endpoint: location=https://nexus.company.local/repository/intPSModules-intern/, statuscode=, resolvedLocation=
2024-06-17 19:33:06.562 +02:00ERROR The specified Uri 'https://nexus.company.local/repository/intPSModules-intern/' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements.
2024-06-17 19:33:06.659 +02:00ERROR Register-PSRepository: \u001B[0m/run/vco-polyglot/function/handler.ps1:46
...

Find PSRepository.xml

Get-ChildItem -Path / -Filter PSRepositories.xml -Recurse -ErrorAction SilentlyContinue -Force

Windows: "$($env:LOCALAPPDATA)\Microsoft\Windows\PowerShell\PowerShellGet\PSRepositories.xml"

Linux: '/home/<account>/.cache/powershell/PowerShellGet/PSRepositories.xml'

Copy the content of a working system to the system where the registering does not working.

Find-Module

Running Find-Module -Debug

Find-Module -Name VMware.vSphere.SsoAdmin -Repository intPSGallery -Credential $RepoCredential -Debug

It returned The SSL connection could not be established

...
INFO VERBOSE: The SSL connection could not be established, see inner exception.
DEBUG: 00:00:00.4308298 at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
 at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
 at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
 at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
 at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
 at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
 at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
 at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
 at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
 ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment