Influxd.service fails to start after changing flux-enabled = true

Hello

I need your helpon this. After changing flux-enabled = true in /etc/influxdb/influxdb.conf influxd does not start.

pi@serverPi4b:~ $ influxd version
InfluxDB v1.8.9 (git: 1.8 d9b56321d579)

Starts with flux-enabled = false:

pi@serverPi4b:~ $ sudo systemctl status influxd.service
? influxdb.service - InfluxDB is an open-source, distributed, time series database
   Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2021-08-11 12:21:38 CEST; 4h 17min ago
     Docs: https://docs.influxdata.com/influxdb/
  Process: 605 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
 Main PID: 609 (influxd)
    Tasks: 14 (limit: 4915)
   CGroup: /system.slice/influxdb.service
           +-609 /usr/bin/influxd -config /etc/influxdb/influxdb.conf

Does not start with flux-enabled = true:

pi@serverPi4b:~ $ sudo systemctl restart influxd.service
Job for influxdb.service failed because the control process exited with error code.
See "systemctl status influxdb.service" and "journalctl -xe" for details.

pi@serverPi4b:~ $ 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 Wed 2021-08-11 16:41:26 CEST; 7s ago
     Docs: https://docs.influxdata.com/influxdb/
Cntrl PID: 3193 (influxd-systemd)
    Tasks: 13 (limit: 4915)
   CGroup: /system.slice/influxdb.service
           +-3193 /bin/bash -e /usr/lib/influxdb/scripts/influxd-systemd-start.sh
           +-3194 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
           +-3249 sleep 1

Aug 11 16:41:26 serverPi4b systemd[1]: Starting InfluxDB is an open-source, distributed, time series database...
Aug 11 16:41:26 serverPi4b influxd-systemd-start.sh[3193]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 11 16:41:26 serverPi4b influxd-systemd-start.sh[3193]: ts=2021-08-11T14:41:26.343410Z lvl=info msg="InfluxDB starting" log_id=0VuQQNHl000 version=1.8.9 b
Aug 11 16:41:26 serverPi4b influxd-systemd-start.sh[3193]: ts=2021-08-11T14:41:26.344039Z lvl=info msg="Go runtime" log_id=0VuQQNHl000 version=go1.13.8 maxpr
Aug 11 16:41:26 serverPi4b influxd-systemd-start.sh[3193]: Merging with configuration at: /etc/influxdb/influxdb.conf

