Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (â‹®) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Troubleshooting "Gluetun" VPN container failing after update (unhealthy)

Featured Replies

This is my first post 👋.

 

Six months ago I installed Unrain on an old PC mainly for Plex, backups and bitwarden. Anyway, I installed qbittorrent and jackett, but I needed their traffic to go through a VPN.

It took me several hours of browsing here, videos, etc, but I finally managed to setup a gluetun container with Private Internet VPN (not PIA), then making the other containers network to "none" and adding the "--net=container:gluetun" flag on the extra parameters.

 

Everything was working fine for a few months, until recently I saw the dreadful "update ready" flag on it, I said dreadful because I spent a lot of hours to get everything working. So I applied the update and boom, no internet connection for those containers going throught "gluetun".

 

This is the log on Gluetun:
 

023-09-10T14:26:39+01:00 INFO [healthcheck] program has been unhealthy for 31s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2023-09-10T14:26:39+01:00 INFO [vpn] stopping
2023-09-10T14:26:39+01:00 INFO [vpn] starting
2023-09-10T14:26:39+01:00 INFO [firewall] allowing VPN connection...
2023-09-10T14:26:39+01:00 INFO [openvpn] OpenVPN 2.5.8 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Nov  2 2022
2023-09-10T14:26:39+01:00 INFO [openvpn] library versions: OpenSSL 3.1.2 1 Aug 2023, LZO 2.10
2023-09-10T14:26:39+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]45.130.85.6:1194
2023-09-10T14:26:39+01:00 INFO [openvpn] UDP link local: (not bound)
2023-09-10T14:26:39+01:00 INFO [openvpn] UDP link remote: [AF_INET]45.130.85.6:1194
2023-09-10T14:26:39+01:00 WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1549', remote='link-mtu 1550'
2023-09-10T14:26:39+01:00 WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2023-09-10T14:26:39+01:00 INFO [openvpn] [PrivateVPN] Peer Connection Initiated with [AF_INET]45.130.85.6:1194
2023-09-10T14:26:40+01:00 INFO [openvpn] TUN/TAP device tun0 opened
2023-09-10T14:26:40+01:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2023-09-10T14:26:40+01:00 INFO [openvpn] /sbin/ip link set dev tun0 up
2023-09-10T14:26:40+01:00 INFO [openvpn] /sbin/ip addr add dev tun0 10.35.14.59/23
2023-09-10T14:26:40+01:00 INFO [openvpn] UID set to nonrootuser
2023-09-10T14:26:40+01:00 INFO [openvpn] Initialization Sequence Completed


Things I've checked:
- Everything seems fine with the VPN provider Private VPN. I've tried with the regular app and it does connect fine.
- I obviously restarted everything that can be restarded.

- I had screesnshots of the gluetun configuration saved so I've double checked that and it all looks fine, there are no obvious differences on the template.

I'm not including any screenshots as I don't think they are relevant for now (but let me know!).

At this point I wanted to ask two questions:
- Is there any obvious way you can find what's wrong with it?

- I'm also thinking about totally changing my setup and instead of using an external provider create mine as described on Spaceinvader video: 

 

Anyway, if anyone has any other recommendations on how to change my setup I'm all ears. Thanks!

Solved by Frozst

  • Author
  • Solution

After some troublehsooting I followed this video and switched from Gluetun to openvpn
 

https://www.youtube.com/watch?app=desktop&v=dLUkhtXaL88&ab_channel=ShortTechVids

 

It was extremely easy but my error was that the username I was using on the configuration file was a long random string found on my VPN account which actually was only the username for the proxy server and not the VPN, changing that to my email address worked wonders.

I will stick to openvpn, it seems it has way less overhead on the CPU and it's way easier to set up.

This issue can't be marked as solved by installing a whole other app because it doesn't fix the issue.

 

I'm facing the same issues. Updated to latest unraid version, updated all dockers - now gluetun cant ping github.com and it gets marked as unhealthy.

 

All other dockers works fine, has fine connection etc. Tried reinstalling gluetun by removing docker image and folder in appdata and installed again with minimum tweaking to settings - no luck getting outbound connection.

  • 1 month later...
On 9/15/2023 at 7:02 AM, erathor said:

This issue can't be marked as solved by installing a whole other app because it doesn't fix the issue.

 

I'm facing the same issues. Updated to latest unraid version, updated all dockers - now gluetun cant ping github.com and it gets marked as unhealthy.

 

All other dockers works fine, has fine connection etc. Tried reinstalling gluetun by removing docker image and folder in appdata and installed again with minimum tweaking to settings - no luck getting outbound connection.

I also run into this today. Strangely enough, works with a server location "Bulgaria", but not the "Netherlands". OpenVPNclient works fine with Netherlands. My provider is FastestVPN. Not sure what the deal is.

I think I figured out what is going on with Gluetun. The recent update seems to be doubling some of the parameters("VPN_SERVICE_PROVIDER: *" for example, added at the end) in the template and it was trying to open second connection (likely). I end up removing the duplicates and all is good, except there was also a non working server. Hope that helps.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.