Skip to content

Updating the GlueTUN VPN Containers

Please note if you are using DSM7.2 or higher you should use the Container Manager version of this guide from the menu.
UpdateDate
Amended the paths in line with the latest version of the guides 14/04/2023
Historic updates now at the end of the guide.

I have put together this quick guide to help pull updates for the GlueTUN VPN and any containers attached to it.

The Synology Docker UI does not support routing one container through another containers network connection and causes an error if you try to use standard update methods or Watchtower. So this little guide will get a script in place that you can either schedule or run manually.

Let’s begin!

Open up the Control Panel then ‘Task Scheduler’


Optional Step – Script Output

In order to see what your scheduled tasks are doing you can enable the Output Results within the Settings screen, you just need to select a folder to keep them in. I would create a subfolder in one of your shares.

Setting up the Script

Next you need to click on ‘Create’ > Scheduled Task > User-defined script

On the screen that now appears you can enter the details shown below.

You will see in this example I have unchecked the ‘Enabled’ option as this setup will be run manually, However if you would like to actually schedule this task to run at regular intervals you can leave this enabled.

  • Task: ‘GlueTUN Update’
  • User: ‘root’
  • Enabled: Unchecked (Unless you want on a schedule)

On the ‘Schedule’ tab we will not be changing any options, however if you decided to have a regular update nightly this is where you will set it.

OK now we are on the final tab ‘Task Settings’

This is where you will need to copy and paste the code below into the User-defined Script box.

Please note the folders and names of the .yml files are based on the guides on this site, if you have different names or paths change them!

The script does the following.

  1. Stops and removes any containers specified within the associated .yml (your data is safe)
  2. Pulls the latest versions of each of those containers if available
  3. Once downloads are completed brings up all the associated containers within the .yml

qBittorrent Version – Copy below

Bash
#!/bin/bash

docker-compose -f /volume1/docker/qbittorrentvpn.yml down 
wait
docker-compose -f /volume1/docker/qbittorrentvpn.yml pull
wait
docker-compose -f /volume1/docker/qbittorrentvpn.yml up -d

Deluge Version – Copy below

Bash
#!/bin/bash

docker-compose -f /volume1/docker/delugevpn.yml down 
wait
docker-compose -f /volume1/docker/delugevpn.yml pull
wait
docker-compose -f /volume1/docker/delugevpn.yml up -d

Your task should look like below dependent on which code you copied

Press OK to be taken back to the Task Schedule menu.

You can now either manually run the script whenever you please or if you set it on a schedule this will commence once the time/day is hit.

That’s it all done


Looking for some help, join our Discord community

If you are struggling with any steps in the guides or looking to branch out into other containers join our Discord community!

Buy me a beverage!

If you have found my site useful please consider pinging me a tip as it helps cover the cost of running things or just lets me stay hydrated. Plus 10% goes to the devs of the apps I do guides for every year.

Published inDockerSynologyUpdating Containers 7.1

16 Comments

  1. Harry Harry

    Hi,

    When updating the Gluetun VPN container i get this error:”2023-09-17T12:41:46+02:00 ERROR HTTP response status is not OK: 500 500 Internal Server Error: dialing: dial tcp4: lookup cloudflare.com on 1.1.1.1:53: write udp 172.20.0.2:58210->1.1.1.1:53: write: operation not permitted 2023-09-17T12:41:46+02:00 INFO Shutdown successful.”

    Any thoughts?

    Like to hear.

    • Dr_Frankenstein Dr_Frankenstein

      Hey sorry bit behind on comments – Did you get this working now? Are you on DSM7.1 or 7.2?

        • Dr_Frankenstein Dr_Frankenstein

          This points to a DNS issue, is that the full output of the update

          Can you do this bit, and it should give the full output of what happened

          Optional Step – Script Output

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

drfrankenstein.co.uk – writing Synology Docker Guides since 2016 – Join My Discord!