Closed GroteGehaktBal closed 2 months ago
@qdm12 is more or less the only maintainer of this project and works on it in his free time. Please:
The problem is
TUN device is not available: open /dev/net/tun: operation not permitted; creating it...
So it's a operation not permitted
error when attempting to open the /dev/net/tun file. Maybe this: https://github.com/qdm12/gluetun-wiki/blob/main/errors/tun.md#cannot-unix-open-tun-device-file-operation-not-permitted-and-cannot-create-tun-device-file-node-operation-not-permitted
Otherwise, you can try running docker run -it --rm --device /dev/net/tun --privileged alpine:3.19
and try to access /dev/net/tun for example with cat /dev/net/tun
to see if it works and debug this?
As a side note, I changed the gluetun behavior a bit in e07966f71e2150c61da809dd39542f691cd89383 so that it only attempts to create the tun device if it doesn't exist. If it already exists and cannot be accessed for some reason, it just terminates and logs the error. That was confusing at least for me reading your logs π
Thank you very much for the help. This has successfully resolved my issue.
I found out my proxmox config was not configured correctly.
My lxc config had this line:
lxc.cgroup.devices.allow: c 10:200 rwm
Instead of
lxc.cgroup2.devices.allow: c 10:200 rwm
Closed issues are NOT monitored, so commenting here is likely to be not seen. If you think this is still unresolved and have more information to bring, please create another issue.
This is an automated comment setup because @qdm12 is the sole maintainer of this project which became too popular to monitor issues closed.
Is this urgent?
Yes
Host OS
Debian Bookwurm
CPU arch
x86_64
VPN service provider
PureVPN
What are you using to run the container
docker-compose
What is the version of Gluetun
Running version latest built on 2024-04-25T10:47:11.146Z (commit c87c0e1)
What's the problem π€
It used to work before but without changing anything after a reboot it stopped working and gave me this error: creating TUN device file node: file exists
I have read the wiki on this: Wiki But unfortunately I was unable to fix it. I am using proxmox and passed the /dev/net/tun device through successfully with the 0666 permissions. I have tried removing the device from the docker compose file and running it in privileged mode.
The kernel module does also seem to be loaded and functioning:
Share your logs (at least 10 lines)
Share your configuration