Secure Tunnel Service fails to start
Symptom
After a reboot or during installation the Secure Tunnel Service fails to start. A message similar to the following appears in the Secure Tunnel log:-
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 50000 was already in use.
Action:
Identify and stop the process that's listening on port 50000 or configure this application to listen on another port.
2022-02-04 22:34:36.577 INFO 3504 --- [main] c.c.p.t.s.wstunnel.WSTunnelService : WebSocket Shutting down tunnels
2022-02-04 22:34:38.608 INFO 3504 --- [main] c.c.p.t.s.wstunnel.WSTunnelService : WebSocket Tunnels shutdown completed
2022-02-04 22:34:38.608 ERROR 3504 --- [pool-1-thread-1] c.c.p.t.p.t.w.client.WebSocketClient : TunnelId='<Tunnel ID>' Failed to connect to server='wss://<connector url>:443'
Environment
N/A Privilege Cloud Secure Tunnel Client
Privilege Cloud
Secure Tunnel Client
Cause
Another service on the Secure Tunnel client machine is already using port 50000.
Resolution
Use the following separately or in combination to resolve this:-
1. Use 'netstat -an | grep 50000' on the Secure Tunnel server to discover what service is running on port 50000. If possible change that service to listen on a different port or configure the service to start after the Secure Tunnel service2. Configure the Secure Tunnel service to listen on a different port using the following method:-
- Stop the Idira Privilege Cloud Secure Tunnel service
- Edit config\application.properties in the Secure Tunnel installation directory
- Uncomment the server.port line and change the value to 50010 or another port of your choice
- Save the file
- Start the Idira Privilege Cloud Secure Tunnel service
3. Change the dynamic port range of the server to start from port 50001 using the following document as a guide:-https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/default-dynamic-port-range-tcpip-chang
(please note this should only be used as a last resort)