Article - CS381824
Data fails to be written to InfluxDB from ThingWorx Platform with error "The error occurred during writing of data" in the Apache Tomcat stdout log when using the Influx V2 Persistence Provider
Modified: 13-Dec-2023
Applies To
- ThingWorx Platform 9.3 F000 to SP5
Description
- There are large gaps in data written to InfluxDB (Influx) when using the Influx V2 Persistence Provider in ThingWorx Platform
- Edge data points are sent and received by ThingWorx correctly but ThingWorx does not successfully write these data points to Influx
- After configuring Influx2PersistenceProviderPackage, many data points not getting sent to Influx
- Influx2 Persistence Provider fails to send all data points to Influx
- Seeing the following within the Apache Tomcat stdout file:
-
SEVERE [RxNewThreadScheduler-224133] com.influxdb.client.write.events.WriteErrorEvent.logEvent The error occurred during writing of data com.influxdb.exceptions.InfluxException: interrupted at com.influxdb.client.internal.AbstractWriteClient.toInfluxException(AbstractWriteClient.java:552) at com.influxdb.client.internal.AbstractWriteClient.lambda$new$12(AbstractWriteClient.java:179) at io.reactivex.internal.subscribers.LambdaSubscriber.onNext(LambdaSubscriber.java:65) ... Caused by: java.io.InterruptedIOException: interrupted at okio.Timeout.throwIfReached(Timeout.kt:98) at okio.OutputStreamSink.write(JvmOkio.kt:50) at okio.AsyncTimeout$sink$1.write(AsyncTimeout.kt:103) ... -
WARNING com.influxdb.client.write.events.BackpressureEvent.logEvent Backpressure applied, try increase WriteOptions.bufferLimit
-
WARNING com.influxdb.client.internal.InfluxDBClientImpl.makeWriteApi There is already created 11 instances of 'WriteApi'. The 'WriteApi' is suppose to run as a singleton and should be reused across threads. Use 'WriteApiBlocking` if you would like to use one-time ingesting."
-
This is a printer-friendly version of Article 381824 and may be out of date. For the latest version click CS381824