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

[qBitTorrent] When using OpenVPN, hostPath mounts do not mount #1888

Closed
Nolij opened this issue Feb 13, 2022 · 16 comments
Closed

[qBitTorrent] When using OpenVPN, hostPath mounts do not mount #1888

Nolij opened this issue Feb 13, 2022 · 16 comments
Labels
bug Something isn't working

Comments

@Nolij
Copy link

Nolij commented Feb 13, 2022

SCALE version

TrueNAS-SCALE-22.02-RC.2 (with RC2 patcher applied)
App Version

4.4.0_9.0.44
Application Events

2022-02-13 10:16:47
Started container openvpn
2022-02-13 10:16:47
Created container openvpn
2022-02-13 10:16:34
Container image "ghcr.io/truecharts/openvpn-client:latest@sha256:bc3a56b2c195a4b4ce5c67fb0c209f38036521ebd316df2a7d68b425b9c48b30" already present on machine
2022-02-13 10:16:34
Started container qbittorrent-test
2022-02-13 10:16:33
Created container qbittorrent-test
2022-02-13 10:16:31
Container image "tccr.io/truecharts/qbittorrent:v4.4.0@sha256:b96e8102193a3be4a85cbaba167e656ed9ad1b3d86f9df0dd94de805daab28f6" already present on machine
2022-02-13 10:16:31
Started container inotify
2022-02-13 10:16:30
Created container inotify
2022-02-13 10:16:23
Container image "ghcr.io/truecharts/alpine:v3.14.2@sha256:4095394abbae907e94b1f2fd2e2de6c4f201a5b9704573243ca8eb16db8cdb7c" already present on machine
2022-02-13 10:16:22
Started container autopermissions
2022-02-13 10:16:20
Started container lb-port-6880
2022-02-13 10:16:20
Created container lb-port-6880
2022-02-13 10:16:20
Created container autopermissions
2022-02-13 10:16:19
Started container lb-port-10096
2022-02-13 10:16:19
Created container lb-port-10096
2022-02-13 10:16:18
Started container lb-port-6882
2022-02-13 10:16:18
Created container lb-port-6882
2022-02-13 10:15:58
Container image "rancher/klipper-lb:v0.1.2" already present on machine
2022-02-13 10:15:58
Add eth0 [172.16.28.157/16] from ix-net
2022-02-13 10:15:57
Container image "ghcr.io/truecharts/alpine:v3.14.2@sha256:4095394abbae907e94b1f2fd2e2de6c4f201a5b9704573243ca8eb16db8cdb7c" already present on machine
2022-02-13 10:15:57
Add eth0 [172.16.28.156/16] from ix-net
2022-02-13 10:15:56
Container image "rancher/klipper-lb:v0.1.2" already present on machine
2022-02-13 10:15:56
Add eth0 [172.16.28.155/16] from ix-net
2022-02-13 10:15:55
Container image "rancher/klipper-lb:v0.1.2" already present on machine
2022-02-13 10:15:55
Add eth0 [172.16.28.154/16] from ix-net
Successfully assigned ix-qbittorrent-test/qbittorrent-test-db5cdb75b-bqqkb to ix-truenas
2022-02-13 10:15:40
Successfully provisioned volume pvc-1137f436-f444-4e56-89f6-9b41c9362217
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-02-13 10:15:39
Created pod: qbittorrent-test-db5cdb75b-bqqkb
Successfully assigned ix-qbittorrent-test/svclb-qbittorrent-test-torrentudp-9k8kl to ix-truenas
2022-02-13 10:15:39
Created pod: svclb-qbittorrent-test-torrentudp-9k8kl
2022-02-13 10:15:39
Scaled up replica set qbittorrent-test-db5cdb75b to 1
Successfully assigned ix-qbittorrent-test/svclb-qbittorrent-test-torrent-x66lm to ix-truenas
2022-02-13 10:15:39
Created pod: svclb-qbittorrent-test-torrent-x66lm
Successfully assigned ix-qbittorrent-test/svclb-qbittorrent-test-blmph to ix-truenas
2022-02-13 10:15:39
Created pod: svclb-qbittorrent-test-blmph
2022-02-13 10:15:39
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2022-02-13 10:15:39
External provisioner is provisioning volume for claim "ix-qbittorrent-test/qbittorrent-test-config"

Application Logs

qbittorrent-test_qbittorrent-test-db5cdb75b-bqqkb_qbittorrent-test.log
qbittorrent-test_qbittorrent-test-db5cdb75b-bqqkb_openvpn.log

Application Configuration