journalctl -xe
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit influxdb.service has entered the 'failed' state with result 'exit-code'.
Aug 11 16:41:47 serverPi4b systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
-- Subject: A start job for unit influxdb.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit influxdb.service has finished with a failure.
--
-- The job identifier is 1687 and the job result is failed.
Aug 11 16:41:47 serverPi4b systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Aug 11 16:41:47 serverPi4b systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 7.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit influxdb.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 11 16:41:47 serverPi4b systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
-- Subject: A stop job for unit influxdb.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit influxdb.service has finished.
--
-- The job identifier is 1750 and the job result is done.
Aug 11 16:41:47 serverPi4b systemd[1]: Starting InfluxDB is an open-source, distributed, time series database...
-- Subject: A start job for unit influxdb.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit influxdb.service has begun execution.
--
-- The job identifier is 1750.
Aug 11 16:41:47 serverPi4b influxd-systemd-start.sh[3325]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 11 16:41:47 serverPi4b influxd-systemd-start.sh[3325]: ts=2021-08-11T14:41:47.846738Z lvl=info msg="InfluxDB starting" log_id=0VuQRgHW000 version=1.8.9 b
Aug 11 16:41:47 serverPi4b influxd-systemd-start.sh[3325]: ts=2021-08-11T14:41:47.846793Z lvl=info msg="Go runtime" log_id=0VuQRgHW000 version=go1.13.8 maxpr
Aug 11 16:41:47 serverPi4b influxd-systemd-start.sh[3325]: Merging with configuration at: /etc/influxdb/influxdb.conf
lines 1643-1682/1682 (END)
-- The job identifier is 1561 and the job result is failed.
Aug 11 16:41:26 serverPi4b systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Aug 11 16:41:26 serverPi4b systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit influxdb.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 11 16:41:26 serverPi4b systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
-- Subject: A stop job for unit influxdb.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit influxdb.service has finished.
--
-- The job identifier is 1624 and the job result is done.
Aug 11 16:41:26 serverPi4b systemd[1]: Starting InfluxDB is an open-source, distributed, time series database...
-- Subject: A start job for unit influxdb.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit influxdb.service has begun execution.
--
-- The job identifier is 1624.
Aug 11 16:41:26 serverPi4b influxd-systemd-start.sh[3193]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 11 16:41:26 serverPi4b influxd-systemd-start.sh[3193]: ts=2021-08-11T14:41:26.343410Z lvl=info msg="InfluxDB starting" log_id=0VuQQNHl000 version=1.8.9 b
Aug 11 16:41:26 serverPi4b influxd-systemd-start.sh[3193]: ts=2021-08-11T14:41:26.344039Z lvl=info msg="Go runtime" log_id=0VuQQNHl000 version=go1.13.8 maxpr
Aug 11 16:41:26 serverPi4b influxd-systemd-start.sh[3193]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 11 16:41:36 serverPi4b influxd-systemd-start.sh[3193]: Failed to reach influxdb http endpoint at http://localhost:8086/health
Aug 11 16:41:36 serverPi4b systemd[1]: influxdb.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit influxdb.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Aug 11 16:41:36 serverPi4b systemd[1]: influxdb.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit influxdb.service has entered the 'failed' state with result 'exit-code'.
Aug 11 16:41:36 serverPi4b systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
-- Subject: A start job for unit influxdb.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit influxdb.service has finished with a failure.
--
-- The job identifier is 1624 and the job result is failed.
Aug 11 16:41:37 serverPi4b systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Aug 11 16:41:37 serverPi4b systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 6.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit influxdb.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 11 16:41:37 serverPi4b systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
-- Subject: A stop job for unit influxdb.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit influxdb.service has finished.
--
-- The job identifier is 1687 and the job result is done.
Aug 11 16:41:37 serverPi4b systemd[1]: Starting InfluxDB is an open-source, distributed, time series database...
-- Subject: A start job for unit influxdb.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit influxdb.service has begun execution.
--
-- The job identifier is 1687.
Aug 11 16:41:37 serverPi4b influxd-systemd-start.sh[3261]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 11 16:41:37 serverPi4b influxd-systemd-start.sh[3261]: ts=2021-08-11T14:41:37.122440Z lvl=info msg="InfluxDB starting" log_id=0VuQR1OW000 version=1.8.9 b
Aug 11 16:41:37 serverPi4b influxd-systemd-start.sh[3261]: ts=2021-08-11T14:41:37.122532Z lvl=info msg="Go runtime" log_id=0VuQR1OW000 version=go1.13.8 maxpr
Aug 11 16:41:37 serverPi4b influxd-systemd-start.sh[3261]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 11 16:41:47 serverPi4b influxd-systemd-start.sh[3261]: Failed to reach influxdb http endpoint at http://localhost:8086/health
Aug 11 16:41:47 serverPi4b systemd[1]: influxdb.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit influxdb.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Aug 11 16:41:47 serverPi4b systemd[1]: influxdb.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit influxdb.service has entered the 'failed' state with result 'exit-code'.
Aug 11 16:41:47 serverPi4b systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
-- Subject: A start job for unit influxdb.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit influxdb.service has finished with a failure.
--
-- The job identifier is 1687 and the job result is failed.
Aug 11 16:41:47 serverPi4b systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Aug 11 16:41:47 serverPi4b systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 7.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit influxdb.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 11 16:41:47 serverPi4b systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
-- Subject: A stop job for unit influxdb.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit influxdb.service has finished.
--
-- The job identifier is 1750 and the job result is done.
Aug 11 16:41:47 serverPi4b systemd[1]: Starting InfluxDB is an open-source, distributed, time series database...
-- Subject: A start job for unit influxdb.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit influxdb.service has begun execution.
--
-- The job identifier is 1750.
Aug 11 16:41:47 serverPi4b influxd-systemd-start.sh[3325]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 11 16:41:47 serverPi4b influxd-systemd-start.sh[3325]: ts=2021-08-11T14:41:47.846738Z lvl=info msg="InfluxDB starting" log_id=0VuQRgHW000 version=1.8.9 b
Aug 11 16:41:47 serverPi4b influxd-systemd-start.sh[3325]: ts=2021-08-11T14:41:47.846793Z lvl=info msg="Go runtime" log_id=0VuQRgHW000 version=go1.13.8 maxpr
Aug 11 16:41:47 serverPi4b influxd-systemd-start.sh[3325]: Merging with configuration at: /etc/influxdb/influxdb.conf

Hello @SeventyNine,
Welcome!
I’m not sure. Let me share your question with the Flux team. In the meantime have you considered upgrading to 2.x? Why or why not? And thanks for your patience.

Also have you seen this thread and tried the solutions mentioned there? Flux not working with InfluxDB 1.8

I have Raspberry Pi OS 32bit Server on Pi4b installed. Ubuntu 64bit Server doas not support USB-Boot out of the box. I will switch to 64bit Raspberry Pi OS or Ubuntu as soon as it is fully supported.

I have tested those soulutions on Flux not working with InfluxDB 1.8 with no luck.

I followd this guide all I changed is “flux-enabled = true”
Some weeks ago I installed 1.8.6 on a Pi 3b+ with “flux-enabled = true” and runs perfect.

Is there a guide on how to install a specific version? I would like to test 1.8.6 on Pi4b.

Got it!

Set sleep to 10