-
Notifications
You must be signed in to change notification settings - Fork 13
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
OpenVPN failing: ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1) #82
Comments
if helpful, this is my compose but as I said this has just suddenly stopped working. So must be docker or maybe issue with vpn provider (PIA)
|
If it does, to permanently solve this, you might want to add the Another thing you can try is adding the following to your compose file: devices:
- /dev/net/tun I'm not sure what causes |
Thanks for the prompt and helpful response. I tried modprobe but this did not resolve the issue on either my prod (amd64 minipc) and test (arm64 rpi5) docker setups running latest debian 12 kernel or proxmox 6.8 kernel Adding the device (/dev/net/tun) to my compose file has resolved one error in the log and the container starts fine now in prod and test. I still get the error Very strange that it worked fine before without the device mapping in compose. I'll let you know if I can find out what is causing the network unreachable error. |
do you think the network unreachable error could be ipv6 related as i am using ipv4? |
Please try increasing your OpenVPN logging verbosity by adding
Unlikely as IPv6 config options should be filtered out if you don't have IPv6 connectivity: alpine-qbittorrentvpn/rootfs/scripts/init-scripts/vpn.sh Lines 221 to 226 in 7b9d766
Maybe you need to explicitly disable IPv6 in your container: sysctls:
- net.ipv6.conf.all.disable_ipv6=1 If you want to share sensitive information with me, you can use this PGP key for encryption: Trigus42_0xD14B5AEB_public.asc
|
Thanks again for your help. Looks like this issue is related to the latest version of containerd.io - see qdm12/gluetun#2606 I tried disabling ipv6 but this made no difference. I'll let you know if I track anything down by increasing the openvpn logging
|
Hello guys, This morning I also upgraded containerd.io without really thinking about it, and it created the same issue as @jata1. I did the steps Trigus42 suggested. Running modprobe tun didn't do anything, but adding the device (dev.net.tun) to my compose completely fixed the issue for me. I'm running Ubuntu 22.04.05 LTS 6.8 Kernel I use PrivateVPN Let me know if any of my logs and or any additional info I could provide would help with the issue of OP. Thanks! |
I think this is an intentional change upstream in containerd.io and not expecting it to change back. Might require that the instructions/guide for this (and other) containers will need to be updated. |
This issue also started for me as @acrobatmaxx mentioned adding that specific device fixes the issue here's a compose file as example:
|
@jata1 Since the main issue has been resolved, I’ve closed this thread. If you continue to have the |
Hi there, |
First of all - I wanted to say thanks for such a great image/project. Works really well.
This morning I restarted my server and now the container does not come up properly. From what I can see, everything looks fine/normal but I get this error and the container just tries to restart.
I have not changed anything on my system - the only thing I remember is that container.io package was updated recently.
Not sure if this is VPN provider related or docker or the container. log below (redacted a few bits)
The text was updated successfully, but these errors were encountered: