Article - CS235937

ThingWorx fails to start with "Connections could not be acquired from the underlying database" error logged in the ApplicationLog.log

Modified: 24-Feb-2025   


Applies To

  • ThingWorx Platform 8.0 to 9.7
  • PostgreSQL

Description

  • Following upgrade, ThingWorx fails to start
  • ThingWorx not starting with 502 Bad Gateway error displayed on browser
  • ThingWorx fails to start after installation with empty page in browser
  • Errors logged in \ThingworxStorage\logs\ApplicationLog.log:
[L: INFO] [O: c.t.p.p.PersistenceProvider] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Connection ThingworxPersistenceProvider, type PostgresPersistenceProviderPackage stopped
[L: WARN] [O: c.t.p.p.PersistenceProvider] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Could not find persistenceProviderPackage PostgresPersistenceProviderPackage and thus could not stop data processing
[L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [message: Unable to initialize and start system: Connections could not be acquired from the underlying database!]
[L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] *** Web Application STATE is being set to ERROR! ***
  • licenseRequestFile.txt not created in \ThingworxPlatform folder
  • Following error logged in <tomcat_home>\logs\catalina.log:
java.io.IOException: error trying to initialize Platform storage [setting: /ThingworxStorage/database]
This is a printer-friendly version of Article 235937 and may be out of date. For the latest version click CS235937