Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Qbittorrent stops unexpectantly #1021

Closed
iewl opened this issue Jun 8, 2022 · 3 comments
Closed

Bug: Qbittorrent stops unexpectantly #1021

iewl opened this issue Jun 8, 2022 · 3 comments

Comments

@iewl
Copy link

iewl commented Jun 8, 2022

Is this urgent?

No

Host OS

Ubuntu

CPU arch

x86_64

VPN service provider

Private Internet Access

What are you using to run the container

docker-compose

What is the version of Gluetun

latest

What's the problem 🤔

I use Gluetun to make my Qbittorrent use VPN. This seems to work (only because I see the CPU usage go higher when I download, is there any other way to check?).
However, on unusual times the container stops working.
When I run docker ps -a, the container is still up, but the webpage is not reachable.
I have to run docker-compose again to make it work. Sometimes I have to stop and remove the container before I run docker-compose.
I cannot find anything in the logs. All I know is this didn't happen before Gluetun, but I'd love to keep using your service.
Is there any chance you could help me with this? Love to hear from you!

Share your logs

|       └── {172.16.0.0 fff00000}
├── Log settings:
|   └── Log level: INFO
├── Health settings:
|   ├── Server listening address: 127.0.0.1:9999
|   ├── Target address: cloudflare.com:443
|   └── VPN wait durations:
|       ├── Initial duration: 6s
|       └── Additional duration: 5s
├── Shadowsocks server settings:
|   └── Enabled: no
├── HTTP proxy settings:
|   └── Enabled: no
├── Control server settings:
|   ├── Listening address: :8000
|   └── Logging: yes
├── OS Alpine settings:
|   ├── Process UID: 1000
|   ├── Process GID: 1000
|   └── Timezone: Europe/Amsterdam
├── Public IP settings:
|   ├── Fetching: every 12h0m0s
|   └── IP file path: /tmp/gluetun/ip
└── Version settings:
    └── Enabled: yes
2022-06-07T09:03:29+02:00 INFO [routing] default route found: interface eth0, gateway 172.17.0.1 and assigned IP 172.17.0.2
2022-06-07T09:03:29+02:00 INFO [routing] adding route for 0.0.0.0/0
2022-06-07T09:03:29+02:00 INFO [firewall] setting allowed subnets...
2022-06-07T09:03:29+02:00 INFO [routing] default route found: interface eth0, gateway 172.17.0.1 and assigned IP 172.17.0.2
2022-06-07T09:03:29+02:00 INFO [routing] adding route for 10.0.0.0/8
2022-06-07T09:03:29+02:00 INFO [routing] adding route for 192.168.0.0/16
2022-06-07T09:03:29+02:00 INFO [routing] adding route for 172.16.0.0/12
2022-06-07T09:03:29+02:00 INFO TUN device is not available: open /dev/net/tun: no such file or directory; creating it...
2022-06-07T09:03:29+02:00 INFO [pprof] http server listening on [::]:6060
2022-06-07T09:03:29+02:00 INFO [http server] http server listening on [::]:8000
2022-06-07T09:03:29+02:00 INFO [healthcheck] listening on 127.0.0.1:9999
2022-06-07T09:03:29+02:00 INFO [dns over tls] using plaintext DNS at address 1.1.1.1
2022-06-07T09:03:29+02:00 INFO [firewall] allowing VPN connection...
2022-06-07T09:03:29+02:00 INFO [openvpn] OpenVPN 2.5.6 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Apr 17 2022
2022-06-07T09:03:29+02:00 INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-06-07T09:03:29+02:00 INFO [openvpn] CRL: loaded 1 CRLs from file -----BEGIN X509 CRL-----
2022-06-07T09:03:29+02:00 INFO [openvpn] MIIDWDCCAUAwDQYJKoZIhvcNAQENBQAwgegxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTETMBEGA1UEBxMKTG9zQW5nZWxlczEgMB4GA1UEChMXUHJpdmF0ZSBJbnRlcm5ldCBBY2Nlc3MxIDAeBgNVBAsTF1ByaXZhdGUgSW50ZXJuZXQgQWNjZXNzMSAwHgYDVQQDExdQcml2YXRlIEludGVybmV0IEFjY2VzczEgMB4GA1UEKRMXUHJpdmF0ZSBJbnRlcm5ldCBBY2Nlc3MxLzAtBgkqhkiG9w0BCQEWIHNlY3VyZUBwcml2YXRlaW50ZXJuZXRhY2Nlc3MuY29tFw0xNjA3MDgxOTAwNDZaFw0zNjA3MDMxOTAwNDZaMCYwEQIBARcMMTYwNzA4MTkwMDQ2MBECAQYXDDE2MDcwODE5MDA0NjANBgkqhkiG9w0BAQ0FAAOCAgEAppFfEpGsasjB1QgJcosGpzbf2kfRhM84o2TlqY1ua+Gi5TMdKydA3LJcNTjlI9a0TYAJfeRX5IkpoglSUuHuJgXhP3nEvX10mjXDpcu/YvM8TdE5JV2+EGqZ80kFtBeOq94WcpiVKFTR4fO+VkOK9zwspFfb1cNs9rHvgJ1QMkRUF8PpLN6AkntHY0+6DnigtSaKqldqjKTDTv2OeH3nPoh80SGrt0oCOmYKfWTJGpggMGKvIdvU3vH9+EuILZKKIskt+1dwdfA5Bkz1GLmiQG7+9ZZBQUjBG9Dos4hfX/rwJ3eU8oUIm4WoTz9rb71SOEuUUjP5NPy9HNx2vx+cVvLsTF4ZDZaUztW9o9JmIURDtbeyqxuHN3prlPWB6aj73IIm2dsDQvs3XXwRIxs8NwLbJ6CyEuvEOVCskdM8rdADWx1J0lRNlOJ0Z8ieLLEmYAA834VN1SboB6wJIAPxQU3rcBhXqO9y8aa2oRMg8NxZ5gr+PnKVMqag1x0IxbIgLxtkXQvxXxQHEMSODzvcOfK/nBRBsqTj30P+R87sU8titOoxNeRnBDRNhdEy/QGAqGh62ShPpQUCJdnKRiRTjnil9hMQHevoSuFKeEMO30FQL7BZyo37GFU+q1WPCplVZgCP9hC8Rn5K2+f6KLFo5bhtowSmu+GY1yZtg+RTtsA=
2022-06-07T09:03:29+02:00 INFO [openvpn] -----END X509 CRL-----
2022-06-07T09:03:29+02:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]143.244.41.215:1197
2022-06-07T09:03:29+02:00 INFO [openvpn] UDP link local: (not bound)
2022-06-07T09:03:29+02:00 INFO [openvpn] UDP link remote: [AF_INET]143.244.41.215:1197
2022-06-07T09:03:29+02:00 WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1569', remote='link-mtu 1554'
2022-06-07T09:03:29+02:00 WARN [openvpn] 'keysize' is used inconsistently, local='keysize 256', remote='keysize 128'
2022-06-07T09:03:29+02:00 WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2022-06-07T09:03:29+02:00 INFO [openvpn] [amsterdam412] Peer Connection Initiated with [AF_INET]143.244.41.215:1197
2022-06-07T09:03:29+02:00 INFO [openvpn] TUN/TAP device tun0 opened
2022-06-07T09:03:29+02:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2022-06-07T09:03:29+02:00 INFO [openvpn] /sbin/ip link set dev tun0 up
2022-06-07T09:03:29+02:00 INFO [openvpn] /sbin/ip addr add dev tun0 10.27.110.104/24
2022-06-07T09:03:29+02:00 INFO [openvpn] UID set to nonrootuser
2022-06-07T09:03:29+02:00 INFO [openvpn] Initialization Sequence Completed
2022-06-07T09:03:29+02:00 INFO [dns over tls] downloading DNS over TLS cryptographic files
2022-06-07T09:03:30+02:00 INFO [healthcheck] healthy!
2022-06-07T09:03:30+02:00 INFO [dns over tls] downloading hostnames and IP block lists
2022-06-07T09:03:40+02:00 INFO [healthcheck] unhealthy: cannot dial: dial tcp4: lookup cloudflare.com on 127.0.0.1:53: read udp 127.0.0.1:53504->127.0.0.1:53: read: connection refused
2022-06-07T09:03:46+02:00 INFO [healthcheck] program has been unhealthy for 6s: restarting VPN
2022-06-07T09:03:46+02:00 INFO [vpn] stopping
2022-06-07T09:03:46+02:00 ERROR [vpn] cannot get version information: Get "https://api.github.com/repos/qdm12/gluetun/commits": context canceled
2022-06-07T09:03:46+02:00 INFO [vpn] starting
2022-06-07T09:03:46+02:00 INFO [firewall] allowing VPN connection...
2022-06-07T09:03:46+02:00 INFO [openvpn] OpenVPN 2.5.6 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Apr 17 2022
2022-06-07T09:03:46+02:00 INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2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x0IxbIgLxtkXQvxXxQHEMSODzvcOfK/nBRBsqTj30P+R87sU8titOoxNeRnBDRNhdEy/QGAqGh62ShPpQUCJdnKRiRTjnil9hMQHevoSuFKeEMO30FQL7BZyo37GFU+q1WPCplVZgCP9hC8Rn5K2+f6KLFo5bhtowSmu+GY1yZtg+RTtsA=
2022-06-07T09:03:46+02:00 INFO [openvpn] -----END X509 CRL-----
2022-06-07T09:03:46+02:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]191.96.168.254:1197
2022-06-07T09:03:46+02:00 INFO [openvpn] UDP link local: (not bound)
2022-06-07T09:03:46+02:00 INFO [openvpn] UDP link remote: [AF_INET]191.96.168.254:1197
2022-06-07T09:03:46+02:00 WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1569', remote='link-mtu 1554'
2022-06-07T09:03:46+02:00 WARN [openvpn] 'keysize' is used inconsistently, local='keysize 256', remote='keysize 128'
2022-06-07T09:03:46+02:00 WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2022-06-07T09:03:46+02:00 INFO [openvpn] [amsterdam433] Peer Connection Initiated with [AF_INET]191.96.168.254:1197
2022-06-07T09:03:46+02:00 INFO [openvpn] TUN/TAP device tun0 opened
2022-06-07T09:03:46+02:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2022-06-07T09:03:46+02:00 INFO [openvpn] /sbin/ip link set dev tun0 up
2022-06-07T09:03:46+02:00 INFO [openvpn] /sbin/ip addr add dev tun0 10.44.110.57/24
2022-06-07T09:03:46+02:00 INFO [openvpn] UID set to nonrootuser
2022-06-07T09:03:46+02:00 INFO [openvpn] Initialization Sequence Completed
2022-06-07T09:03:56+02:00 INFO [dns over tls] init module 0: validator
2022-06-07T09:03:56+02:00 INFO [dns over tls] init module 1: iterator
2022-06-07T09:03:56+02:00 INFO [dns over tls] start of service (unbound 1.15.0).
2022-06-07T09:03:56+02:00 INFO [dns over tls] generate keytag query _ta-4a5c-4f66. NULL IN
2022-06-07T09:03:56+02:00 INFO [dns over tls] generate keytag query _ta-4a5c-4f66. NULL IN
2022-06-07T09:03:56+02:00 INFO [dns over tls] ready
2022-06-07T09:03:56+02:00 INFO [healthcheck] healthy!

Share your configuration

version: "3.6"
########################### NETWORKS
networks:
  t2_proxy:
    external:
 name: t2_proxy
  default:
    driver: bridge
########################### SECRETS
secrets:
authelia_jwt_secret:
file: $SECRETSDIR/authelia_jwt_secret
authelia_session_secret:
  file: $SECRETSDIR/authelia_session_secret
authelia_storage_mysql_password:
file: $SECRETSDIR/authelia_storage_mysql_password

volumes:
qbitdownloads:
driver_opts:
type: cifs
 o: username=xxx,password=xxx,uid=200,gid=300,vers=3.0
device: xxx

services:


  gluetun:
    image: qmcgaw/private-internet-access
container_name: gluetun
cap_add:
  - NET_ADMIN
network_mode: bridge
  ports:
 - 8888:8888/tcp # Tinyproxy
  - 8388:8388/tcp # Shadowsocks
      - 8388:8388/udp # Shadowsocks
  - 8999:8000/tcp # Built-in HTTP control server
 - 8112:8112 # deluge
- 8168:8168 # qbittorrent
 #- 8989:8989 # sonarr
 #- 9117:9117 # jackett
 #- 7878:7878 # radarr
 #- 6789:6789 # nzbget
 #- 5076:5076 # hydra2
    # command:
environment:
- VPNSP=private internet access
- TZ=${TZ}
- USER=xxx # Your username
- PASSWORD=xxx # Your password
- REGION=Netherlands # Your region, e.g. US East. No quotes.
- EXTRA_SUBNETS=10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
restart: unless-stopped


# Qbittorrent -Torrent Downloader
qbittorrent:
image: linuxserver/qbittorrent
container_name: qbittorrent
volumes:
- ${USERDIR}/docker/qbittorrent:/config
- xxx:/xxx/torrents
- type: volume
source: qbitdownloads
target: /xxx/downloads
volume:
nocopy: true
security_opt:
- no-new-privileges:true
restart: always
#    ports:
#     - "8168:8168"
#    networks:
#     - t2_proxy
environment:
- PUID=200
- PGID=300
- TZ=${TZ}
#      - UMASK=002
- WEBUI_PORT=8168
network_mode: "service:gluetun"
depends_on:
#      - jackett
- gluetun
#    labels:
#      - "traefik.enable=true"
#      ## HTTP Routers
#      - "traefik.http.routers.qbittorrent-rtr.entrypoints=https"
#      - "traefik.http.routers.qbittorrent-rtr.rule=Host(`qbit.$DOMAINNAME`)"
#      - "traefik.http.routers.qbittorrent-rtr.tls=true"
#      ## Middlewares
#      - "traefik.http.routers.qbittorrent-rtr.middlewares=chain-authelia@file"
#      ## HTTP Services
#      - "traefik.http.routers.qbittorrent-rtr.service=qbittorrent-svc"
#      - "traefik.http.services.qbittorrent-svc.loadbalancer.server.port=8168"
@qdm12
Copy link
Owner

qdm12 commented Jun 8, 2022

Are you using watchtower to automatically update gluetun perhaps?

@iewl
Copy link
Author

iewl commented Jun 8, 2022 via email

@qdm12
Copy link
Owner

qdm12 commented Jun 8, 2022

See #641 (feel free to subscribe too to be alerted once it's resolved). It's a docker problem, so for now I'd recommend to turn off watchtower for gluetun.

I'm working on it at github.com/qdm12/deunhealth although I'm still writing integration tests to make sure it behaves correctly, so fingers crossed it'll be done in a week or so!

Closing this for now to avoid duplicate issues

@qdm12 qdm12 closed this as completed Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants