Open naorw opened 2 years ago
Same here on RaspberryPi 2B+, Linux 4.19.66+ armv6l, Database folder is around 500Mb, with around 250 tsm files (that are shards, right?). Version same as OP
Suggest to make the error line a bit more descriptive (mentioning 10 seconds) and possibly add this timeout in the configuration file.
Starting the database manually from command-line did not show this error. In hindsight this is obvious, but for me it got me confused quite a lot.
I was able to make InfluxDB start by changing the following in /usr/lib/influxdb/scripts/influxd-systemd-start.sh
:
max_attempts=100
Default max_attempts is 10.
It turned out my database folder got corrupt which made loading so slow. I have now reinstalled influxdb and restored the backup and loading on my Raspberry Pi has improved to well below the 10 seconds.
In my case increasing the number of attempts didn't help. It simply takes longer than 10 seconds for my database instance to start, so it times out each time.
Steps to reproduce: List the minimal actions needed to reproduce the behavior.
Expected behavior: Database starting
Actual behavior: Database fails to start with "Failed to reach influxdb http endpoint at http://localhost:8086/health" error running "/usr/lib/influxdb/scripts/influxd-systemd-start.sh" script manually fails with same error. however database starts and connectable via http. curl http://localhost:8086/health {"checks":[],"message":"ready for queries and writes","name":"influxdb","status":"pass","version":"1.8.9"} possibly due to loading shards time.
Environment info:
uname -srm
and copy the output here Linux 4.15.0-154-generic x86_64influxd version
and copy the output here InfluxDB v1.8.9 (git: 1.8 d9b56321d579)Logs: Include snippet of errors in log. nfluxd-systemd-start.sh[17616]: Failed to reach influxdb http endpoint at http://localhost:8086/health systemd[1]: influxdb.service: Control process exited, code=exited status=1