Error 504 When Attempting to Logon to PVWA via LDAP and/or SAML
143
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 15:55 PM
Symptom
1. Users suddenly start experiencing error 504 due to PVWA timing out when attempting login to PVWA via LDAP and/or SAML as shown in snapshot below, after a recent upgrade to a higher version of PVWA.
2. When attempting to apply LDAP configuration changes in PVWA options, the page loads for a long period of time and administrator does not get the "Your changes have been saved successfully" message as shown below, upon applying LDAP changes.
3. Privilege cloud secure tunnel loads indefinitely when attempting to configure components.
Environment
12.1;12.2;12.4;12.3;12.5;12.6;14.6 Privilege Cloud Privilege Cloud Web Portal 1. PVWA
2. Secure Tunnel
Cause
1. Other services, applications or processes are utilizing port 50000 which the Secure Tunnel listens on, you can confirm this by running the following commands in CMD as an administrator:
i. netstat -ano | findstr "50000"
ii. tasklist | findstr "<PID>"
Resolution
1. Stop the "CyberArk Privilege Cloud Secure Tunnel" Service
2. Check if "CyberArk Privilege Cloud Secure Tunnel" is running on the background by running "tasklist" in CMD as administrator, if it is, run this command "taskkill -f /pid <PID>" as shown below
3. Run "tasklist" again ensuring that all instances of the secure tunnel is no longer running.
4. Run command netstat -ano | findstr "50000" and tasklist | findstr "<PID>" on CMD as an administrator to see if default secure tunnel port of 50000 is being listened on by services, applications or processes, if it is, run the netstat command on the next port increment of 50000, e.g., netstat -ano | findstr "50001" and if 50001 is also being utilized, run netstat on 50002 until you find a vacant port as depicted in the snapshot below
If a port is not being listened on as shown in snapshot above, it would return nothing.
5. Once desired port is found, navigate to <Drive>\Program Files\CyberArk\PrivilegeCloudSecureTunnel\config and open application.properties on notepad as an administrator, uncomment server.port=50000 and change 50000 to the vacant port you found on step 5, as shown below
6. Save changes to application.properties, start the "CyberArk Privilege Cloud Secure Tunnel" Service and run the netstat command as detailed in step 5 on the new Secure Tunnel port to ensure that the secure tunnel service is listening on that port.
7. Run secure tunnel application and try to save configuration by clicking configure components, this should save without issues and secure tunnel should work without problems and upon testing sign-in to PVWA via LDAP and/or SAML, error 504 should no longer appear