Influxdb 1.8.7 will not start

@aimdev, you are correct: it’s certainly messy at best.

In my case the influxdb user is a member of only the group influxdb. Since the script under question is delivered with a ownership of root:root, I chose to “go wide.” Naturally, you could/should adjust any recommendation to match your implementation, as YMMV.

I have no idea what’s going on.
I had rebooted my pi a few times and the service kept dying
I was going to install 2.0, but wanted to enable 64 bit support on the pi, so I added the arm_64bit=1
to the /boot/config.txt file
I restarted the pi and suddenly things are working just fine
I’m thoroughly confused as to what’s going on now

@influxian - your out of memory error error sounds like a different issue - I’m not a rPi user of InfluxDB, so can’t comment there.

Perhaps spin up a new thread so that others can find it and comment on it?

Hi there,

We are tracking the following two issues in 1.8.7 with the deb and rpm packages stemming from a wrapper script used for running in systemd:

Fixes are incoming (referenced in each respective bug) and we will be cutting a 1.8.8 release this week, with the recommended fix being to upgrade to the new version.

2 Likes

Hi,
so i did update to 1.8.9 but still not able to run as a service. Now the status of the service is inactive(dead).
When i run influxd i get run: open server: listen: listen tcp 127.0.0.1:8088: bind: address already in use
but i did not change something in my system since version 1.8.6 which was ok, again only with sudo influxd.

While reading another post, i tried to run sudo systemctl start influxdb and the service started!
now the folder /usr/lib/influxdb is owned by root, should be change to influxd as suggested by the post below?

still having issues in 1.8.9-1

1 Like

I am also running 1.8.9-1 and influxdb is not able to start
even with default configuration it does not come up
pi@raspberrypidns:/etc/influxdb $ systemctl status influxdb.service
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: activating (start) since Sat 2021-08-07 10:56:20 CEST; 4s ago
Docs: InfluxDB OSS 2.0 Documentation
Cntrl PID: 17490 (influxd-systemd)
Tasks: 20 (limit: 1891)
CGroup: /system.slice/influxdb.service
├─17490 /bin/bash -e /usr/lib/influxdb/scripts/influxd-systemd-start.sh
├─17491 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
└─17540 sleep 1

Aug 07 10:56:20 raspberrypidns systemd[1]: Starting InfluxDB is an open-source, distributed, time series database…
Aug 07 10:56:20 raspberrypidns influxd-systemd-start.sh[17490]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 07 10:56:20 raspberrypidns influxd-systemd-start.sh[17490]: Merging with configuration at: /etc/influxdb/influxdb.conf

– Subject: A start job for unit influxdb.service has failed
– Defined-By: systemd
– Support: Debian -- Support

– A start job for unit influxdb.service has finished with a failure.

I spoke too soon. Service failed this morning and I haven’t looked into it, but I web’d into grafana and see Bad Gateway errors, which means influx is down, again.

Seriously, I may need to migrate to Prometheus or something else

Same problem here. 1.8.9-1
sudo systemctl start influxdb
Job for influxdb.service failed because the control process exited with error code.
See “systemctl status influxdb.service” and “journalctl -xe” for details.

sudo service influxdb status
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; disabled; vendor preset: enabled)
Active: activating (start) since Sat 2021-08-07 14:40:29 CEST; 4s ago
Docs: InfluxDB OSS 2.0 Documentation
Cntrl PID: 27537 (influxd-systemd)
Tasks: 14 (limit: 4915)
CGroup: /system.slice/influxdb.service
├─27537 /bin/bash -e /usr/lib/influxdb/scripts/influxd-systemd-start.sh
├─27538 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
└─27585 sleep 1

Aug 07 14:40:29 raspberrypi4-iob influxd-systemd-start.sh[27537]: ts=2021-08-07T12:40:29.632481Z lvl=info msg="Ope
Aug 07 14:40:29 raspberrypi4-iob influxd-systemd-start.sh[27537]: ts=2021-08-07T12:40:29.634698Z lvl=info msg="Ope
Aug 07 14:40:29 raspberrypi4-iob influxd-systemd-start.sh[27537]: ts=2021-08-07T12:40:29.636942Z lvl=info msg="Ope

Since the apt repos provided only contain the lastest/bad version, it’d be nice to have at lease 4-5 versions. I was able to find the github release page and grab the version I needed v1.8.6 to get back in business.

Hope this helps.

3 Likes

Thanks for this info. I am not an expert. How do I go to downgrade to version 1.8.6 ?
Thanks

I had the same issue just yesterday. It seems they changed something in the startup script in version v1.8.9, the same one we had to +x on version 1.8.7.
Turns out my DB is too big and it takes longer to start than the 10 seconds influxdb expects to take and so the start script aborts the process
Workaround:
Open /usr/lib/influxdb/scripts/influxd-systemd-start.sh
either comment out line 34 (exit 1) – < this is a bad idea in the long run but will allow you to test if it works
or set the sleep command in line 29 to 10 seconds (depending on how long does it take your influx to start, for me 10 cycles (line 25) of 10 seconds was enough)

Cheers!

7 Likes

Bloody hell, @N_C

commenting out “exit 1” made the trick.
Thank you! I had headaches for 2 days

2 Likes

You are a star!
Thank you. This solved the issue for now.

1 Like

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