Skip to main content
Delphix

Delphix Reporting Web Interface Reports "502 Bad Gateway" nginx Message Following Restart (KBA8776)

 

KBA

KBA# 8776

 

Issue

Following a restart of Collector service or Reporting VM restart, the web interface presents a "502 Bad Gateway" message from nginx.  This problem persists through additional reboots.

 

Applicable Delphix Reporting Versions

Click here to view the versions of Delphix Reporting to which this article applies
Major Release All Sub Releases
2.0 2.0.0.0, 2.0.1.0

1.5

1.5.0.0

Troubleshooting

Reviewing details of the Delphix Reporting services, webapp and collector services are down and may not successfully restart.

# service delphix-collector status
delphix-collector is not running

# service delphix-webapp status
delphix-webapp is not running

Reviewing the Delphix Collector log, the last line logged indicates:

WARN  com.delphix.cm.LiveEngineCollector - Failed to register SSL Connection Socket Factory: java.io.FileNotFoundException: exit (No such file or directory)

The Reporting server has been configured for HTTPS communication with the Delphix Engine(s). This is confirmed using the delphix-https-config utility.

# delphix-https-config
Welcome to Delphix Reporting HttpsConfig util.
Available commands:
ls <setting>
update <setting>
exit

Available settings:
useHttps
allowSelfSignedCertificates
trustStorePath
trustStorePassword

> ls useHttps
useHttps=true

Resolution

This issue occurs when the Delphix Collector service fails to load the configured truststore. This may be the result of filesystem changes, or an errant trustStorePath configuration is applied in the delphix-https-config utility.

After locating the message referenced above in collector.log, check and confirm the current trustStorePath value.  

In the first example, the configured truststore path does not exist.

# delphix-https-config
Welcome to Delphix Reporting HttpsConfig util.
Available commands:
ls <setting>
update <setting>
exit

Available settings:
useHttps
allowSelfSignedCertificates
trustStorePath
trustStorePassword

> ls trustStorePath
trustStorePath=/var/delphix/dlpx.truststore
# ls /var/delphix/dlpx.truststore
ls: cannot access /var/delphix/dlpx.truststore: No such file or directory

In the 2nd example, the truststore path is misconfigured. This illustrates an accidental command execution, and the admin attempted to exit the utility improperly.  The failure condition would not be visible until the next Collector service restart.

# delphix-https-config
Welcome to Delphix Reporting HttpsConfig util.
Available commands:
ls <setting>
update <setting>
exit

Available settings:
useHttps
allowSelfSignedCertificates
trustStorePath
trustStorePassword

> ls trustStorePath
trustStorePath=exit

 

 


Related Articles

The following articles may provide more information or related information to this article: