[Solved] "/dev/net/tun": no such file or directory`

Found an issue with YAMS? Post is here! (Not for troubleshooting!)
Post Reply
usr3
Posts: 5
Joined: Tue Feb 06, 2024 5:25 pm
Micronesia

[Solved] "/dev/net/tun": no such file or directory`

Post by usr3 »

Thought i would post a something fixed an issue for me for the following error, I believe its in reference to gluetun:

Code: Select all

Error response from daemon: error gathering device information while adding custom device "/dev/net/tun": no such file or directory`

Heres the fix:

Code: Select all

sudo mkdir -p /dev/net
sudo mknod /dev/net/tun c 10 200
sudo chmod 600 /dev/net/tun

However, when I reboot the serve I need to re-add it, could someone hint why?

User avatar
rogs
Site Admin
Posts: 158
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: "/dev/net/tun": no such file or directory`

Post by rogs »

Hey!

First of all, the issue is not "Solved", so I removed the "[Solved]" flair.

Second, you should not need to create your own /dev/net/tun device. It looks like you are running YAMS in an unsupported environment. Can you give more insight on how are you running YAMS? Is it bare metal? Is it a VM? VPS? LXC? What OS are you running?

Cheers!

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
usr3
Posts: 5
Joined: Tue Feb 06, 2024 5:25 pm
Micronesia

Re: "/dev/net/tun": no such file or directory`

Post by usr3 »

Hi, im running on proxmox using an ubuntu lxc (im new to everything .. :roll: )

User avatar
rogs
Site Admin
Posts: 158
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: "/dev/net/tun": no such file or directory`

Post by rogs »

That's what I thought :)

You need to run a Proxmox privileged LXC in order to have access to /dev/tun devices.

https://forum.proxmox.com/threads/how-t ... ner.25339/

I'm marking the issue as solved since it's not related to YAMS! :D

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
usr3
Posts: 5
Joined: Tue Feb 06, 2024 5:25 pm
Micronesia

Re: [Solved] "/dev/net/tun": no such file or directory`

Post by usr3 »

Thanks, I think it's fixed now due to that post.

1000_Sparrows
Posts: 7
Joined: Thu Sep 26, 2024 10:00 pm
United States of America

Re: [Solved] "/dev/net/tun": no such file or directory`

Post by 1000_Sparrows »

I am dealing with this same issue. I created a container that has Unprivileged Container: No as the setting on my Proxmox server. I have not tried creating the tun item either.

FireWyvern
Posts: 1
Joined: Fri Nov 22, 2024 3:40 pm
Bahamas

Re: [Solved] "/dev/net/tun": no such file or directory`

Post by FireWyvern »

I don't think running qbt in privileged LXC is a good idea. Is there any way to omit gluetun from the setup?

On another note, I also don't need jellyfin since i have it in another lxc but install.sh still asks me anyway, how do I omit that from the setup? should I open new issue?

User avatar
rogs
Site Admin
Posts: 158
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: [Solved] "/dev/net/tun": no such file or directory`

Post by rogs »

Hey @usr3!

To omit Gluetun you can just answer "No" to the VPN question.

Regarding the media server, it is an integral part of YAMS and we are not going to remove it from the installer. If you don't need it, feel free to manually remove it from your result docker compose file :D

Cheers!

Roger.

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
Post Reply