I'm having issues with my Docker setup involving qBittorrent and Gluetun. Here's a snippet of my YAML configuration:
```yaml
services:
gluetun:
image: qmcgaw/gluetun:latest
container_name: GluetunVPN
restart: unless-stopped
mem_limit: 512MB
healthcheck:
test: ["CMD-SHELL", "wget -q --spider https://www.google.com || exit 1"]
interval: 30s
retries: 5
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qBittorrent
network_mode: "service:gluetun"
restart: unless-stopped
mem_limit: 1500MB
volumes:
- /volume1/docker/qbittorrent:/config
```
My server shuts down daily and when it starts up again, everything launches fine except qBittorrent. It exits with code 128, and the last logs show it's exiting cleanly after some startup messages. I've tried several fixes but nothing seems to work. Any ideas?
4 Answers
Have you considered commenting out the 'depends_on' directive? Sometimes, it might cause qBittorrent to start before Gluetun is fully ready. Just be careful—if there's no VPN active, you risk leaking your IP.
Make sure that your qBittorrent settings are correctly configured to only utilize /dev/net/tun; that can prevent leaks. Also, if you're using ProtonVPN, check that you disabled authentication for localhost connections.
I recommend checking the memory limits. Sometimes, if a container needs more resources than allocated, it may exit with an error like code 137, indicating it was killed due to running out of memory.
It sounds like there might be an issue with the entrypoint you're using for qBittorrent. You could try removing that delay altogether since you've already made gluetun a dependency. That way, it won't have to sleep and can start as soon as gluetun is up and running.
Related Questions
Fix Not Being Able To Add New Categories With Intuitive Category Checklist For Wordpress
Get Real User IP Without Installing Cloudflare Apache Module
How to Get Total Line Count In Visual Studio 2013 Without Addons
Install and Configure PhpMyAdmin on Centos 7
How To Setup PostfixAdmin With Dovecot and Postfix Virtual Mailbox
Dovecot Error Unknown database driver mysql