image
image
image
(Synapse Data is a currently unused dataset I attached for testing purposes, my primary instance of this also experienced this on an almost identical configuration so I'm using a proxy, which is not as good for seeding, but nevertheless I wanted to keep it up while this is fixed)

Describe the bug

When using an OpenVPN connection (I suspect it is the same on WireGuard, but I have not tried that as I do not have access to a WireGuard VPN as of now) on a qBitTorrent app hostPath mounts are not mounted properly (also tried PVC, that didn't work either). The connection works (the logs show the VPN IP, not my IP), and adding and downloading torrents works, it just doesn't download them to my torrent dataset, making them inaccessible. This exact same configuration with VPN disabled works as intended, just without the VPN.
To Reproduce

  1. Create a qBitTorrent app
  2. Configure a hostPath/PVC mount
  3. Configure a valid OpenVPN connection
  4. Configure the app so it should function (proper ports, etc.)
  5. Start this app
  6. To observe: open shell for the qBitTorrent container (not the OpenVPN container, although nothing appears there either). The hostPath/PVC mount will not be mounted.
    Expected behavior

The configured mount should be there.
Screenshots

Additional context

@Nolij Nolij added the bug Something isn't working label Feb 13, 2022
@Ornias1993
Copy link
Member

Ornias1993 commented Feb 13, 2022

We've multiple users using this without these issues and i'm missing a LOT of required information in this buigreport.
Hence I would suggest going through our support process before (re)opening this bugreport.

So i'm closing this for now, untill the support staff can verify your setup is, in fact, correct.
(including possible permission issues)

@Nolij
Copy link
Author

Nolij commented Feb 13, 2022

I made literally 1 change to the config: change VPN to disabled. It works as intended. That's literally the ONLY change I made. As for information, I've provided all the information requested, and I'm happy to provide more if you could tell me what you would like me to provide.

@Ornias1993 Ornias1993 reopened this Feb 13, 2022
@Ornias1993
Copy link
Member

reopened due to verification by @Heavybullets8

@Heavybullets8
Copy link
Contributor

Heavybullets8 commented Feb 13, 2022

So it seems Wireguard is working just fine with hostpath, but OpenVPN is not. Below are both of my configurations.

Here is the Hostpath I used for both Wireguard and OpenVPN
hostpath

OpenVPN configuration
ovpn1

The Shell doesn't display a "welcome" message like it does with the Wireguard configuration you'll see below.
Also no /torrent mountpath

ovpn2

Wireguard Configuration
wg1

Wireguard Shell. with properly mounted /torrent as well as welcome message.
wg2

@indivisionjoe
Copy link

FWIW, I'm using OpenVPN and the HostPath part works fine. So, maybe this issue is triggered by some particular order of setting things up.

(I only landed here because I seem to have connectivity issues when using OpenVPN...)

@Ornias1993
Copy link
Member

@indivisionjoe Can you confirm you are also doing that in qbittorrent?

@Nolij
Copy link
Author

Nolij commented Feb 16, 2022

This also happened on Prowlarr, I just don't give Prowlarr any mounts so it didn't effect me. I assume it's just a generic issue with the way TrueCharts does OpenVPN.

@Ornias1993
Copy link
Member

I was not asking you @Nolij

@Nolij
Copy link
Author

Nolij commented Feb 16, 2022

I was not asking you @Nolij

I understand that, just adding additional information as it's discovered

@Ornias1993 Ornias1993 added this to the TrueNAS SCALE 22.11 ALPHA1 milestone Feb 22, 2022
@dlouie-swi
Copy link

This also affects transmission:
[ticket-1883677](https://discordapp.com/channels/830763548678291466/948718459066400798)

@stavros-k
Copy link
Member

This also affects transmission:
[ticket-1883677](https://discordapp.com/channels/830763548678291466/948718459066400798)

Thanks

@Gby56

This comment was marked as spam.

@Ornias1993
Copy link
Member

Please do not +1
OBVIOUSLY it's still an issue because the issue isn't closed.

@trackready

This comment was marked as spam.

@truecharts truecharts temporarily blocked trackready Mar 29, 2022
@Ornias1993
Copy link
Member

I'm going to lock this and contratz with the timeout.
When a maintainer tells you to STFU with the +1 comments, you stfu with the +1 comments.

@truecharts truecharts locked as spam and limited conversation to collaborators Mar 29, 2022
@Ornias1993
Copy link
Member

To be frank: I've not seen any more reports of this in latest releases after the bug refactor and we never where able to correctly reproduce and/or bugtrace this either. Please create a new issue if this issue still exists.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants