Skip to content

Bug: Always exit status 1 failure #3392

Description

@michnixweiss

Is this urgent?

No

Host OS

Debian Trixie

CPU arch

x86_64

VPN service provider

ProtonVPN

What are you using to run the container

Podman

What is the version of Gluetun

Running version latest built on 2026-06-29T11:29:25.299Z (commit 93cc5a4) on Linux 6.12.88+deb13-amd64 (x86_64)

What's the problem 🤔

When I stop or restart the container, it always exits with status 1.

Share your logs (at least 10 lines)

Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 WARN Caught OS signal terminated, shutting down
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO updater ticker: terminated ✔
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO dns ticker: terminated ✔
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO http server: terminated ✔
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO control: terminated ✔
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO updater: terminated ✔
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO tickers: terminated ✔
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO HTTP health server: terminated ✔
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO vpn: terminated ✔
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO shadowsocks proxy: terminated ✔
Jul 12 22:16:58  glueTun[86037]: 2026-07-12T22:16:58+02:00 INFO dns: terminated ✔
Jul 12 22:16:59  glueTun[86037]: 2026-07-12T22:16:59+02:00 WARN other: group shutdown timed out: 1 out of 3 goroutines: http proxy: goroutine shutdown timed out: after 400ms ⚠
Jul 12 22:16:59  glueTun[86037]: 2026-07-12T22:16:59+02:00 INFO [routing] routing cleanup...
Jul 12 22:16:59  glueTun[86037]: 2026-07-12T22:16:59+02:00 INFO [routing] default route found: interface br0.50, gateway 192.168.50.1, assigned IP 192.168.50.46 and family v4
Jul 12 22:16:59  glueTun[86037]: 2026-07-12T22:16:59+02:00 INFO [routing] deleting route for 0.0.0.0/0
Jul 12 22:16:59  glueTun[86037]:                          @@@
Jul 12 22:16:59  glueTun[86037]:                          @@@@
Jul 12 22:16:59  glueTun[86037]:                         @@@@@@
Jul 12 22:16:59  glueTun[86037]:                        @@@@.@@                       @@@@@@@@@@
Jul 12 22:16:59  glueTun[86037]:                        @@@@.@@@                   @@@@@@@@==@@@@
Jul 12 22:16:59  glueTun[86037]:                       @@@.@..@@                @@@@@@@=@..==@@@@
Jul 12 22:16:59  glueTun[86037]:             @@@@      @@@.@@.@@              @@@@@@===@@@@.=@@@
Jul 12 22:16:59  glueTun[86037]:            @...-@@   @@@@.@@.@@@  @@@     @@@@@@=======@@@=@@@@
Jul 12 22:16:59  glueTun[86037]:            @@@@@@@@  @@@.-%@.+@@@@@@@@  @@@@@%============@@@@
Jul 12 22:16:59  glueTun[86037]:                      @@@.--@..@@@@.-@@@@@@@==============@@@@
Jul 12 22:16:59  glueTun[86037]:               @@@@  @@@-@--@@.@@.---@@@@@==============#@@@@@
Jul 12 22:16:59  glueTun[86037]:               @@@   @@@.@@-@@.@@--@@@@@===============@@@@@@
Jul 12 22:16:59  glueTun[86037]:                    @@@@.@--@@@@@@@@@@================@@@@@@@
Jul 12 22:16:59  glueTun[86037]:                    @@@..--@@*@@@@@@================@@@@+*@@
Jul 12 22:16:59  glueTun[86037]:                    @@@.---@@.@@@@=================@@@@--@@
Jul 12 22:16:59  glueTun[86037]:                   @@@-.---@@@@@@================@@@@*--@@@
Jul 12 22:16:59  glueTun[86037]:                   @@@.:-#@@@@@@===============*@@@@.---@@
Jul 12 22:16:59  glueTun[86037]:                   @@@.-------.@@@============@@@@@@.--@@@
Jul 12 22:16:59  glueTun[86037]:                  @@@..--------:@@@=========@@@@@@@@.--@@@
Jul 12 22:16:59  glueTun[86037]:                  @@@.-@@@@@@@@@@@========@@@@@  @@@.--@@
Jul 12 22:16:59  glueTun[86037]:                  @@.@@@@===============@@@@@ @@@@@@---@@@@@@
Jul 12 22:16:59  glueTun[86037]:                 @@@@@@@==============@@@@@@@@@@@@*@---@@@@@@@@
Jul 12 22:16:59  glueTun[86037]:                 @@@@@@=============@@@@@ @@@...------------.*@@@
Jul 12 22:16:59  glueTun[86037]:                 @@@@%===========@@@@@@ @@@..------@@@@.-----.-@@@
Jul 12 22:16:59  glueTun[86037]:                 @@@@@@.=======@@@@@@  @@@.-------@@@@@@-.------=@@
Jul 12 22:16:59  glueTun[86037]:                @@@@@@@@@===@@@@@@     @@.------@@@@   @@@@.-----@@@
Jul 12 22:16:59  glueTun[86037]:                @@@==@@@=@@@@@@@      @@@.-@@@@@@@       @@@@@@@--@@
Jul 12 22:16:59  glueTun[86037]:                @@@@@@@@@@@@@         @@@@@@@@                @@@@@@@
Jul 12 22:16:59  glueTun[86037]:                 @@@@@@@@             @@@@                       @@@@
Jul 12 22:16:59  glueTun[86037]:                                                                        
Jul 12 22:16:59  glueTun[86037]: 2026-07-12T22:16:59+02:00 WARN Shutdown failed: ordered shutdown timed out: other: group shutdown timed out: 1 out of 3 goroutines: http proxy: goroutine shutdown timed out: after 400ms
Jul 12 22:16:59  glueTun[100604]: dab3eae3c97f007803004e4be8a4e25c9efb7dfd0ecee8993688621fe2b80529

Share your configuration

[Unit]
Description=Lightweight swiss-army-knife-like VPN client to multiple VPN service providers

[Container]
AddCapability=NET_ADMIN
AddCapability=NET_RAW
AddDevice=/dev/net/tun:/dev/net/tun
AutoUpdate=registry
ContainerName=glueTun

Environment=HTTPPROXY=on
Environment=VPN_SERVICE_PROVIDER=protonvpn
Environment=VPN_TYPE=wireguard
Environment=SERVER_COUNTRIES=Netherlands
Environment=FREE_ONLY=on
Environment=WIREGUARD_PRIVATE_KEY=*****************
Environment=TZ=Europe/Berlin
Environment=UPDATER_PERIOD=24h

HealthCmd=/gluetun-entrypoint healthcheck
HealthInterval=30s
HealthOnFailure=kill
HealthRetries=5
HealthStartPeriod=10s
HealthTimeout=5s

Image=docker.io/qmcgaw/gluetun:latest
PodmanArgs=--memory 200000000
PodmanArgs=--cpu-shares 2048
PodmanArgs=--stop-timeout=60
PublishPort=8888:8888/tcp
PublishPort=8388:8388/tcp
PublishPort=8388:8388/udp
Volume=/path/to/glueTun/data:/gluetun
Volume=/etc/localtime:/etc/localtime:ro

[Service]
TimeoutStopSec=60
Restart=always

[Install]
WantedBy=default.target

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions