アーティクル - CS334229
ThingWorx Platform で InfluxDB Persistence Provider を作成、更新、または利用しようとすると、「Wrapped by: java.net.SocketTimeoutException: timeout」が表示される
修正日: 29-Feb-2024
適用対象
- ThingWorx Platform 8.5 to 9.5
- InfluxDB
説明
- InfluxDBからのバリュー ストリームデータのデータ エクスポートが機能しない
- 数百万行のバリュー ストリームがInfluxDBからエクスポートできない
- リモートInflux Persistence Providerに対して実行されている一部またはすべての操作がタイムアウトになる
- Influx Persistence ProviderのInfluxDB タイムアウトを調整する方法
- Influx Persistence Providerのタイムアウトを設定できますか?
- InfluxDBに対して操作を実行しようとしましたが、常にタイムアウト エラーが発生しました
- InfluxDB からのタイムアウト エラーにより、ThingWorx プラットフォームが使用不能になります
- 一部の永続プロバイダーでは、プロパティの更新が 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 には、エラー スタック トレースが有効になっている場合に次のことが表示されます。
- InfluxPersistenceProviderパッケージ
... 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.rethrowTranslated(InfluxdbDataExceptionTranslator.java:30)
at com.thingworx.persistence.influx.dao.InfluxStreamDao.delete(InfluxStreamDao.java:389)
at com.thingworx.persistence.influx.dao.InfluxStreamDao.deleteEntryIfUpdateRequired(InfluxStreamDao.java:465)
...- Influx2PersistenceProviderパッケージ
[L: ERROR] [O: E.c.t.p.i.Influxdb2DataExceptionTranslator] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-5] Read timed out [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-5] [2,006] Unknown error occurred. Contact the administrator if this re-occurs. java.net.SocketTimeoutException: Read timed out at java.base/java.net.SocketInputStream.socketRead0(Native Method) at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115) at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168) ... Wrapped by: com.influxdb.exceptions.InfluxException: Read timed out at com.influxdb.internal.AbstractQueryApi.lambda$static$1(AbstractQueryApi.java:88) at com.influxdb.internal.AbstractRestClient.catchOrPropagateException(AbstractRestClient.java:142) at com.influxdb.internal.AbstractQueryApi.query(AbstractQueryApi.java:240) ... Wrapped by: com.thingworx.common.exceptions.DataAccessException: [2,006] Unknown error occurred. Contact the administrator if this re-occurs. at com.thingworx.persistence.influxdb2.Influxdb2DataExceptionTranslator.rethrowTranslated(Influxdb2DataExceptionTranslator.java:34) at com.thingworx.persistence.influxdb2.Influxdb2Datasource.checkInfluxdbConnection(Influxdb2Datasource.java:375) at com.thingworx.persistence.influxdb2.Influxdb2Datasource.testConnectivity(Influxdb2Datasource.java:177) ... [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-5] *** Unable to connect to the PersistenceProvider: <Influx2 Persistence Provider Name> ***. [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-5] Unable to process import: Unable to update PersistenceProvider: Unable to connect to the PersistenceProvider: <Influx2 Persistence Provider Name> [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-5] Import Failed: Unable to update PersistenceProvider: Unable to connect to the PersistenceProvider: <Influx2 Persistence Provider Name> java.lang.Exception: Unable to connect to the PersistenceProvider: <Influx2 Persistence Provider Name> at com.thingworx.persistence.provider.PersistenceProviderManager.handleUpdateEntity(PersistenceProviderManager.java:297) ... 55 common frames omitted Wrapped by: java.lang.Exception: Unable to update PersistenceProvider: Unable to connect to the PersistenceProvider: <Influx2 Persistence Provider Name> at com.thingworx.persistence.provider.PersistenceProviderManager.handleUpdateEntity(PersistenceProviderManager.java:300) at com.thingworx.system.managers.BaseManager.updateEntity(BaseManager.java:772) at com.thingworx.system.managers.BaseManager.updateEntity(BaseManager.java:666) ... Wrapped by: java.lang.Exception: Import Failed: Unable to update PersistenceProvider: Unable to connect to the PersistenceProvider: <Influx2 Persistence Provider Name> at com.thingworx.contentmanagement.ImportProcessorWorker.run(ImportProcessorWorker.java:373) at com.thingworx.contentmanagement.ImportProcessor.processImport(ImportProcessor.java:80) at com.thingworx.webservices.BaseService.handleUpdate(BaseService.java:1053) ...
最新バージョンはこちらを参照ください CS334229