My influxdb can't start

Hi,
MY influxdb can’t start when i reboot my Debian.
Here is my log.:

influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-04-21 13:29:04 CEST; 3s ago
Docs: InfluxDB OSS 2.6 Documentation
Process: 20461 ExecStart=/usr/bin/influxd -config /etc/influxdb/influxdb.conf $INFLUXD_OPTS (code=exited, satus=1/FAILURE)
Main PID: 20461 (code=exited, status=1/FAILURE)
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
ápr 21 13:29:04 hassnas systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Start request repeated too quickly.
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Failed with result ‘exit-code’.
ápr 21 13:29:04 hassnas systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.

Here is my journalctl -xe -u influxdb output.:

root@hassnas:~# journalctl -xe -u influxdb
– Support: hxxps://www.debian.org/support
– A start job for unit influxdb.service has finished successfully.
The job identifier is 4235.
ápr 21 13:29:04 hassnas influxd[20461]: ts=2020-04-21T11:29:04.449557Z lvl=info msg=“InfluxDB starting” log_id=0MJ7pDlG000 version=1.8.0 branch=1.8 commit=781490de48220d7695a05c29e5a36f550a4568f5
ápr 21 13:29:04 hassnas influxd[20461]: ts=2020-04-21T11:29:04.449600Z lvl=info msg=“Go runtime” log_id=0MJ7pDlG000 version=go1.13.8 maxprocs=4
ápr 21 13:29:04 hassnas influxd[20461]: ts=2020-04-21T11:29:04.552890Z lvl=info msg=“Using data dir” log_id=0MJ7pDlG000 service=store path=/srv/hdd1/hassiodb/influxdb/data
ápr 21 13:29:04 hassnas influxd[20461]: ts=2020-04-21T11:29:04.552989Z lvl=info msg=“Compaction settings” log_id=0MJ7pDlG000 service=store max_concurrent_compactions=2 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648
ápr 21 13:29:04 hassnas influxd[20461]: ts=2020-04-21T11:29:04.553069Z lvl=info msg=“Open store (start)” log_id=0MJ7pDlG000 service=store trace_id=0MJ7pEAG000 op_name=tsdb_open op_event=start
ápr 21 13:29:04 hassnas influxd[20461]: ts=2020-04-21T11:29:04.553208Z lvl=info msg=“Open store (end)” log_id=0MJ7pDlG000 service=store trace_id=0MJ7pEAG000 op_name=tsdb_open op_event=end op_elapsed=0.143ms
ápr 21 13:29:04 hassnas influxd[20461]: run: open server: open tsdb store: mkdir /srv/hdd1/hassiodb/influxdb/data/_internal/_series: permission denied
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Main process exited, code=exited, status=1/FAILURE
– Subject: Unit process exited
– Defined-By: systemd
– Support: hxxps://www.debian.org/support

– An ExecStart= process belonging to unit influxdb.service has exited.

– The process’ exit code is ‘exited’ and its exit status is 1.
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– Support: hxxps://www.debian.org/support
– The unit influxdb.service has entered the ‘failed’ state with result ‘exit-code’.
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
– Subject: Automatic restarting of a unit has been scheduled
– Defined-By: systemd
– Support: hxxps://www.debian.org/support
– Automatic restarting of the unit influxdb.service has been scheduled, as the result for
– the configured Restart= setting for the unit.
ápr 21 13:29:04 hassnas systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
– Subject: A stop job for unit influxdb.service has finished
– Defined-By: systemd
– Support: hxxps://www.debian.org/support
– A stop job for unit influxdb.service has finished.
– The job identifier is 4293 and the job result is done.
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Start request repeated too quickly.
ápr 21 13:29:04 hassnas systemd[1]: influxdb.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– Support: hxxps://www.debian.org/support
– The unit influxdb.service has entered the ‘failed’ state with result ‘exit-code’.
ápr 21 13:29:04 hassnas systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
– Subject: A start job for unit influxdb.service has failed
– Defined-By: systemd
– Support: hxxps://www.debian.org/support
– A start job for unit influxdb.service has finished with a failure.
– The job identifier is 4293 and the job result is failed.

influx
Failed to connect to hxxp://localhost:8086: Get hxxp://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure ‘influxd’ is running.

Can you help me anybody how can I solve this problem?
Thank You for the support.
Best Regard Zsolt

Any ideas for this issue, since I got similar error, but dont know how to resolve it.

‘’’
gtest@guitestserver-trunk:/$ service influxdb status
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-08-13 19:04:17 PDT; 545ms ago
Docs: InfluxDB OSS 2.6 Documentation
Main PID: 54950 (influxd)
Tasks: 32 (limit: 9830)
CGroup: /system.slice/influxdb.service
└─54950 /usr/bin/influxd -config /etc/influxdb/influxdb.conf

Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.563423Z lvl=info msg=“InfluxDB starting” log_id=0ObgDF6l000 version=1.8.1 branch=1.8 commit=af0237819ab9c5997c1c0144862dc762b9d8fc25
Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.563703Z lvl=info msg=“Go runtime” log_id=0ObgDF6l000 version=go1.13.8 maxprocs=64
Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.564424Z lvl=info msg=“Using data dir” log_id=0ObgDF6l000 service=store path=/var/lib/influxdb/data
Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.564453Z lvl=info msg=“Compaction settings” log_id=0ObgDF6l000 service=store max_concurrent_compactions=32 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648
Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.564541Z lvl=info msg=“Open store (start)” log_id=0ObgDF6l000 service=store trace_id=0ObgDF70000 op_name=tsdb_open op_event=start
Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.566191Z lvl=info msg=“Opened file” log_id=0ObgDF6l000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/Adom_General/autogen/53/000000001-000000001.tsm id=0 duration=0.133ms
Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.566569Z lvl=info msg=“Opened file” log_id=0ObgDF6l000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/Adom_General/autogen/58/000000001-000000001.tsm id=0 duration=0.191ms
Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.569189Z lvl=info msg=“Reading file” log_id=0ObgDF6l000 engine=tsm1 service=cacheloader path=/var/lib/influxdb/wal/_internal/monitor/61/_00001.wal size=3968876
Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.570064Z lvl=info msg=“Opened file” log_id=0ObgDF6l000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/60/000000001-000000001.tsm id=0 duration=0.379ms
Aug 13 19:04:17 guitestserver-trunk influxd[54950]: ts=2020-08-14T02:04:17.727823Z lvl=info msg=“Opened shard” log_id=0ObgDF6l000 service=store trace_id=0ObgDF70000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/Adom_General/autogen/53 duration=162.275ms
gtest@guitestserver-trunk:/$ influx -host 127.0.0.1 -port 5086
Failed to connect to http://127.0.0.1:5086: Get http://127.0.0.1:5086/ping: dial tcp 127.0.0.1:5086: connect: connection refused
Please check your connection settings and ensure ‘influxd’ is running.
gtest@guitestserver-trunk:/$ service influxdb status
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-08-13 19:04:20 PDT; 7s ago
Docs: InfluxDB OSS 2.6 Documentation
Process: 55078 ExecStart=/usr/bin/influxd -config /etc/influxdb/influxdb.conf $INFLUXD_OPTS (code=exited, status=1/FAILURE)
Main PID: 55078 (code=exited, status=1/FAILURE)

Aug 13 19:04:20 guitestserver-trunk systemd[1]: influxdb.service: Service hold-off time over, scheduling restart.
Aug 13 19:04:20 guitestserver-trunk systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
Aug 13 19:04:20 guitestserver-trunk systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Aug 13 19:04:20 guitestserver-trunk systemd[1]: influxdb.service: Start request repeated too quickly.
Aug 13 19:04:20 guitestserver-trunk systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Aug 13 19:04:20 guitestserver-trunk systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
‘’’

Can you run this
cat /lib/systemd/system/influxdb.service

What’s the user thats running the service?

Thanks @FixTestRepeat, now I fixed it, I changed “binding-address: 5086” to complete “binding-address: 127.0.0.1:5086” and looks working, and change “http.enabled = true” from “http.enabled = false”. When I doing it cuz I am trying to use https connection, I coud not using https by following the guidline setting up the https.

