技术文章 - CS308548
升级带有 PostgreSQL 的 ThingWorx Platform 后,无法启动并出现错误“重复键值违反唯一约束”
已修改: 06-Nov-2023
适用于
- 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 Platform 不会启动,并在<Tomcat_home>/logs/catalina.out中出现错误:
java.lang.Exception: Unable to initialize and start system: Could not create a transaction for ThingworxPersistenceProvider
- ThingWorx 升级后因数据库错误而关闭
- 就地升级无法启动 ThingWorx
- 升级并启动 tomcat,我们收到错误,Thingworx Platform 无法启动。
这是文章 308548 的 PDF 版本,可能已过期。最新版本 CS308548