Open Coelhomatias opened 4 years ago
This happened when I would run sudo influxd without sudo, so I suspect it is something about permissions, I tried giving the influxdb user root privileges but didn't work
Based on the logs above, it is failing to start because the user running influxdb doesn't have permission to create the required directory.
mkdir /var/lib/influxdb/data/_internal/_series: permission denied
How did you install influxdb and did you create your own systemd service definition?
In the meantime, you should be able to workaround those permission issues by chown
ing the directories in question to the user that is defined to run influxd. I believe you can find that by running systemctl show influxdb --no-pager | grep 'UID='
If that shows up as [not set]
, you can check the systemd service definition file to see if it's clear what user it's started as. The file can be found by running systemctl status influxdb --no-pager | grep -i loaded
. To set the proper permissions on the directory in question, once you've found what user you should change ownership to, run chown -R USER_YOU_FOUND /var/lib/influxdb
I'm very curious as to how influxdb was installed so we can look into fixing the installer if needed. I'm going to leave this open until we can confirm it's not a package/installer issue.
I installed using the installation process that can be found on the documentation. I managed to get a workaround by assigning the influxdb user as a root user. I'll be sure to try out your method as soon as I can. Thank you for the fast response!!
Steps to reproduce: List the minimal actions needed to reproduce the behavior.
Expected behavior: Service to start
Actual behavior: Service fails and tries to reconnect
Environment info:
Config:
Added bind-address = "127.0.0.1:8090" to /ect/influxdb/influxdb.conf
Logs: