技术文章 - CS308548

升级带有 PostgreSQL 的 ThingWorx Platform 后,无法启动并出现错误“重复键值违反唯一约束”

已修改: 06-Nov-2023   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, 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 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