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

Error on telemetry docker restart #270

Open
Urkman opened this issue Dec 13, 2024 · 3 comments
Open

Error on telemetry docker restart #270

Urkman opened this issue Dec 13, 2024 · 3 comments

Comments

@Urkman
Copy link

Urkman commented Dec 13, 2024

Today I pulled the last repo changes on my server and restarted and recreated the docker container.
After this I only get the attached errors.

panic: open /config/0013_chain.pem: permission denied

the file "0013_chain.pem" is there and also has permissions for all to read.

Anyone with an idea on this?

Log entry:

goroutine 1 [running]:
app-1 | main.main()
app-1 | /go/src/fleet-telemetry/cmd/main.go:50 +0x106
app-1 | 2024/12/13 12:28:22 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
app-1 | {"activity":true,"context":"fleet-telemetry","level":"info","msg":"config_skipping_empty_metrics_provider","time":"2024-12-13T12:28:22Z"}
app-1 | {"activity":true,"context":"fleet-telemetry","level":"info","msg":"starting_server","time":"2024-12-13T12:28:22Z"}
app-1 | {"activity":true,"context":"fleet-telemetry","level":"info","msg":"kafka_registered","namespace":"telemetry","time":"2024-12-13T12:28:22Z"}
app-1 | {"activity":true,"context":"fleet-telemetry","dispatcher":"logger","level":"info","msg":"attempting_to_close","time":"2024-12-13T12:28:22Z"}
app-1 | {"activity":true,"context":"fleet-telemetry","dispatcher":"kafka","level":"info","msg":"attempting_to_close","time":"2024-12-13T12:28:22Z"}
app-1 | {"activity":true,"context":"fleet-telemetry","level":"info","msg":"stopped_server","time":"2024-12-13T12:28:22Z"}
app-1 | panic: open /config/0013_chain.pem: permission denied
app-1 |
app-1 | goroutine 1 [running]:
app-1 | main.main()
app-1 | /go/src/fleet-telemetry/cmd/main.go:50 +0x106

@Urkman
Copy link
Author

Urkman commented Dec 13, 2024

I had to switch back to the commit "03528fd" to get it back working again...
What can cause this problem? Now everything is working fine again...

@EmilOlovsson
Copy link

Check file permissions on file: /config/0013_chain.pem:

Fleet-telemetry is using this image:
FROM gcr.io/distroless/cc-debian11:nonroot

I quick fix is to run the docker container fleet-telemetry as user "root".
https://stackoverflow.com/a/48730146

@Urkman
Copy link
Author

Urkman commented Dec 14, 2024

I quick fix is to run the docker container fleet-telemetry as user "root".
https://stackoverflow.com/a/48730146

This seems to be the trick...

Thanks :)

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