Article - CS337014
Error "502 Bad Gateway", ThingWorx Platform will not start after installing ThingWorx Flow
Modified: 26-Feb-2024
Applies To
- ThingWorx Platform 9.0 to 9.3
Description
- ThingWorx stopped working and is giving 502-Bad Gateway error after Flow successful installation
- ThingWorx Flow cannot be accessed after installation
- encrypt.queue.password is not present in the ThingWorx Platform KeyStore and thus ThingWorx will not start
- Flowkeys.tar was generated even though ThingWorx Flow and ThingWorx Platform are on the same host
- ThingWorx Flow installed on the same host as ThingWorx Platform but the installer does not seem to find the installation per the ThingWorx Flow installation log:
- <Path to Flow Installer Temp directory>\.ptc_ccif\ThingWorxFoundation.xml does not exist
- Unable to install ThingWorx extensions which require ThingWorx Flow
- Error is observed in the <ThingworxStorage>\logs\ErrorLog.log file after the import fails:
Exception: java.io.UncheckedIOException: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile
- In C:\Program Files\nginx<version>\logs\error.log, error can be seen:
[error] 3312#3428: *8 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: <ip_address>, server: <hostname>, request: "GET /Thingworx HTTP/1.1", upstream: "https://<ip_address>:<port>/Thingworx", host: "<hostname>:<Flow_port>"
- Apache Tomcat logs located at <tomcat_home>\logs show errors:
ERROR in ch.qos.logback.core.joran.spi.Interpreter@3:88 - RuntimeException in Action for tag [contextListener] com.thingworx.exceptions.ConfigurationException: java.lang.Exception: No Queue password specified.
at com.thingworx.exceptions.ConfigurationException: java.lang.Exception: No Queue password specified.
at at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:3053)
at at com.thingworx.logging.LogbackUtilities.loadLogbackConfiguration(LogbackUtilities.java:54)
at at com.thingworx.logging.LogUtilities.initializeLoggerContext(LogUtilities.java:440)
at at com.thingworx.logging.LogbackCustomLoggerContextListener.start(LogbackCustomLoggerContextListener.java:23)
at at ch.qos.logback.classic.joran.action.LoggerContextListenerAction.end(LoggerContextListenerAction.java:70)
at at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:3053)
at at com.thingworx.logging.LogbackUtilities.loadLogbackConfiguration(LogbackUtilities.java:54)
at at com.thingworx.logging.LogUtilities.initializeLoggerContext(LogUtilities.java:440)
at at com.thingworx.logging.LogbackCustomLoggerContextListener.start(LogbackCustomLoggerContextListener.java:23)
at at ch.qos.logback.classic.joran.action.LoggerContextListenerAction.end(LoggerContextListenerAction.java:70)
- In the installation log of ThingWorx Flow, the following message is observed:
C:\Users\Administrator\.ptc_ccif\ThingWorxFoundation.xml does not exist
This is a printer-friendly version of Article 337014 and may be out of date. For the latest version click CS337014