Anaisdg
February 28, 2022, 8:59pm
2
Hello @franck_Franc ,
Welcome! I see you’re new here.
May I ask why are you using 1.6? That version is very old, just curious. First I would try upgrading to the latest version of InfluxDB
https://portal.influxdata.com/downloads/
You might want to try:
sudo chown -R influxdb:influxdb /var/lib/influxdb
opened 10:17AM - 23 Jul 21 UTC
closed 03:05PM - 19 Oct 21 UTC
__Steps to reproduce:__
List the minimal actions needed to reproduce the behavi… or.
1. `wget https://dl.influxdata.com/influxdb/releases/influxdb_1.8.7_amd64.deb`
2. `dpkg -i influxdb_1.8.7_amd64.deb`
3. `systemctl restart influxdb.service`
__Expected behavior:__
Systemd is able to restart the service.
__Actual behavior:__
Systemd fails to execute the script as user `influxdb`:
```
ls -la /usr/lib/influxdb/scripts/influxd-systemd-start.sh
-rwxr--r-- 1 root root 520 Jul 21 21:55 influxd-systemd-start.sh*
```
__Environment info:__
* System info: Tested on Debian 9 stretch and 10 buster
* InfluxDB version: v1.8.7
__Logs:__
```
Jul 23 11:57:56 phd-test-influx systemd[1]: Starting InfluxDB is an open-source, distributed, time series database...
Jul 23 11:57:56 phd-test-influx systemd[2853]: influxdb.service: Failed to execute command: Permission denied
Jul 23 11:57:56 phd-test-influx systemd[2853]: influxdb.service: Failed at step EXEC spawning /usr/lib/influxdb/scripts/influxd-systemd-start.sh: Permission denied
Jul 23 11:57:56 phd-test-influx systemd[1]: influxdb.service: Control process exited, code=exited, status=203/EXEC
Jul 23 11:57:56 phd-test-influx systemd[1]: influxdb.service: Failed with result 'exit-code'.
Jul 23 11:57:56 phd-test-influx systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
Jul 23 11:57:56 phd-test-influx systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Jul 23 11:57:56 phd-test-influx systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 1.
Jul 23 11:57:56 phd-test-influx systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
```
__Steps to fix:__
```sh
chmod +x /usr/lib/influxdb/scripts/influxd-systemd-start.sh
systemctl restart influxdb.service
```
opened 09:15PM - 01 Aug 21 UTC
closed 03:08PM - 19 Oct 21 UTC
Hello,
I had an influx database to manage sensors data in the building. I am a… complete beginner. Everything worked fine for 2 years. Today, after updating packages in raspbian and influx it does not work. I have messages:
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure 'influxd' is running.
After `sudo systemctl start influxdb` is
Job for influxdb.service failed because the control process exited with error code.
See "systemctl status influxdb.service" and "journalctl -xe" for details.
And after `systemctl status influxdb.service` i have:
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-08-01 23:11:23 CEST; 1min 12s ago
Docs: https://docs.influxdata.com/influxdb/
Process: 981 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=203/EXEC)
sie 01 23:11:23 raspberrypi systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
sie 01 23:11:23 raspberrypi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
sie 01 23:11:23 raspberrypi systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
sie 01 23:11:23 raspberrypi systemd[1]: influxdb.service: Start request repeated too quickly.
sie 01 23:11:23 raspberrypi systemd[1]: influxdb.service: Failed with result 'exit-code'.
sie 01 23:11:23 raspberrypi systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
What happend, can you help me?
1 Like