Skip to main content
Oct 22, 2017 12:21 AM UTC
Question

Questions about platform-settings.json

If I start the Tomcat Server with Platform-settings.json defined below when I install Thingworx Core Platform, the database connection will be made without error and Thingworx Core Platform will start.

{

      "PersistenceProviderPackageConfigs": {

          "PostgresPersistenceProviderPackage": {

                                   "ConnectionInformation": {

                                        "jdbcUrl": "jdbc:postgresql://localhost:5432/thingworx",

                                        "password": "twadmin",

                                        "username": "twadmin"

                                    }

         }

      }

}

The Thingwox Core Platform service will not start if the following changes are made to the Application Logs: "[message: Connections could not be obtained from the underlying database!]".

I'd appreciate it if you let me know what the problem is.

{

     "PlatformSettingsConfig": {

           "BasicSettings": {

                   "BackupStorage": "C:\ThingworxBackupStorage",

                   "DatabaseLogRetentionPolicy": 7,

                   "EnableBackup": true,

                   "EnableHA": false,

                   "EnableSystemLogging": false,

                   "HTTPRequestHeaderMaxLength": 10000,

                   "HTTPRequestParameterMaxLength": 2000,

                   "InternalAesCryptographicKeyLength": 128,

                   "Storage": "C:\ThingworxStorage"

         }

   },

      "PersistenceProviderPackageConfigs": {

          "PostgresPersistenceProviderPackage": {

                                   "ConnectionInformation": {

                                        "jdbcUrl": "jdbc:postgresql://localhost:5432/thingworx",

                                        "password": "twadmin",

                                        "username": "twadmin"

                                    }

           }

      }

}

Regards

1 reply

Oct 26, 2017 1:15 PM UTC

Try placing “PlatformSettingsConfig” section below the DB setting.