技术文章 - CS334229
尝试在 ThingWorx Platform 中创建、更新或使用 InfluxDB 持久性提供程序时,会看到“Wrapped by: java.net.SocketTimeoutException: timeout”
已修改: 29-Feb-2024
适用于
- ThingWorx Platform 8.5 to 9.5
- InfluxDB
说明
- 从InfluxDB导出Value Stream数据不起作用
- 具有数百万行的Value Stream无法从InfluxDB导出
- 对远程Influx 持久性提供程序执行的部分或全部操作超时
- 如何调整Influx 持久性提供程序的InfluxDB 超时
- Influx Persistence Provider可以设置超时吗?
- 尝试对InfluxDB执行操作但不断出现超时错误
- InfluxDB 中的超时错误导致 ThingWorx Platform 无法使用
- 对于某些持久性提供程序,属性更新未成功写入 Influx
- 在价值流上设置时,基于Influx2PersistenceProviderPackage 的持久性提供程序无法按预期工作
- InfluxPersistenceProviderPackage不提供任何配置读取或写入超时的功能
- 将持久性提供程序从 ThingworxPersistenceProvider 更改为 InfluxPersistenceProvider 时出现问题
- 无法从InfluxDB导出大型价值流,并出现错误:
com.thingworx.common.exceptions.DataAccessException in ThingWorx
- 尝试在 ThingWorx Platform 中保存Influx2PersistenceProviderPackage时看到以下内容:
Unable to update PersistenceProvider: Unable to connect to the PersistenceProvider: <Influxv2 Persistence Provider Name>
- <ThingworxStorage>\logs\ApplicationLog.log在更新由Influx Persistence Provider支持的价值流时显示以下内容之一:
Error exporting entries in: ValueStream <Value Stream>: com.thingworx.common.exceptions.DataAccessException: [2,000] Error occurred while accessing the data provider. Unable to delete entry for id:<ID> update due to [2,000] Error occurred while accessing the data provider.
- <ThingworxStorage>\logs\ErrorLog.log在启用错误堆栈跟踪的情况下显示以下内容
- InfluxPersistenceProviderPackage
... Wrapped by: org.influxdb.InfluxDBIOException: java.net.SocketTimeoutException: Read timed out ...
[message: [2,000] Error occurred while accessing the data provider.] java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:204)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at okio.Okio$2.read(Okio.java:140)
...
Wrapped by: java.net.SocketTimeoutException: timeout
at okio.Okio$4.newTimeoutException(Okio.java:232)
at okio.AsyncTimeout.exit(AsyncTimeout.java:286)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:241)
...
Wrapped by: org.influxdb.InfluxDBIOException: java.net.SocketTimeoutException: timeout
at org.influxdb.impl.InfluxDBImpl.execute(InfluxDBImpl.java:812)
at org.influxdb.impl.InfluxDBImpl.executeQuery(InfluxDBImpl.java:795)
at org.influxdb.impl.InfluxDBImpl.query(InfluxDBImpl.java:552)
...
Wrapped by: com.thingworx.common.exceptions.DataAccessException: [2,000] Error occurred while accessing the data provider.
at com.thingworx.persistence.influxdb.InfluxdbDataExceptionTranslator.rethr
这是文章 334229 的 PDF 版本,可能已过期。最新版本 CS334229