Skip to main content
17-Peridot
August 24, 2021
Solved

Thingworx server not connecting

My thingworx instance was working fine. Suddenly now it shows

"Errors

503 Service Unavailable

Back to Composer". 
What to do now? 
17-Peridot
August 25, 2021

This error not occuring after installation. Thingworx was working fine for years, suddenly this error happened. Thanks for your help.

 

I cleared this error "12:13:21.173 [main] ERROR com.thingworx.system.configuration.PlatformSettings - Configuration setting ContentTypeSettings.supportedMediaEntityContentTypes cannot be null" in logs. Its working now. 
 
So i added this code in platform-settings.json.
"ContentTypeSettings": {
"supportedMediaEntityContentTypes":["image/svg+xml","image/png","image/gif","image/bmp","image/jpeg","application/pdf", "application/json", "image/vnd.microsoft.icon"]
}

 

6 replies

19-Tanzanite
August 24, 2021

Hi @AP_9587236 

 

You can check the Tomcat and ThingWorx log files to check for errors and possibly restart Tomcat

 

Hope this helps

Regards

Christophe

 

Translate
17-Peridot
August 24, 2021

Sorry this is not a accepted solution. By mistake i clicked the button. 

 

Btw @cmorfin , i tried restarting tomcat, cleared logs, updated chrome, restarted system, checked platform-setting file, cleared storage space in machine, no other apps are  running. But still thingworx server is not connecting but tomcat is working fine. 

 

I seen error in twdata of pgAdmin. I attached the image. Does that matters? 

 

And I can see these errors in Application logs:-

2021-08-24 15:40:30.229+0530 [L: ERROR] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: main] [message: Connections could not be acquired from the underlying database!]
2021-08-24 15:40:30.255+0530 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: main] [message: Unable to initialize and start system: Connections could not be acquired from the underlying database!]
2021-08-24 15:40:30.255+0530 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: main] *** CRITICAL ERROR ON STARTUP: Unable to initialize and start system: Connections could not be acquired from the underlying database!
2021-08-24 15:40:30.255+0530 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: main] *** Web Application STATE is being set to ERROR! ***

Translate
19-Tanzanite
August 24, 2021

Hi @AP_9587236 

 

Can you upload tomcat and ThingWorx log files ?

 

regards

Christophe

 

Translate