Article - CS339783

Error occurred while accessing the data provider while using InFluxDB as persistence provider in ThingWorx Platform

Modified: 26-Feb-2021   


Applies To

  • ThingWorx Platform 8.5

Description

  • Unable to add entries to the Stream which has InFluxDB as the persistence provider
  • Following errors are observed in Error.log after enabling the stacktrace 
[L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: SuperUser] [S: ] [P: ] [T: pool-49-thread-1] [2,000] Error occurred while accessing the data provider. org.influxdb.InfluxDBException$DatabaseNotFoundException: database not found: "thingworx"              at org.influxdb.InfluxDBException.buildExceptionFromErrorMessage(InfluxDBException.java:138)            at org.influxdb.InfluxDBException.buildExceptionForErrorState(InfluxDBException.java:188)

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.influxdb.dao.InfluxdbStreamDao.save(InfluxdbStreamDao.java:110)
This is a printer-friendly version of Article 339783 and may be out of date. For the latest version click CS339783