Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

expressvpn issue? #8

Closed
malventano opened this issue Jun 18, 2020 · 14 comments
Closed

expressvpn issue? #8

malventano opened this issue Jun 18, 2020 · 14 comments
Labels
bug Something isn't working

Comments

@malventano
Copy link

malventano commented Jun 18, 2020

Attempting to use with expressvpn. container fails to start. it appears to be pulling the relevant .ovpn but looks to be missing some variables from somewhere? log:

Trying to use OpenVPN provider: EXPRESSVPN
Connecting to raw.githubusercontent.com (151.101.0.133:443)
saving to '/config/openvpn/config.ovpn'
config.ovpn          100% |********************************|  6131  0:00:00 ETA
'/config/openvpn/config.ovpn' saved
Found OpenVPN configuration: /config/openvpn/config.ovpn for provider EXPRESSVPN at https://raw.githubusercontent.com/haugene/docker-transmission-openvpn/master/openvpn/expressvpn/my_expressvpn_usa_-_san_francisco_udp.ovpn using it
[cont-init.d] 02-setup-openvpn: exited 0.
[cont-init.d] 03-setup-iptables: executing... 
One of the following variables could not be detected in the VPN configuration:
    VPN_PROTO:  
    VPN_HOST:   usa-sanfrancisco-ca-version-2.expressnetw.com
    VPN_PORT:   1195
    
[cont-init.d] 03-setup-iptables: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Using similar settings with haugene/docker-transmission-openvpn appears to function properly.

@guillaumedsde
Copy link
Owner

Yep, I've included a fallback default value in case the config does not have a protocol (fallback to udp) or is missing a port (fallback to 1194), these changes are in ac5d7d0 once the pipeline is finished could you pull the new image and let me know if everything works?

@malventano
Copy link
Author

Looks like the pipeline job failed...?

@guillaumedsde
Copy link
Owner

whoops, this should be fixed after this pipeline hehe https://gitlab.com/guillaumedsde/alpine-qbittorrent-openvpn/-/pipelines/157797418

@malventano
Copy link
Author

malventano commented Jun 18, 2020

Looks like it started up ok. Will do some more testing. The only thing that looked odd in the log this time was:

[cont-init.d] 02-setup-openvpn: exited 0.
[cont-init.d] 03-setup-iptables: executing... 
sh: missing ]
/var/run/s6/etc/cont-init.d/03-setup-iptables: line 27: -z: not found
[cont-init.d] 03-setup-iptables: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

@malventano
Copy link
Author

malventano commented Jun 18, 2020

Hmm, maybe it's not actually working. I was getting odd segfaults from qbittorrent-nox when porting over an existing config from markusmcnugen/qbittorrentvpn:latest (seemed to happen when the client tried to check fast-resume data), so I tried starting with a clean config, I checked logs, looked like the VPN was up, etc. Opened the webui and went to search - search plugins - check for updates, and the log started throwing a bunch of these:

QIODevice::read (QProcess): device not open
Could not parse Nova search engine capabilities, msg:  
QIODevice::read (QProcess): device not open

(qBittorrent was unable to pull the plugin list and just stalls when trying)

@guillaumedsde
Copy link
Owner

Looks like it started up ok. Will do some more testing. The only thing that looked odd in the log this time was:

[cont-init.d] 02-setup-openvpn: exited 0.
[cont-init.d] 03-setup-iptables: executing... 
sh: missing ]
/var/run/s6/etc/cont-init.d/03-setup-iptables: line 27: -z: not found
[cont-init.d] 03-setup-iptables: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

weird my container didn't have this issue. In any case I know where this is from, the latest commit fixes these issues along with making shell script variable expansion more reliable.

@guillaumedsde
Copy link
Owner

Hmm, maybe it's not actually working. I was getting odd segfaults from qbittorrent-nox when porting over an existing config from markusmcnugen/qbittorrentvpn:latest (seemed to happen when the client tried to check fast-resume data), so I tried starting with a clean config, I checked logs, looked like the VPN was up, etc. Opened the webui and went to search - search plugins - check for updates, and the log started throwing a bunch of these:

QIODevice::read (QProcess): device not open
Could not parse Nova search engine capabilities, msg:  
QIODevice::read (QProcess): device not open

(qBittorrent was unable to pull the plugin list and just stalls when trying)

yeah from memory, the search engine requires python which isnt installed here , I'm looking into this

@guillaumedsde
Copy link
Owner

Yeah that's the issue, python isn't installed, I've set the CI to build an image tagged python (automatic builds are enabled for this tag).

Once this CI pipeline is done (and if it is sucessful ;) ) you can pull guillaumedsde/alpine-qbittorrent-openvpn:python and you should be able to add search engines, let me know how that goes

@guillaumedsde guillaumedsde added the bug Something isn't working label Jun 18, 2020
@malventano
Copy link
Author

malventano commented Jun 18, 2020

Failed again :P (the pipeline, that is)

@guillaumedsde
Copy link
Owner

damn hehe those multi architecture builds are not meant for gitlab CI.... (computationally expensive).

I've fixed it (again) the image is built at: guillaumedsde/alpine-qbittorrent-openvpn:python

@malventano
Copy link
Author

Ok, switched to new image and cleared all settings. Search can pull down plugins now, but with that working, I think we're back to exposing some oddities that I was originally seeing:

  • Search results for the same term from the same engines are showing only a small fraction compared to the same client running on markusmcnugen or on a windows test machine (also behind VPN).
  • A torrent with 57 seeds only shows 11 seeds on these builds and appears to be stuck 'downloading metadata' indefinitely. The same operations on markusmcnugen with the same settings behave as expected.
  • Importing existing settings from markusmcnugen (on the same version of qBittorrent) appears to try to continue downloading the existing test torrent, but throws segfaults every time the client tries to check fast-resume data.

...so I can't put my finger on it, but something is getting in the way of the traffic somehow.

@guillaumedsde
Copy link
Owner

hum...

  • so regarding the first issue, could so post here the logs for qbittorrent, if you've mounted the container's config directory they should be (inside the container) at /config/qBittorrent/data/logs/ (probably have a glance at them, they might contain sensitive information, I'm not sure).
  • regarding your second point, it appears that MarkusMcNugen/docker-qBittorrentvpn implements port forwarding (as far as I can tell, not through the VPN tunnel) does your VPN provider support this? If it does and it is enabled (you can check with https://canyouseeme.org/) , it is possible that if port forwarding is enabled you might connect to more peers. Also, did you try both clients at roughly the same time (peers could have disconnected in between the two tests)?
  • This is also curious, technically, this version of qBittorrent is built with musl instead of glib (although that probably isnt the reason for the segfault), the answer to this might also be found in the qbittorrent logs

@guillaumedsde
Copy link
Owner

Yeah that's the issue, python isn't installed, I've set the CI to build an image tagged python (automatic builds are enabled for this tag).

Once this CI pipeline is done (and if it is sucessful ;) ) you can pull guillaumedsde/alpine-qbittorrent-openvpn:python and you should be able to add search engines, let me know how that goes

I've documented the python variant of the image in the README in commit f828216

@guillaumedsde
Copy link
Owner

Seems like the issue is resolved? feel free to reopen if that's not the case :)

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

2 participants