truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.13k stars 617 forks source link

qbittorrent using wireguard vpn fails #7949

Closed imjustleaving closed 1 year ago

imjustleaving commented 1 year ago

App Name

qbittorrent

SCALE Version

22.12.2

App Version

4.5.1_15.0.1

Application Events

2023-04-12 8:29:59
Back-off restarting failed container
2023-04-12 8:29:57
Add eth0 [172.16.1.162/16] from ix-net
2023-04-12 8:29:57
Container image "tccr.io/truecharts/qbittorrent:4.5.1@sha256:edff15401ed7dc81cca2cfde56eeb8151044fd9dfa11b1a8d8f3b35d4554fa91" already present on machine
2023-04-12 8:29:57
Created container qbittorrent
2023-04-12 8:29:57
Started container qbittorrent
2023-04-12 8:29:57
Container image "tccr.io/truecharts/wireguard:v1.0.20210914@sha256:9f56e5660e8df8d4d38521ed73a4cc29fa24bf578007bfbe633e00184e2ebfbc" already present on machine
2023-04-12 8:29:57
Created container qbittorrent-vpn
2023-04-12 8:29:57
Started container qbittorrent-vpn
2023-04-12 8:29:56
Scaled up replica set qbittorrent-58d87d56c9 to 1
2023-04-12 8:29:56
Created pod: qbittorrent-58d87d56c9-l77hq
2023-04-12 8:29:56
Successfully assigned ix-qbittorrent/qbittorrent-58d87d56c9-l77hq to ix-truenas
2023-04-12 8:29:54
Job completed
2023-04-12 8:29:54
Scaled down replica set qbittorrent-865cbb4b6d to 0 from 1
2023-04-12 8:29:54
Deleted pod: qbittorrent-865cbb4b6d-j5wpb
2023-04-12 8:29:47
Created pod: qbittorrent-manifests-k5z4x
2023-04-12 8:29:47
Successfully assigned ix-qbittorrent/qbittorrent-manifests-k5z4x to ix-truenas
2023-04-12 8:29:47
Add eth0 [172.16.1.161/16] from ix-net
2023-04-12 8:29:47
Container image "tccr.io/truecharts/kubectl:v1.26.0@sha256:6bef58bf5b7850021884cf6ea2f32333cbfcd99be79d1fff0d6e5ced1ac044b4" already present on machine
2023-04-12 8:29:47
Created container qbittorrent-manifests
2023-04-12 8:29:47
Started container qbittorrent-manifests

Application Logs

-----VPN LOGS------

2023-04-12 12:40:44.743682+00:00sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
2023-04-12 12:40:44.744400+00:00sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
2023-04-12 12:40:44.744498+00:00[ERROR] Unable to redirect iptables binaries. (Are you running in an unprivileged pod?)
2023-04-12 12:40:44.744553+00:00[ERROR] Received non-zero exit code (1) executing the command source "/shim/iptables-backend.sh" on line 10.

----QBIT LOGS-----

