-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfluxDB API unavailable after X attempts... #23639
Comments
Hi same issue, Did able to solve it ? |
Upgrade to Version 2.4… |
Hi, I am in the same situation. Thanks |
Yes, so it worked for me 😉 |
Ok, thanks. I will try |
I recently came across the same issue, following a simple reboot of an InfluxDB instance I manage. This is a fairly large instance I think, our influx data directory is about 150GB. It turned out our instance needed more than 24 minutes to start. With a workmate, we noticed that even with those "InfluxDB API unavailable after X attempts" lines, we could see database files still being loaded. We also saw that after a loooong time, either the service started, either systemd killed it. We ended up overriding some systemd settings, especially a timeout value :
Our file contains more than that, but this is the only setting that matters in this case. And a previous colleague had set this up with 15 minutes. After this override file creation or update, don't forget to run Hope this helps ! |
In some cases it can be avialble RAM. I had a machine with 2 GB and when I added data suddenly influx needed 2.5 and it would just fail to restart, got timeout errors, but actually adding memory helped - works now, but consumes 2.5 GB - I run old 1.8 influxd, hopefully newer versions are less memory greedy |
I am running influxdb and storing mqtt data from a node-red flow. I've tried commenting out the Type=forked, ran daemon-reload and it did not fix this issue. What did work, was going in /etc/systemd/system and ensuring that the node-red service start after influxdb (After=influxdb.service). |
Thank you very much for this helpful tip. For my RPI3 I had to add that line in a different file using |
For anybody, including my self. I enabled socket file in InfluxDB and this require that the service has access to Every time I update influxdb, I need to add the following 2 lines again to the [Service]
....
RuntimeDirectory=influxdb
RuntimeDirectoryMode=0755 |
Good hint, i did the following changes:
|
That is not how RuntimeDirectory should be used. Also the reason I created this issue is. Just changing this service is not really persistent. After each influxdb update, the file is overwritten and often put back to their defaults. Causing my instance to fail to start. |
Suddenly InfluxDB 1.8.10 does not run anymore :-(
Everything I have found here so far has unfortunately not helped.
What can I do?
The text was updated successfully, but these errors were encountered: