qdm12 / gluetun-wiki

Home to the Markdown Wiki page for Gluetun
MIT License
346 stars 40 forks source link

Add json file permissions to healthcheck #80

Open vdrover opened 3 months ago

vdrover commented 3 months ago

URL to the Wiki page

https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md

What's missing?

I had a healthcheck issue that was resulting in this error: ERROR reading servers from file: decoding servers: invalid character '\x00' in string literal

I noticed my servers/json file had switched permissions from my user, to root. This was a problem as my gluetun runs as m ubuntu user, not root.

I would add this error to the list of potential problems (specifying linux users perhaps), and propose fixing permissions and restarting the container.

vdrover commented 3 months ago

See discussion here: https://github.com/qdm12/gluetun/discussions/2137

qdm12 commented 2 months ago

This was a problem as my gluetun runs as m ubuntu user, not root.

Gluetun needs to run as root to be able to change the firewall, create the vpn tunnel etc. How are you running it without root? 🤔

Note to future self: check out replies on https://github.com/qdm12/gluetun/discussions/2137#discussioncomment-10198134