@katy, @Giovanni_Luisotto
Here is the output I receive when I start the database with “influxd”.
Sorry for the enormous code block. I don’t know which bits might be useful, so I don’t want to leave anything out.
As you can see in the first line, it is indeed v1.7.9.
root@mqttServer:~# influxd
[removed InfluxDB ascii art]
[links broken up to allow posting]
2019-12-07T12:44:53.025847Z info InfluxDB starting {“log_id”: “0J_66LdG000”, “version”: “1.7.9”, “branch”: “1.7”, “commit”: “23bc63d43a8dc05f53afa46e3526ebb5578f3d88”}
2019-12-07T12:44:53.025874Z info Go runtime {“log_id”: “0J_66LdG000”, “version”: “go1.12.6”, “maxprocs”: 4}
2019-12-07T12:44:53.126830Z info Using data dir {“log_id”: “0J_66LdG000”, “service”: “store”, “path”: “/var/lib/influxdb/data”}
2019-12-07T12:44:53.126903Z info Compaction settings {“log_id”: “0J_66LdG000”, “service”: “store”, “max_concurrent_compactions”: 2, “throughput_bytes_per_second”: 50331648, “throughput_bytes_per_second_burst”: 50331648}
2019-12-07T12:44:53.126941Z info Open store (start) {“log_id”: “0J_66LdG000”, “service”: “store”, “trace_id”: “0J_66M1W001”, “op_name”: “tsdb_open”, “op_event”: “start”}
2019-12-07T12:44:53.129578Z info Reading file {“log_id”: “0J_66LdG000”, “engine”: “tsm1”, “service”: “cacheloader”, “path”: “/var/lib/influxdb/wal/_internal/monitor/2/_00001.wal”, “size”: 41009}
2019-12-07T12:44:53.129652Z info Reading file {“log_id”: “0J_66LdG000”, “engine”: “tsm1”, “service”: “cacheloader”, “path”: “/var/lib/influxdb/wal/_internal/monitor/1/_00001.wal”, “size”: 1751873}
2019-12-07T12:44:53.156710Z info Opened shard {“log_id”: “0J_66LdG000”, “service”: “store”, “trace_id”: “0J_66M1W001”, “op_name”: “tsdb_open”, “index_version”: “inmem”, “path”: “/var/lib/influxdb/data/_internal/monitor/2”, “duration”: “28.038ms”}
2019-12-07T12:44:53.252001Z info Opened shard {“log_id”: “0J_66LdG000”, “service”: “store”, “trace_id”: “0J_66M1W001”, “op_name”: “tsdb_open”, “index_version”: “inmem”, “path”: “/var/lib/influxdb/data/_internal/monitor/1”, “duration”: “123.267ms”}
2019-12-07T12:44:53.252116Z info Open store (end) {“log_id”: “0J_66LdG000”, “service”: “store”, “trace_id”: “0J_66M1W001”, “op_name”: “tsdb_open”, “op_event”: “end”, “op_elapsed”: “125.179ms”}
2019-12-07T12:44:53.252173Z info Opened service {“log_id”: “0J_66LdG000”, “service”: “subscriber”}
2019-12-07T12:44:53.252195Z info Starting monitor service {“log_id”: “0J_66LdG000”, “service”: “monitor”}
2019-12-07T12:44:53.252214Z info Registered diagnostics client {“log_id”: “0J_66LdG000”, “service”: “monitor”, “name”: “build”}
2019-12-07T12:44:53.252233Z info Registered diagnostics client {“log_id”: “0J_66LdG000”, “service”: “monitor”, “name”: “runtime”}
2019-12-07T12:44:53.252251Z info Registered diagnostics client {“log_id”: “0J_66LdG000”, “service”: “monitor”, “name”: “network”}
2019-12-07T12:44:53.252279Z info Registered diagnostics client {“log_id”: “0J_66LdG000”, “service”: “monitor”, “name”: “system”}
2019-12-07T12:44:53.252319Z info Starting precreation service {“log_id”: “0J_66LdG000”, “service”: “shard-precreation”, “check_interval”: “10m”, “advance_period”: “30m”}
2019-12-07T12:44:53.252342Z info Starting snapshot service {“log_id”: “0J_66LdG000”, “service”: “snapshot”}
2019-12-07T12:44:53.252362Z info Starting continuous query service {“log_id”: “0J_66LdG000”, “service”: “continuous_querier”}
2019-12-07T12:44:53.252384Z info Starting HTTP service {“log_id”: “0J_66LdG000”, “service”: “httpd”, “authentication”: false}
2019-12-07T12:44:53.252403Z info opened HTTP access log {“log_id”: “0J_66LdG000”, “service”: “httpd”, “path”: “stderr”}
2019-12-07T12:44:53.252382Z info Storing statistics {“log_id”: “0J_66LdG000”, “service”: “monitor”, “db_instance”: “_internal”, “db_rp”: “monitor”, “interval”: “10s”}
2019-12-07T12:44:53.252610Z info Listening on HTTP {“log_id”: “0J_66LdG000”, “service”: “httpd”, “addr”: “[::]:8086”, “https”: false}
2019-12-07T12:44:53.252656Z info Starting retention policy enforcement service {“log_id”: “0J_66LdG000”, “service”: “retention”, “check_interval”: “30m”}
2019-12-07T12:44:53.252782Z info Listening for signals {“log_id”: “0J_66LdG000”}
2019-12-07T12:44:53.253908Z info Sending usage statistics to usage . influxdata.com {“log_id”: “0J_66LdG000”}
If I then try to access the database, I get this message:
[links broken up to allow posting]
root@mqttServer:~# influx --host “http: // localhost:8086”
Note: 404 page not found.
However, a coworker told me to start the db with “service influxdb start”, which I try to do instead.
If I then try to pass the --host parameter to “influx”, it does try to connect to :8086, but the connection is still refused.
[links broken up to allow posting]
root@mqttServer:~# influx --host “http : //localhost:8086”
Note: Get http : // localhost : 8086/api/v2/setup: dial tcp [::1]:8086: connect: connection refused.
Why is it trying to access the api/v2/setup? What am I doing wrong?