[Solved] Gluetun doesn't start

Having any issues installing YAMS? This is the place to ask!
Bobs_Manager
Posts: 9
Joined: Sat Mar 29, 2025 9:15 am
Gender:
Germany

[Solved] Gluetun doesn't start

Post by Bobs_Manager »

Hello everyone,

I'm new to Yams and need some help here.
Until the point of starting the Deamons there is no Problem, but when it gets to starting Gluetun I get the Error:

Code: Select all

Error response from daemon: error gathering device information while adding custom device "/dev/net/tun": no such file or directory
Failed to start YAMS services

I looked in the Forum and searched on Google and other Forums but found nothing.

Im currently using an Proxmox Container in which Ubuntu 24.04 is installed, at the fresh install I put a new User, I install all prequisites and start the script.

I use Proton VPN as recommended, and all that worked fine.

If theres any log or something you need just say it :)

Best Regards
Bobs_Manager

Bobs_Manager
Posts: 9
Joined: Sat Mar 29, 2025 9:15 am
Gender:
Germany

Re: Gluetun doesn't start

Post by Bobs_Manager »

UPDATE:
I think I found the Problem. Proxmox seems to manage the Devices of the CT and that why Ubuntu couldn't create it, or thats my guess.
An Post of an Chinese Website seems to have an answer.

https://blog.slogra.com/post-804.html

Now I have an new Error, Yay :mrgreen:

Thats the Error:

Code: Select all

Error response from daemon: Could not check if docker-default AppArmor profile was loaded: open /sys/kernel/security/apparmor/profiles: permission denied
Failed to start YAMS services

Hope that you can help me!
Best Regards
Bobs_Manager

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

Re: Gluetun doesn't start

Post by rogs »

Hey @Bobs_Manager!
Thank you for the detailed post!

I have one question, are you using a Proxmox VM or a Proxmox LXC? YAMS doesn't run in unprivileged LXCs since it needs access to a privileged device (/dev/tun). If you are going to use YAMS in Proxmox I suggest you use a VM (that's actually my setup hehe) :mrgreen:

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
Bobs_Manager
Posts: 9
Joined: Sat Mar 29, 2025 9:15 am
Gender:
Germany

Re: Gluetun doesn't start

Post by Bobs_Manager »

Hey rogs,

I found an solution without using an VM.
You need to change the Configuration of the LXC like the Chinese Blog says, BUT YOU NEED TO LET THE

Code: Select all

lxc.apparmor.profile: unconfined

OUT

I guess the Problem there is that the Docker has the wrong config maybe?

But it works now! :mrgreen:

You could put this in the Common Issue Site so they don't need to find the Chinese Site or come to the clue of using a VM ;)

Because I need 3-4 hours of Troubleshoot to find this :roll:

But thanks anyways

Best Regards
Bobs_Manager

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

Re: Gluetun doesn't start

Post by rogs »

Oh, I'm glad you could fix the issue!

Can you do a more elaborate write up of how you fixed it? If you can throw a couple of screenshots that would be even better! I can add it to the YAMS website later today.

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
Bobs_Manager
Posts: 9
Joined: Sat Mar 29, 2025 9:15 am
Gender:
Germany

Re: Gluetun doesn't start

Post by Bobs_Manager »

Sure I will give my best !

Bobs_Manager
Posts: 9
Joined: Sat Mar 29, 2025 9:15 am
Gender:
Germany

Re: Gluetun doesn't start

Post by Bobs_Manager »

Prequesites before installing YAMS (Yust another Media Server) while using an Proxmox LXC

First of all DONT USE AN PRIVILEDGED LXC!

First you change the Config /etc/pve/lxc/<container-ID>.conf. There we add the /dev/net/tun device and configure it.

Open the /etc/pve/lxc/<container-ID>.conf config file by:

Code: Select all

nano /etc/pve/lxc/<container-ID>.conf

Change <container-ID> by the ID of you're Container!

Image

Add:

Code: Select all

lxc.cgroup.devices.allow: a
lxc.cap.drop: 
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file

to the bottom of the file (Like you see in the Screenshot!).

After that restart the YAMS Container and install YAMS normally like described in the installation documentation.

Hope that works :D
You need to look for Grammar and spelling errors but I hope its not that bad :)

Best Regards
Bobs_Manager

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

Re: Gluetun doesn't start

Post by rogs »

That is actually perfect, thanks! Is there a specific place you want it to be added?

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
Bobs_Manager
Posts: 9
Joined: Sat Mar 29, 2025 9:15 am
Gender:
Germany

Re: Gluetun doesn't start

Post by Bobs_Manager »

Maybe a subcatagory of the Installation site? or new site which is linked at the installation site

Bobs_Manager
Posts: 9
Joined: Sat Mar 29, 2025 9:15 am
Gender:
Germany

Re: Gluetun doesn't start

Post by Bobs_Manager »

Hey rogs,
Its not about that topic, but I stumbled on another error :|
should I make a new Topic about it or just throw it in here if I dont know how to help me?

Best regards
Bobs_Manager

Post Reply