技术文章 - CS381777

InfluxDB 持久性提供程序应支持 ThingWorx Platform 中的首次连接重试尝试

已修改: 18-Nov-2024   


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

适用于

  • ThingWorx Platform 9.3 to 9.6
  • InfluxDB

说明

  • ThingWorx 平台重启期间 InfluxDB (Influx) 持久化提供程序无法启动
    数据未写入 InfluxDB
  • 如果初始连接尝试失败,InfluxDB 持久性提供程序不会重试数据库连接
  • 其他持久性提供程序(例如 PostgresPersistenceProviderPackage)上存在的重试参数在 InfluxPersistenceProviderPackage 或 Influx2PersistenceProviderPackage 上不存在
  • Influx Persistence Provider > Configuration 选项卡缺少以下重试参数
    • 获取重试次数
    • 获取重试延迟
  • 以下错误之一记录在位于<ThingworxStorage>\logs的 ThingWorx 日志中
    • 应用程序日志
      •  [L: ERROR] [O: ctpiInfluxdb2DataExceptionTranslator] [I: ] [U: SuperUser] [S: ] [P: ] [T: ForkJoinPool-2-worker-51] runtime error @4:5-4:36: distinct: schema collision: cannot group float and boolean types together [L: ERROR] [O: ctsmBaseManager] [I: ] [U: SuperUser] [S: ] [P: ] [T: ForkJoinPool-2-worker-51] Unable To Initialize Entity <Influx Persistence Provider> in PersistenceProviders: runtime error @4:5-4:36: distinct: schema collision: cannot group float and boolean types together
      •  [L: ERROR] [O: ctpiInfluxdbDataExceptionTranslator] [I: ] [U: SuperUser] [S: ] [P: ] [T: ForkJoinPool-2-worker-45] java.net.SocketTimeoutException: Read timed out [L: ERROR] [O: ctsmBaseManager] [I: ] [U: SuperUser] [S: ] [P: ] [T: ForkJoinPool-2-worker-45] Unable To Initialize Entity <Influx Persistence Provider> in PersistenceProviders: java.net.SocketTimeoutException: Read timed out
      •  [L: ERROR] [O: EcqlcLogger] [I: ] [U: SuperUser] [S: ] [P: ] [T: ForkJoinPool-3-worker-3] java.net.SocketTimeoutException: timeout [L: ERROR] [O: EcqlcLogger] [I: ] [U: SuperUser] [S: ] [P: ] [T: ForkJoinPool-3-worker-3] Unable To Initialize Entity <Influx Persistence Provider> in PersistenceProviders: java.net.SocketTimeoutException: timeout
    • 错误日志
      •  [L: ERROR] [O: EcqlcLogger] [I: ] [U: SuperUser] [S: ] [P: ] [T: TWEventProcessor-12] [1,018] Data store unknown error: [Error occurred while accessing the data provider.] java.lang.NullPointerException: null at com.thingworx.persistence.influxdb.dao.InfluxdbValueStreamDao.getEntries(InfluxdbValueStreamDao.java:226) ... 45 common frames omitted Wrapped by: com.thingworx.common.exceptions.DataAccessException: [1,018] Data store unknown error: [Error occurred while accessing the data provider.] at com.thingworx.persistence.influxdb.InfluxdbDataExceptionTranslator.rethrowTranslated(InfluxdbDataExceptionTranslator.java:34) at com.thingworx.persistence.influxdb.dao.InfluxdbValueStreamDao.getEntries(InfluxdbValueStreamDao.java:239) at com.thingworx.persistence.influxdb.dataprovider.InfluxdbValueStreamDataProvider.queryValueCollections(InfluxdbValueStreamDataProvider.java:204) at com.thingworx.persistence.common.ValueStreamEngine.lambda$queryEntries$11(ValueStreamEngine.java:306) at com.thingworx.persistence.TransactionFactory.supplyInTransaction(TransactionFactory.java:182) ...
这是文章 381777 的 PDF 版本,可能已过期。最新版本 CS381777