Thingworx Platform-settings.json文件未连接到Azure数据库

时间:2018-07-02 07:19:03

标签: azure thingworx azure-postgresql

我正在尝试将Thingworx 7.1连接到Azure Postgresql数据库。

我已经成功地将Thingworx Things指向了Azure数据库,没有任何错误。

但是当我尝试在platform-settings文件中设置数据库url指向azure数据库时,出现以下错误:

java.lang.Exception: Unable to initialize and start system: Connections could not be acquired from the underlying database!
    at com.thingworx.system.ThingWorxServer.loadModel(ThingWorxServer.java:448)
    at com.thingworx.system.ThingWorxServer.doHA(ThingWorxServer.java:181)
    at com.thingworx.system.ThingWorxBootstrapper.contextInitialized(ThingWorxBootstrapper.java:124)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4811)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
  *** CRITICAL ERROR ON STARTUP: Unable to initialize and start system: Connections could not be acquired from the underlying database!
  *** Web Application STATE is being set to ERROR! ***

1 个答案:

答案 0 :(得分:0)

确保platform-settings.json中没有错误或拼写错误,并且您能够从ThingWorx服务器/计算机远程登录数据库主机和端口以测试连接是否正常。