技术文章 - CS308548

升级后,使用 PostgreSQL 的 ThingWorx 平台启动失败,并出现错误“重复键值违反唯一约束”。

已修改: 10-Jun-2026   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • 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