Influxdb 1.8.7 will not start

Same issue, however when starting from the command line it did a lot more work than normal.
That said, revering to last nights backup, disabling update fron influx until this is sorted.
Two Mondays in a row where what has been one of the most stable products I have ever used, now not fit for purpose.
Please try testing before releasing.

10 seconds - great - that was the solution that helped me !!! :+1:

1 Like

Thanks, downgrading to 1.8.6 helped. Nothing else did. Even version 1.8.9 was not starting.

1 Like

Perfect, thanks for the solution. It solved my issue

I’m new and from the south of France.
I have downgrade my paquet rasbian by command beware
sudo apt install influxdb=1.6.4-1+deb10u1

Influxdb version 1.8.9 on Debian 10 here!
Perfect solution to change line 29. Set the sleep time to 10 seconds. It kept me busy for a week now. This was since my upgrade from 1.8.6.

Thanks

1 Like

Hope this wil resolved in a future version. Not nice to search the internet for a solution this new and hard to find.

Thank you. Your answer should be bumped up on search engines.
I set the sleep command to 10 seconds and the issue is gone.
Before finding your suggestion, I was puzzled that influxdb could be started manually but not with the script.

1 Like

This not the solution, what happens if the influxdb startup activity take 11 seconds.
The script should check that the service is up.

man systemd

As a raspberry pi user I have had the same issues. What worries me is the potential for self inflicted corruptions when investigating and trying to resolve these random and seemingly inexplicable problems. It makes one unwilling to update a working system too. I have I think resolved things now with the fixes above, but I remain nervous.
Paul

Just done an install on a brand new Debian11 (Bullseye) and got the same old issue of non starting
Tried all the hints here, not starting

Ran the
chmod +x /usr/lib/influxdb/scripts/influxd-systemd-start.sh
script and got this
/usr/lib/influxdb/scripts/influxd-systemd-start.sh: line 30: curl: command not found

curl is not installed on a base debian.

I am sure someone is going to say RTFM, its on page x, line y :slight_smile:

apt install curl
fixed it.

doing
chmod -x /usr/lib/influxdb/scripts/influxd-systemd-start.sh
chmod o+x /usr/lib/influxdb/scripts/influxd-systemd-start.sh

and it still worked, even over a reboot.

The proper way is to add dependencies to your package and install them prior to your own software.

Hi, the reason is not the sleep 1, its just fixes it. The real reason is, that the while loop is checking the first result over and over again, as the result variable is not updated after the first try (as it is out of the loop and only run once).

So to fix it, the curl command needs to be re-executed, otherwise the script will check the first result over and over again, until max attempts is reached, even if the webservice is already reachable.

On Github is a new Version of the Script, which maybe fixes that, but be aware that this one does things differently so you should only grep the parts you need. influxdb/influxd-systemd-start.sh at 8e5a0705a3c14c69ab681268c4d7aecd98204434 · influxdata/influxdb · GitHub

yes! 10s did the trick. thanks!

fix this please i beg you, raspberry pi zero
sleep 10 not working, commenting exit 1 is not working
sudo chmod +x /usr/lib/influxdb/scripts/influxd-systemd-start.sh is not working
there are no clear instructions for downgrading to 1.8.6

articles from pimylifeup, randomnerttutorials and whatnot lure the iot not so linux experienced amateurs to use influxdb and in case of a problem like this we stare at the walls and don’t know where to search for the solutions.
another update reset the privileges of the config file folder now this.
yeah, BuT gRaFaNa NaTiVe InTeGrAtIoN !!1
please help

First download old version, then install it with dpkg and finally mark influx to be held from updates until vesion with a fix is released. Something like this (showhold is optional, it’s just to verify hold):

wget https://dl.influxdata.com/influxdb/releases/influxdb_1.8.5_armhf.deb
sudo dpkg -i influxdb_1.8.5_armhf.deb
sudo apt-mark hold influxdb
sudo apt-mark showhold

When new influx with a fix is released

sudo apt-mark unhold influxdb
sudo apt update
sudo apt upgrade
2 Likes

Yep, had to do this as 1.8.9 is a crock on debian bullseye
NOTE TO INFLUX, SOME OF US ARE TRYING TO MIGRATE TO INFLUXDB2, WITH THE ATTENDANT PROBLEMS WITH CONVERTING TO FLUX, TOKENS, BUCKETS ETC
SO WE NEED TO STAY ON A STABLE 1.8 TILL WE ARE HAPPY WITH THE MIGRATION
PLEASE GO WAY AND READ UP ON SYSTEMD, TEST, TEST, AND DID I SAY TEST?, THEN RELEASE
YOU HAVE MANAGED TO TURN A WORLD BEATING PRODUCT INTO *****

As an update, the GitHub issues linked in the above post continue to track the progress of this topic.

The tl;dr is that this will be fixed in 1.8.10, which is currently undergoing the release candidate (rc) process and will be released soon. You can find links to the current working rc builds (1.8.10rc1 is the latest) in the issues referenced above.

1 Like

Hello every one,

I am a new to Influx, I have installed the influx on Raspberry Pi 3 B, with Node red data reading & storing in Influx. I intend to have continuous data of flow & consumption of the flow meters. I am facing the problem of “Influxdb.service” failed to because the control process exited with error code. This happens when ever the power fails or Reboot is done, I lost all the data in the databse cause I shall reinstall the Influx.
Please help to resolve this, Thanks in advance.

Hi @Girishchenna,
Welcome to the community :slight_smile: . Did you try the community provided fix on this page?

Hi All,

FYI, 1.8.10, which includes a fix for this issue, has been released.

1 Like