技术文章 - CS308548
升级后,使用 PostgreSQL 的 ThingWorx 平台启动失败,并出现错误“重复键值违反唯一约束”。
已修改: 10-Jun-2026
适用于
- ThingWorx Platform 8.2 to 9.3
- PostgreSQL
说明
- 升级后,ThingWorx 启动失败,错误日志记录在<ThingworxStorage>/logs/ApplicationLog.log中:
ERROR: duplicate key value violates unique constraint "root_entity_collection_pkey"_ Detail: Key (name)=(StyleThemes) already exists ERROR: duplicate key value violates unique constraint "root_entity_collection_pkey"_ Detail: Key (name)=(NotificationDefinitions) already exists ERROR: duplicate key value violates unique constraint "root_entity_collection_pkey"_ Detail: Key (name)=(NotificationContents) already exists ERROR: duplicate key value violates unique constraint "root_entity_collection_pkey"_ Detail: Key (name)=(ThingGroups) already exists.
- 升级后,URL无法访问,并出现与数据库相关的错误。
- 升级后,ThingWorx平台无法启动,错误信息位于<tomcat_home>/logs/catalina.out :
java.lang.Exception: Unable to initialize and start system: Could not create a transaction for ThingworxPersistenceProvider
- ThingWorx升级后因数据库错误而关闭
- 就地升级无法启动 ThingWorx
这是文章 308548 的 PDF 版本,可能已过期。最新版本 CS308548