InfluxDB Issue

I don't think it is something you can ignore.

Influxdb docs, max-values-per-tag-100000

What is your setup for influx? Are you also logging Location and Hub Properties? I am not seeing the error you're getting but I don't have the Location and Hub Properties logging ON. Maybe disable it as a test.

I set an environmental variable in my docker instance to set the number of tags to infinity. I am curious if that will work, after its run for a bit i'll check the logs. It's probably true that I don't need the location and hub properties.

The environmental Variable didn't work but turning off location and hub properties did. I also removed all of the devices that I am not currently graphing. I'll let it run overnight and see how things go.

1 Like

Things are still running ok, no errors in the logs.

I was really happy to see this exists! @potts.mike is the above code what you're still using? Did this end up in a repo somewhere?

Im getting the following error when trying to write to the database. Any help would b e appreciated.

[app:706](http://192.168.1.100/logs#app706)2019-07-11 05:18:05.325 pm [error](http://192.168.1.100/installedapp/configure/706)postToInfluxDB(): Something went wrong! Response from InfluxDB: Status: 401, Headers: [X-Request-Id:c24e0b93-a429-11e9-83e0-00155d019501, X-Influxdb-Build:OSS, Www-Authenticate:Basic realm="InfluxDB", X-Influxdb-Version:1.7.7, Content-Length:55, Request-Id:c24e0b93-a429-11e9-83e0-00155d019501, Date:Thu, 11 Jul 2019 22:18:07 GMT, Content-Type:application/json], Data: null

[app:706](http://192.168.1.100/logs#app706)2019-07-11 05:18:05.292 pm [info](http://192.168.1.100/installedapp/configure/706)postToInfluxDB(): Posting data to InfluxDB: Host: 192.168.1.250, Port: 8086, Database: Hubitat, Data: [lock,deviceId=922,deviceName=Treehouse\ Deadbolt,groupId=null,groupName=Home,hubId=1,hubName=90:0E:B3:05:57:4E,locationId=1,locationName=[XXX],unit=lock value="unlocked",valueBinary=0i]

[app:706](http://192.168.1.100/logs#app706)2019-07-11 05:18:05.282 pm [info](http://192.168.1.100/installedapp/configure/706)handleEvent(): Treehouse Deadbolt(lock:null) unlocked

[app:706](http://192.168.1.100/logs#app706)2019-07-11 05:18:05.281 pm [info](http://192.168.1.100/installedapp/configure/706)softPoll(): Softpolling device Treehouse Deadbolt for attribute: lock

Are you using the code from the Hubitat Community repository?

@ogiewon Yes, I am. It looks like it doesn't support basic auth...

I don’t use authentication on my local InfluxDB server. So I have never tested that feature.

1 Like

Ok so is that just removing basic auth from the conf file?

Sorry, it’s been months since I set up InfluxDB. I haven’t had a need to tweak it at all.

Ok, I'll look into it. at least now I have a direction to start into

1 Like

@ogiewon Turning off auth in the conf file fixed my issue. Thanks!!

1 Like

Awesome! Have fun!

1 Like

Awesome! Looks like I'm late to the Hubitat party... :wink:

3 Likes

Welcome @codersaur! Better late than never! You may want to check out InfluxDB data logging via NodeRed + Hubitat WebSockets. It seems to reduce the workload on the Hubitat hub.

2 Likes

This newer version of influxDB logger is crashing the hub. Has happened 3 times now. Do you have a copy of the previous version?

You can download all of the various versions from GitHub.

Try this link...

Hi

Newbie here to HE, just switched from ST. I get an error when trying to record logs to my local influxdb

postToInfluxDB(): Something went wrong! Response from InfluxDB: Status: 408, Headers: null, Data: null

The same setup was used for my previous ST, just added a new db with name 'Hubitat'.

Any help appreciated

SOLVED : By re-installing the app | no other change, i have no idea what might have caused the problem but everything is logged as it should*