Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegraf and influx dockers keep restarting #52

Open
sojab0on opened this issue Jun 4, 2023 · 1 comment
Open

Telegraf and influx dockers keep restarting #52

sojab0on opened this issue Jun 4, 2023 · 1 comment

Comments

@sojab0on
Copy link

sojab0on commented Jun 4, 2023

Hi after running your setup script trough ssh on my synlogy nas

the dockers for influxdb and telegraf keep rebooting

Influx docker failes with failed to load config file: open /etc/influxdb2/config.yml: permission denied
telegraf give back

2023-06-04T20:08:44Z E! [telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: open /etc/telegraf/telegraf.conf: permission denied

how can it be that the setup script runs fine and these 2 container do not have premision to get to. their configs

@DamoDCoder
Copy link

DamoDCoder commented Aug 11, 2023

I fixed this issue by setting the User and Group the container was running as
In Docker-Compose file

influxdb:
container_name: dsig-influx
user: "${UID}:${GID}"

And add these to the .env file in the root of the repo
UID=1000
GID=1001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants