-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Bug: cannot create TUN device file node: file exists #884
Comments
Remove |
Thanks for your fast response! Unfortunately it doesn't work without
|
Actually gluetun is working as expected, I can't fix anything really I think. Maybe have a look at https://github.com/qdm12/gluetun/wiki/TUN-device-errors see if anything can help in there? |
I tried this already as you can see in my first post ^^ |
Did you figure it out?? |
Yes, I just had to run it as sudo |
Ran as sudo, didn't solve the problem for me.
|
@RiversideRocks try without |
Without device set:
As per the wiki I'm running as root. |
did you start it with sudo or as root user? |
I've tried both, as root and with sudo. |
Sorry I lost track of this. |
For anyone else having the same issue In a docker compose file, pass the ENV variables as: "- PGID=0 -PUID=0" so the container runs as root. |
Meh the container runs as root already (must for vpn and firewall), PGID and PUID is used only for subprocesses (openvpn, unbound) and files written (other than the tun device), so I doubt this would make any difference with the tun device creation. |
Is this urgent?
No
Host OS
Arch Linux x86_64
CPU arch
x86_64
VPN service provider
PrivateVPN
What are you using to run the container
docker run
What is the version of Gluetun
Running version latest built on 2022-03-09T21:14:11.771Z (commit 0795008)
What's the problem 🤔
2022/03/10 11:59:09 ERROR cannot create TUN device file node: file exists
Share your logs
Share your configuration
docker run -it --device /dev/net/tun --rm --cap-add=NET_ADMIN -e LOG_LEVEL=debug -e VPN_SERVICE_PROVIDER="perfect privacy" -e OPENVPN_USER=USERNAME -e OPENVPN_PASSWORD=PASSWORD -e SERVER_CITIES=Amsterdam qmcgaw/gluetun
The text was updated successfully, but these errors were encountered: