TWX platform installation problem (TWX 9.4.0/ Ubuntu/ MSSQL) => Tomcat fails to start after setup
Hi,
for a test system we are trying a setup of the ThingWorx platform with a MSSQL database:
TWX: 9.4.0 on Ubuntu 22.04, 5.15.0 kernel, Tomcat 9.0.58, installed from
MED-61212-CD-094_F000_ThingWorx-Platform-Mssql-9-4-0.zip
MSSQL: 15.0.4298 (development licence) on Arch Linux, 6.3.3 kernel
While starting tomcat an exception is thrown and thus TWX does not start:
Mai 26 11:25:13 ubuntu-22-04 tomcat9[104372]: Deploying web application archive [/var/lib/tomcat9/webapps/Thingworx.war]
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: 11:25:20,473 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: 11:25:20,473 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/var/lib/tomcat9/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-9.4.0-b49.jar!/logback.xml]
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: 11:25:20,488 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@7a8f22d6 - URL [jar:file:/var/lib/tomcat9/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-9.4.0-b49.jar!/logback.xml] is not of type file
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: 11:25:20,522 |-INFO in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Adding LoggerContextListener of type [com.thingworx.logging.LogbackCustomLoggerContextListener] to the object stack
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: 11:25:20,473 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: 11:25:20,473 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/var/lib/tomcat9/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-9.4.0-b49.jar!/logback.xml]
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: 11:25:20,488 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@7a8f22d6 - URL [jar:file:/var/lib/tomcat9/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-9.4.0-b49.jar!/logback.xml] is not of type file
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: 11:25:20,522 |-INFO in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Adding LoggerContextListener of type [com.thingworx.logging.LogbackCustomLoggerContextListener] to the object stack
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: 11:25:20,976 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@3:88 - RuntimeException in Action for tag [contextListener] com.thingworx.exceptions.ConfigurationException: java.io.IOException: error trying to initialize Platform storage [setting: /ThingworxStorage/database]
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at com.thingworx.exceptions.ConfigurationException: java.io.IOException: error trying to initialize Platform storage [setting: /ThingworxStorage/database]
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at com.thingworx.system.configuration.PlatformSettings.getInstance(PlatformSettings.java:3640)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at com.thingworx.logging.LogbackUtilities.loadLogbackConfiguration(LogbackUtilities.java:54)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at com.thingworx.logging.LogUtilities.initializeLoggerContext(LogUtilities.java:440)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at com.thingworx.logging.LogbackCustomLoggerContextListener.start(LogbackCustomLoggerContextListener.java:23)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.classic.joran.action.LoggerContextListenerAction.end(LoggerContextListenerAction.java:70)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:64)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:134)
Mai 26 11:25:20 ubuntu-22-04 tomcat9[104372]: at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
The /ThingworxStorage directory exists and has tomcat:tomcat permissions:
drwxrwxr-x 2 tomcat tomcat 4096 Mai 23 16:25 ThingworxBackupStorage
drwxrwxr-x 2 tomcat tomcat 4096 Mai 23 16:43 ThingworxPlatform
drwxrwxr-x 2 tomcat tomcat 4096 Mai 25 13:38 ThingworxStorage
On the ThingWorx server the platform settings were done and tomcat did run before TWX was added. The TWX installation itself was undergone up to topic #14 (https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Installation/Installation/install_java_and_apache_tomcat__ubuntu_.html#wwID0EIWQR), which fails (as described above).
The MSSQL-database is running and can be accessed locally and remotely with Linux- and Windows-clients. The database-structures were initialized and do exist now:
./thingworxMssqlDBSetup.sh -h mssql.kuraray.vm -r '<vdlv>'
./thingworxMssqlSchemaSetup.sh -h mssql.kuraray.vm -r '<vdlv>'
Any hints what to fix to get TWX up and running?
Kind regards
Arndt

