Unable to start service influxdb
kazuitox opened this issue · 1 comments
kazuitox commented
Hi,
When I deployed v2.7.3 with "Install HPC Cluster Monitoring Tools" checked, I got the following error.
null_resource.cluster (remote-exec): TASK [influxdb : Start InfluxDB] ***********************************************
null_resource.cluster (remote-exec): �[0;31mfatal: [one-swan-bastion]: FAILED! => changed=false �[0m
null_resource.cluster (remote-exec): �[0;31m msg: |-�[0m
null_resource.cluster (remote-exec): �[0;31m Unable to start service influxdb: Job for influxdb.service failed because the control process exited with error code. See "systemctl status influxdb.service" and "journalctl -xe" for details.�[0m
There is a problem with the permissions in /usr/lib/influxdb/scripts/influxd-systemd-start.sh.
[opc@one-swan-bastion ~]$ systemctl status influxdb.service
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since 木 2021-08-05 04:22:52 GMT; 9min ago
Docs: https://docs.influxdata.com/influxdb/
Process: 31556 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=203/EXEC)
8月 05 04:22:52 one-swan-bastion systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
8月 05 04:22:52 one-swan-bastion systemd[1]: Unit influxdb.service entered failed state.
8月 05 04:22:52 one-swan-bastion systemd[1]: influxdb.service failed.
8月 05 04:22:52 one-swan-bastion systemd[1]: influxdb.service holdoff time over, scheduling restart.
8月 05 04:22:52 one-swan-bastion systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
8月 05 04:22:52 one-swan-bastion systemd[1]: start request repeated too quickly for influxdb.service
8月 05 04:22:52 one-swan-bastion systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
8月 05 04:22:52 one-swan-bastion systemd[1]: Unit influxdb.service entered failed state.
8月 05 04:22:52 one-swan-bastion systemd[1]: influxdb.service failed.
[opc@one-swan-bastion ~]$ ls -l /usr/lib/influxdb/scripts/influxd-systemd-start.sh
-rwxr--r--. 1 root root 520 7月 21 19:55 /usr/lib/influxdb/scripts/influxd-systemd-start.sh
[opc@one-swan-bastion ~]$ sudo chmod 755 /usr/lib/influxdb/scripts/influxd-systemd-start.sh
[opc@one-swan-bastion ~]$ ls -l /usr/lib/influxdb/scripts/influxd-systemd-start.sh
-rwxr-xr-x. 1 root root 520 7月 21 19:55 /usr/lib/influxdb/scripts/influxd-systemd-start.sh
[opc@one-swan-bastion ~]$ sudo systemctl start influxdb.service
[opc@one-swan-bastion ~]$ systemctl status influxdb.service
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; vendor preset: disabled)
Active: active (running) since 木 2021-08-05 04:32:59 GMT; 4s ago
Docs: https://docs.influxdata.com/influxdb/
Process: 1965 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
Main PID: 1966 (influxd)
Memory: 13.9M
CGroup: /system.slice/influxdb.service
└─1966 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
8月 05 04:32:58 one-swan-bastion influxd-systemd-start.sh[1965]: ts=2021-08-05T04:32:58.986977Z lvl=info msg="Starting continuous q...erier
8月 05 04:32:58 one-swan-bastion influxd-systemd-start.sh[1965]: ts=2021-08-05T04:32:58.986994Z lvl=info msg="Starting HTTP service...false
8月 05 04:32:58 one-swan-bastion influxd-systemd-start.sh[1965]: ts=2021-08-05T04:32:58.987004Z lvl=info msg="opened HTTP access lo...tderr
8月 05 04:32:58 one-swan-bastion influxd-systemd-start.sh[1965]: ts=2021-08-05T04:32:58.987162Z lvl=info msg="Listening on HTTP" lo...false
8月 05 04:32:58 one-swan-bastion influxd-systemd-start.sh[1965]: ts=2021-08-05T04:32:58.987179Z lvl=info msg="Starting retention po...l=30m
8月 05 04:32:58 one-swan-bastion influxd-systemd-start.sh[1965]: ts=2021-08-05T04:32:58.987673Z lvl=info msg="Storing statistics" l...l=10s
8月 05 04:32:58 one-swan-bastion influxd-systemd-start.sh[1965]: ts=2021-08-05T04:32:58.988021Z lvl=info msg="Listening for signals...0l000
8月 05 04:32:58 one-swan-bastion influxd-systemd-start.sh[1965]: ts=2021-08-05T04:32:58.988044Z lvl=info msg="Sending usage statist...0l000
8月 05 04:32:59 one-swan-bastion influxd-systemd-start.sh[1965]: [httpd] ::1 - - [05/Aug/2021:04:32:59 +0000] "GET /health HTTP/1.1...c 231
8月 05 04:32:59 one-swan-bastion systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
Hint: Some lines were ellipsized, use -l to show in full.
Can you please fix the ansible code?
Thanks,
kazuitox commented
I found a fix in the latest code.
Thanks,