gtest@guitestserver-trunk:/etc/ssl$ influx -ssl -host 127.0.0.1 -port 5086
Failed to connect to https://127.0.0.1:5086: Get https://127.0.0.1:5086/ping: dial tcp 127.0.0.1:5086: connect: connection refused
Please check your connection settings and ensure ‘influxd’ is running.
gtest@guitestserver-trunk:/etc/ssl$ journalctl -u
journalctl: option requires an argument – ‘u’
gtest@guitestserver-trunk:/etc/ssl$ journalctl -u influxdb
– Logs begin at Thu 2020-08-06 18:43:02 PDT, end at Fri 2020-08-14 09:34:27 PDT. –
Aug 13 15:16:30 guitestserver-trunk systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:31 guitestserver-trunk influxd[43865]: run: parse config: Near line 305 (last key parsed ‘http.https-enabled’): expected value but found “ture” instead
Aug 13 15:16:31 guitestserver-trunk systemd[1]: influxdb.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 15:16:31 guitestserver-trunk systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Aug 13 15:16:31 guitestserver-trunk systemd[1]: influxdb.service: Service hold-off time over, scheduling restart.
Aug 13 15:16:31 guitestserver-trunk systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 1.
Aug 13 15:16:31 guitestserver-trunk systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:31 guitestserver-trunk systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:31 guitestserver-trunk influxd[43910]: run: parse config: Near line 305 (last key parsed ‘http.https-enabled’): expected value but found “ture” instead
Aug 13 15:16:31 guitestserver-trunk systemd[1]: influxdb.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 15:16:31 guitestserver-trunk systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Service hold-off time over, scheduling restart.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 2.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:32 guitestserver-trunk influxd[43945]: run: parse config: Near line 305 (last key parsed ‘http.https-enabled’): expected value but found “ture” instead
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Service hold-off time over, scheduling restart.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 3.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:32 guitestserver-trunk influxd[43978]: run: parse config: Near line 305 (last key parsed ‘http.https-enabled’): expected value but found “ture” instead
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Service hold-off time over, scheduling restart.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 4.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:32 guitestserver-trunk influxd[44010]: run: parse config: Near line 305 (last key parsed ‘http.https-enabled’): expected value but found “ture” instead
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Service hold-off time over, scheduling restart.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Start request repeated too quickly.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Aug 13 15:16:32 guitestserver-trunk systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
Aug 13 15:21:36 guitestserver-trunk systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Aug 13 15:21:37 guitestserver-trunk influxd[44673]: run: parse config: Near line 305 (last key parsed ‘http.https-enabled’): expected value but found “ture” instead
Aug 13 15:21:37 guitestserver-trunk systemd[1]: influxdb.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 15:21:37 guitestserver-trunk systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Aug 13 15:21:37 guitestserver-trunk systemd[1]: influxdb.service: Service hold-off time over, scheduling restart.
Aug 13 15:21:37 guitestserver-trunk systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 1.
Aug 13 15:21:37 guitestserver-trunk systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Aug 13 15:21:37 guitestserver-trunk systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Aug 13 15:21:37 guitestserver-trunk influxd[44707]: run: parse config: Near line 305 (last key parsed ‘http.https-enabled’): expected value but found “ture” instead
Aug 13 15:21:37 guitestserver-trunk systemd[1]: influxdb.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 15:21:37 guitestserver-trunk systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Aug 13 15:21:37 guitestserver-trunk systemd[1]: influxdb.service: Service hold-off time over, scheduling restart.
Aug 13 15:21:37 guitestserver-trunk systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 2.
Aug 13 15:21:37 guitestserver-trunk systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Aug 13 15:21:37 guitestserver-trunk systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Aug 13 15:21:37 guitestserver-trunk influxd[44741]: run: parse config: Near line 305 (last key parsed ‘http.https-enabled’): expected value but found “ture” instead

My config is as following:

[http]
enabled = false
bind-address = “127.0.0.1:5086”
auth-enabled = false
log-enabled = true
write-tracing = false
pprof-enabled = false
https-enabled = true
https-certificate = “/etc/ssl/influxdb_selfsigned.crt”
https-private-key = “/etc/ssl/influxdb-selfsigned.key”

Glad you got it sorted. Just noticed a typo though, was that related/causing it?

Hi @FixTestRepeat,

  1. I checked line 169 refer to [http.https-enabled].
  2. I do see it is set to ‘true’, but error keep reporting it as ‘ture’, see my attached pic following:
    image

And I retsart and retype ‘true’, i got following error

I finnally know that, since I didnt scroll to the bottom when checking logs of ‘journalctl -u influxdb’

:wink: live and learn. Glad to hear you figured it out