Hi new here(influxdb,Linux,raspberrypi etc). After update from 1.8.6-1 to 1.8.7-1 these a similar behaviour. i run journalctl -u influxdb and got these:
Jul 29 22:59:26 TheRaspberrypi4 systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Jul 29 22:59:26 TheRaspberrypi4 systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 3.
Jul 29 22:59:26 TheRaspberrypi4 systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Jul 29 22:59:26 TheRaspberrypi4 systemd[1]: Starting InfluxDB is an open-source, distributed, time series database…
Jul 29 22:59:26 TheRaspberrypi4 systemd[1551]: influxdb.service: Failed to execute command: Permission denied
Jul 29 22:59:26 TheRaspberrypi4 systemd[1551]: influxdb.service: Failed at step EXEC spawning /usr/lib/influxdb/scripts/influxd-systemd-start.sh: Permission denied
Jul 29 22:59:26 TheRaspberrypi4 systemd[1]: influxdb.service: Control process exited, code=exited, status=203/EXEC
The issue here is likely that the InfluxDB service is typically run as the user “influxdb”. If you want to confirm, you need to see where your systemd startup configuration is set. Not sure about the raspian distro, but on the RHEL that user is specific in /etc/systemd/system/influxd.service.
If the service doesn’t start for you, it could be that when the user influxdb can’t execute /usr/lib/influxdb/scripts/influxd-systemd-start.sh, the permissions issue I mentioned above. But, since you can run influxdb when you start with sudo seems to confirm you have the same issue.
Ran into this bug today. running it on raspi also
i chmod +x /usr/lib/influxdb/scripts/influxd-systemd-start.sh and services were able to be started
upgraded info influxdb:armhf (1.8.6-1, 1.8.7-1)
yes…unfortunately, i may just have to do a fresh install and move to 2 maybe. i can’t find 1.8.6 in the repos…wish they’d just keep the old packages available.
started getting this error now, runtime: out of memory: cannot allocate 81920-byte block (1252196352 in use) fatal error: out of memory
i’m not using inmem either. I have 4GB on my rasp pi, so I don’t think memory is really an issue. 1.8.7 has bugs
@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
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.
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?
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.6 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 -- User 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.6 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