I am trying to use the influxdb-python lib which I found here. But I cant even get the tutorial programm to work.
When I run the following example code:
$ python
>>> from influxdb import InfluxDBClient
>>> json_body = [
{
"measurement": "cpu_load_short",
"tags": {
"host": "server01",
"region": "us-west"
},
"time": "2009-11-10T23:00:00Z",
"fields": {
"value": 0.64
}
}
]
>>> client = InfluxDBClient('localhost', 8086, 'root', 'root', 'example')
>>> client.create_database('example')
I get this error message with the last line:
>>> client.create_database('example')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/influxdb/client.py", line 318, in create_database
status_code=201
File "/usr/lib/python2.7/dist-packages/influxdb/client.py", line 124, in request
raise InfluxDBClientError(response.content, response.status_code)
influxdb.client.InfluxDBClientError: 404: 404 page not found
My installed version:
pi@raspberrypi:~ $ influx
Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.
Connected to http://localhost:8086 version 0.9.6.1
InfluxDB shell 0.9.6.1
It would be really nice if somebody can point me to my probleme here.
UPDATE
Maybe this is helpful. I am on a Raspberry Pi 3 with Jessie and installed influxdb with this tuturial link
UPDATE 2
if I run curl http://localhost:8086 I also get 404 page not found. On the Port 8083 i get a response.