#If you modify this, please also make sure to edit init.sh
[Unit]
Description=InfluxDB is an open-source, distributed, time series database
Documentation=https://docs.influxdata.com/influxdb/
After=network-online.target
[Service]
User=influxdb
Group=influxdb
LimitNOFILE=65536
EnvironmentFile=-/etc/default/influxdb
ExecStart=/usr/bin/influxd -config /etc/influxdb/influxdb.conf ${INFLUXD_OPTS}
KillMode=control-group
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=influxd.service
So the start up looks fine, but it fails.
When I “influxd” manually vis the CLI it starts and runs fine.
Hello @Johan_Scheepers,
I’m not sure, I’m asking around and I’ll get back to you. Thank you. In the meantime, can you use journalctl (specific for the service, journalctl -u influxd ) to see what errors, if any, are being output? Thank you.
If you are running influxd directly, it’s possible some files have been generated that are not accessible by the influxdb service run by systemd. I recommend taking a look at this troubleshooting page.
– Logs begin at Mon 2020-10-26 11:15:48 SAST, end at Mon 2020-10-26 11:17:37 SAST. –
Oct 26 11:15:52 raspberrypi systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Oct 26 11:15:52 raspberrypi systemd[473]: influxdb.service: Failed to determine user credentials: No such process
Oct 26 11:15:52 raspberrypi systemd[473]: influxdb.service: Failed at step USER spawning /usr/bin/influxd: No such process
Oct 26 11:15:52 raspberrypi systemd[1]: influxdb.service: Main process exited, code=exited, status=217/USER
Oct 26 11:15:52 raspberrypi systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Oct 26 11:15:52 raspberrypi systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Oct 26 11:15:52 raspberrypi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 1.
Oct 26 11:15:52 raspberrypi systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Oct 26 11:15:52 raspberrypi systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Oct 26 11:15:52 raspberrypi systemd[504]: influxdb.service: Failed to determine user credentials: No such process
Oct 26 11:15:52 raspberrypi systemd[504]: influxdb.service: Failed at step USER spawning /usr/bin/influxd: No such process
Oct 26 11:15:52 raspberrypi systemd[1]: influxdb.service: Main process exited, code=exited, status=217/USER
Oct 26 11:15:52 raspberrypi systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 2.
Oct 26 11:15:53 raspberrypi systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Oct 26 11:15:53 raspberrypi systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Oct 26 11:15:53 raspberrypi systemd[521]: influxdb.service: Failed to determine user credentials: No such process
Oct 26 11:15:53 raspberrypi systemd[521]: influxdb.service: Failed at step USER spawning /usr/bin/influxd: No such process
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Main process exited, code=exited, status=217/USER
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 3.
Oct 26 11:15:53 raspberrypi systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Oct 26 11:15:53 raspberrypi systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Oct 26 11:15:53 raspberrypi systemd[528]: influxdb.service: Failed to determine user credentials: No such process
Oct 26 11:15:53 raspberrypi systemd[528]: influxdb.service: Failed at step USER spawning /usr/bin/influxd: No such process
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Main process exited, code=exited, status=217/USER
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 4.
Oct 26 11:15:53 raspberrypi systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Oct 26 11:15:53 raspberrypi systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Oct 26 11:15:53 raspberrypi systemd[545]: influxdb.service: Failed to determine user credentials: No such process
Oct 26 11:15:53 raspberrypi systemd[545]: influxdb.service: Failed at step USER spawning /usr/bin/influxd: No such process
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Main process exited, code=exited, status=217/USER
Oct 26 11:15:53 raspberrypi systemd[1]: influxdb.service: Failed with result ‘exit-code’.
Oct 26 11:15:54 raspberrypi systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Oct 26 11:15:54 raspberrypi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
Looks like the influxdb user and group does not exist and will need to be created (this would normally be done automatically when installing the package).