2023-04-12 12:55:26.637759+00:00QFile::at: Cannot set file position 0
2023-04-12 12:55:26.637905+00:00(N) 2023-04-12T08:55:26 - qBittorrent v4.5.1 started
2023-04-12 12:55:26.637921+00:00(N) 2023-04-12T08:55:26 - Using config directory: /config/qBittorrent
2023-04-12 12:55:26.637929+00:00WebUI will be started shortly after internal preparations. Please wait...
2023-04-12 12:55:26.638091+00:00(N) 2023-04-12T08:55:26 - Trying to listen on the following list of IP addresses: "0.0.0.0:50413,[::]:50413"
2023-04-12 12:55:26.668633+00:00(I) 2023-04-12T08:55:26 - Peer ID: "-qB4510-"
2023-04-12 12:55:26.668657+00:00(I) 2023-04-12T08:55:26 - HTTP User-Agent: "qBittorrent/4.5.1"
2023-04-12 12:55:26.668662+00:00(I) 2023-04-12T08:55:26 - Distributed Hash Table (DHT) support: ON
2023-04-12 12:55:26.668674+00:00(I) 2023-04-12T08:55:26 - Local Peer Discovery support: ON
2023-04-12 12:55:26.668679+00:00(I) 2023-04-12T08:55:26 - Peer Exchange (PeX) support: ON
2023-04-12 12:55:26.668684+00:00(I) 2023-04-12T08:55:26 - Anonymous mode: OFF
2023-04-12 12:55:26.668688+00:00(I) 2023-04-12T08:55:26 - Encryption support: ON
2023-04-12 12:55:26.668928+00:00(I) 2023-04-12T08:55:26 - UPnP/NAT-PMP support: ON
2023-04-12 12:55:26.669261+00:00(I) 2023-04-12T08:55:26 - Successfully listening on IP. IP: "127.0.0.1". Port: "TCP/50413"
2023-04-12 12:55:26.669275+00:00(I) 2023-04-12T08:55:26 - Successfully listening on IP. IP: "127.0.0.1". Port: "UDP/50413"
2023-04-12 12:55:26.669279+00:00(I) 2023-04-12T08:55:26 - Successfully listening on IP. IP: "172.16.1.172". Port: "TCP/50413"
2023-04-12 12:55:26.669289+00:00(I) 2023-04-12T08:55:26 - Successfully listening on IP. IP: "172.16.1.172". Port: "UDP/50413"
2023-04-12 12:55:26.674979+00:00(I) 2023-04-12T08:55:26 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Fri Mar 31 20:22:10 2023.
2023-04-12 12:55:26.676887+00:00(N) 2023-04-12T08:55:26 - Using built-in Web UI.
2023-04-12 12:55:26.676911+00:00(N) 2023-04-12T08:55:26 - Web UI translation for selected locale (en) has been successfully loaded.
2023-04-12 12:55:26.676990+00:00(N) 2023-04-12T08:55:26 - Web UI: Now listening on IP: *, port: 8080
2023-04-12 12:55:26.794102+00:00(I) 2023-04-12T08:55:26 - Detected external IP. IP: "71.163.61.170"
2023-04-12 12:58:02.690990+00:00(W) 2023-04-12T08:58:02 - UPnP/NAT-PMP port mapping failed. Message: "could not map port using UPnP: no router found"
2023-04-12 12:58:02.691097+00:00(W) 2023-04-12T08:58:02 - UPnP/NAT-PMP port mapping failed. Message: "could not map port using UPnP: no router found"

Application Configuration

App defaults PLUS

Host path for torrent location
VPN WIREGUARD with the following config:    

image image

Describe the bug

when attempting to use the wireguard vpn protocol, I get the error found in the application logs and the pod wont deploy.

To Reproduce

Install QB app with config described above. Start it. Traverse to the qb URL without error Edit App config to add VPN config. Start app Hangs on starting and produces logs above.

Expected Behavior

the past version of qbit deployed perfectly with this exact configuration.

Screenshots

see above

Additional Context

clearly the issue is found in the logs from the vpn container - i just dont know how to fix it and make it persistent.

I've read and agree with the following

imjustleaving commented 1 year ago

seems to be the same issue as https://github.com/truecharts/charts/issues/7932 where vpn container is not privileged/root/uid/=0 and therefore cannot write the iptables.

PrivatePuffin commented 1 year ago

Yes, keeping this one as well as it covers different code portions.

ajshell1 commented 1 year ago

I'm getting the same error with Transmission, FYI

PrivatePuffin commented 1 year ago

I'm getting the same error with Transmission, FYI

Not relevant, VPN's are not configured per-app ni the code. Please don't +1

imjustleaving commented 1 year ago

timeline on this? (not to be annoying but im dead in the water until this is up...)

PrivatePuffin commented 1 year ago

We generally do not give timelines.

mgoulet65 commented 1 year ago

OpenVPN also fails with QB...I tried gluetun, WG and OVPN.

PrivatePuffin commented 1 year ago

Can we stop making +1 comments now? Otherwise I need to start giving out timeouts and start locking even more issue reports.

imjustleaving commented 1 year ago

did the update released last night (4/13/23) and the issue persists

PrivatePuffin commented 1 year ago

There have been no fixes for VPN included in latest patch.

stavros-k commented 1 year ago

@all-contributors please add @imjustleaving for bug