技术文章 - CS357876
首次尝试启动 Apache Tomcat 时,ThingWorx Platform PostgreSQL 安装程序失败,并显示“无法从底层数据库获取连接”
已修改: 30-Dec-2025
适用于
- ThingWorx Platform 8.5 to 9.6
- PostgreSQL
说明
- ThingWorx Platform PostgreSQL 安装程序验证数据库连接,但在安装后无法启动
- 由于 PostgreSQL 数据库连接问题,ThingWorx Platform 安装程序无法完成,但安装过程中已验证连接
- ThingWorx Platform 数据库表已成功创建,但安装程序因数据库连接错误而无法启动 ThingWorx Platform
- ThingWorx 平台安装程序成功连接到数据库,绕过数据库连接详细信息对话框,但在安装过程结束时失败
- 即使连接有效且已创建数据库表,ThingWorx 平台也不会开始引用数据库连接错误
- 在命令提示符或终端中通过psql连接到数据库有效,但 ThingWorx 平台仍然无法完成安装并出现数据库连接错误
- PostgreSQL 数据库与 ThingWorx Platform 安装在同一主机上,连接似乎是从不同的 IP 地址(环回、非环回)建立的,具体取决于连接的创建位置
- ThingWorx 平台安装程序在
Waiting for ThingWorx Foundation..处挂起。 - ThingWorx 平台安装超时,等待 ThingWorx 可访问
- <Temp>\ThingWorxFoundation_Failed_installs\ThingWorxFoundation_install.log显示以下内容:
Wait 560s for /\[[^\]]+Thingworx.war\][^\n]*\[[^\]]+\]/ in "<ThingWorx Install>tomcat\current\logs\thingworx-foundation-stderr.2021-11-17.log" waiting 5s ... "" found in "<ThingWorx Install>tomcat\current\logs\thingworx-foundation-stderr.<Date>.log" Step twxIsRunning script failed :: 0
- <Temp>/ThingWorxFoundation_Failed_installs/foundation_platform/ApplicationLog.log显示以下内容:
[L: WARN] [O: c.m.v.r.BasicResourcePool] [I: ] [U: ] [S: ] [P: ] [T: C3P0PooledConnectionPoolManager[identityToken->zp0w2ealdavx1z1t5ntn2|402a0031]-HelperThread-#0] com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@7b569be1 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (3). Last acquisition attempt exception: [L: WARN] [O: c.m.v.r.BasicResourcePool] [I: ] [U: ] [S: ] [P: ] [T: C3P0PooledConnectionPoolManager[identityToken->zp0w2ealdavx1z1t5ntn2|402a0031]-HelperThread-#0] Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@24fec6d9 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests. [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] *** CRITICAL ERROR ON STARTUP: Connections could not be acquired from the underlying database! [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] *** Web Application STATE is being set to ERROR! *** [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] >>>>>>> PLATFORM SHUTDOWN START <<<<<<<<<
这是文章 357876 的 PDF 版本,可能已过期。最新版本 CS357876