Article - CS299852

Unable to restart the platform docker containers created with the ThingWorx Dockerfiles installer

Modified: 28-Jun-2022   


Applies To

  • ThingWorx Platform 8.3 SP3 to 9.3

Description

  • Unable to restart a platform docker container created with the ThingWorx Dockerfiles installer when ThingworxStorageThingworxPlatform and ThingworxBackupStorage are not stored in mounted volumes
  • Docker container for ThingWorx is unable to start up after it is stopped
  • After the container stops, it has to be rebuilt in order to get ThingWorx running again
  • Cannot start container after a crash
  • Using docker start after running docker stop results in error
  • Container fails to start when using the following docker commands :
    • docker stop <container> + docker start <container>
    • docker restart <container>
    • docker-compose -f <docker-compose>.yml restart
    • docker-compose -f <docker-compose>.yml stop
  • Error message in the container's logs (docker-compose -f <docker-compose>.yml logs -f) :
Generating configuration files with template-processor
Running command with config:
Config(SimpleConfigObject({"sources":{"scripts":[]},"template-file":"/@var_dirs@/THINGWORX_PLATFORM_SETTINGS/platform-settings-overrides-base.json.j2","type":"process-template"}))
No output file name provided. Detected .j2 template. Using /@var_dirs@/THINGWORX_PLATFORM_SETTINGS/platform-settings-overrides-base.json as output
Exception in thread "main" java.lang.IllegalArgumentException: Input template file /@var_dirs@/THINGWORX_PLATFORM_SETTINGS/platform-settings-overrides-base.json.j2 does not exist. Exiting.
    at com.thingworx.docker.templateprocessor.ProcessTemplateCommand.run(ProcessTemplateCommand.java:82)
    at com.thingworx.docker.templateprocessor.RunCommandsCommand.run(RunCommandsCommand.java:31)
    at com.thingworx.docker.templateprocessor.TemplateProcessor.run(TemplateProcessor.java:44)
    at com.thingworx.docker.templateprocessor.TemplateProcessor.main(TemplateProcessor.java:58)

 

  • Error using MSSQL in release 9.2+
MSSQL is ready
+ /usr/local/bin/db-setup.sh
Checking for database user twadmin...
twadmin                                                                                                                         
User twadmin already exists.
twschema                                                                                                                        
/usr/local/bin/db-setup.sh: line 38: Msg 208, Level 16, State 1, Server 3a14ff75908b, Line 1
Invalid object name 'system_version'.: syntax error in expression (error token is "208, Level 16, State 1, Server 3a14ff75908b, Line 1
Invalid object name 'system_version'.")
Database schema detected, current schema verison is Msg 208, Level 16, State 1, Server 3a14ff75908b, Line 1
Invalid object name 'system_version'..Msg 208, Level 16, State 1, Server 3a14ff75908b, Line 1
Invalid object name 'system_version'.

 

This is a printer-friendly version of Article 299852 and may be out of date. For the latest version click CS299852