CPM - Scanner service start and stop with error - System.Net.Http.HttpRequestException: Response status code does not indicate success: 503 (Service Unavailable).
Symptom
This is PCloud ISPSS env. Try to start CPM scanner service, it starts then stops immediately. The Scanner log has following error:
WSC011E Failed to connect to socket. Error: [Microsoft.AspNet.SignalR.Client.HttpClientException: StatusCode: 503, ReasonPhrase: 'Service Unavailable', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Connection: keep-alive
cf-cache-status: DYNAMIC
CF-RAY: xxx
Date: xxx
Server: xxx
Content-Length: 0
Content-Type: text/plain; charset=utf-8
}
at Microsoft.AspNet.SignalR.Client.Http.DefaultHttpClient.<>c__DisplayClass5_0.<Get>b__1(HttpResponseMessage responseMessage)
at Microsoft.AspNet.SignalR.TaskAsyncHelper.TaskRunners`2.<>c__DisplayClass3_0.<RunTask>b__0(Task`1 t)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CyberArk.Infra.WebSocketsClient.HubConnectionManager.<Start>d__16.MoveNext()]
07/02/2025 18:52:33.805 | tid=4 | user=CACPMScanner | Level: Info, Message: WSC006E No more addresses in BackendConfiguration to connect to. Wait a minute and try again from the start.
Environment
Privilege Cloud Central Policy Manager (CPM)
PCloud ISPSS Central Policy Manager (CPM) Scanner
Cause
The PVWA webportal referenced in the CPM vault.ini is using .com instead of .cloud
Resolution
Go to Password Manager\Vault folder, open vault.ini. Modify the url from
https://<mysubdomain>.privilegecloud.cyberark.com/PasswordVault/
to
https://<mysubdomain>.privilegecloud.cyberark.cloud/PasswordVault/
Start the scanner service.