[Support] binhex - qBittorrentVPN


Recommended Posts

Hey guys,

I'm having trouble setting up the qbittorrentvpn contrainer. Whenever I set strict portforwarding to enabled i can't access the webUI, but when it is disabled i can. When i checked the logs it gave the this error:
Unable to successfully download PIA json to generate token from URL 'https://privateinternetaccess.com/gtoken/generateToken'

Didn't get this error when it was disabled.

The anwser is probably simple but I can't figure out what im doing wrong. Anyone have any idea on how to fix this?

- Tilly

Link to comment
30 minutes ago, Tilly said:

Nope I don't have any torrent running yet, just setting the container but ran into this issue

ATM I can torrent if I turn off strict portforwarding but it will seems to get throttled after a while. The error we were getting seems to be an issue with getting a token for a port forwarding token. This looks to be a PIA issue as when I go to the URL the page has been moved.

Link to comment

Hi All, 

 

After a server hung up, i needed to restart my server, after restarting i noticed that all dockers i use from binhex (sabnzbdvpn, qbittorentvpn, delugevpn) do not work anymore. 

 

After 11 or so tries they all stop with messages in the logs. (See Below:)

 

It seems like somethings changed in PIA wireguard protocol. 

I did change sabnzbd to ovpn files from wireguard, and that one started to work. 

The other 2 containers i can manage to start, but the port forwarding doesnt work anymore. 

Never the less, i want to keep em all 3 on wireguard, openvpn uses more resources i noticed. 

 

I deleting and pulling the dockers again, but doesnt resolve the issue. 

Tried same account, with same server on anther machine with linux os, and PIA app and that does work. 

Anyway or work around available for this issue ? 

 

** I changed my credentials in the logs ** 

 

2021-11-15 17:05:31.887802 [info] Host is running unRAID
2021-11-15 17:05:32.315240 [info] System information Linux 99e19a753277 5.14.15-Unraid #1 SMP Thu Oct 28 09:56:33 PDT 2021 x86_64 GNU/Linux
2021-11-15 17:05:32.801394 [info] OS_ARCH defined as 'x86-64'
2021-11-15 17:05:33.331078 [info] PUID defined as '99'
2021-11-15 17:05:34.065528 [info] PGID defined as '100'
2021-11-15 17:05:37.538704 [info] UMASK defined as '000'
2021-11-15 17:05:37.626182 [info] Permissions already set for '/config'
2021-11-15 17:05:37.948121 [info] Deleting files in /tmp (non recursive)...
2021-11-15 17:05:38.487755 [info] VPN_ENABLED defined as 'yes'
2021-11-15 17:05:38.535149 [info] VPN_CLIENT defined as 'wireguard'
2021-11-15 17:05:38.574366 [info] VPN_PROV defined as 'pia'
2021-11-15 17:05:40.816486 [info] VPN_CONFIG not defined (wireguard config doesnt file exists), defaulting to '/config/wireguard/wg0.conf'
2021-11-15 17:05:40.857466 [info] VPN_REMOTE_SERVER not defined (wireguard config doesnt file exists), defaulting to 'nl-amsterdam.privacy.network'
2021-11-15 17:05:41.203294 [info] VPN_REMOTE_PORT not defined (wireguard config file doesnt exists), identified port as '1337'
2021-11-15 17:05:41.229735 [info] VPN_DEVICE_TYPE defined as 'wg0'
2021-11-15 17:05:41.256505 [info] VPN_REMOTE_PROTOCOL defined as 'udp'
2021-11-15 17:05:41.287434 [info] LAN_NETWORK defined as '10.10.10.0/24'
2021-11-15 17:05:41.317083 [info] NAME_SERVERS defined as '84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1'
2021-11-15 17:05:41.350871 [info] VPN_USER defined as 'p1234567'
2021-11-15 17:05:41.380340 [info] VPN_PASS defined as '0123456789'
2021-11-15 17:05:41.409707 [info] STRICT_PORT_FORWARD defined as 'yes'
2021-11-15 17:05:41.438380 [info] ENABLE_PRIVOXY defined as 'no'
2021-11-15 17:05:41.469922 [info] VPN_INPUT_PORTS not defined (via -e VPN_INPUT_PORTS), skipping allow for custom incoming ports
2021-11-15 17:05:41.499164 [info] VPN_OUTPUT_PORTS not defined (via -e VPN_OUTPUT_PORTS), skipping allow for custom outgoing ports
2021-11-15 17:05:41.527689 [info] WEBUI_PORT defined as '8080'
2021-11-15 17:05:41.557794 [info] Starting Supervisor...
2021-11-15 17:05:50,710 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing
2021-11-15 17:05:50,710 INFO Set uid to user 0 succeeded
2021-11-15 17:05:50,722 INFO supervisord started with pid 7
2021-11-15 17:05:51,724 INFO spawned: 'shutdown-script' with pid 144
2021-11-15 17:05:51,726 INFO spawned: 'start-script' with pid 145
2021-11-15 17:05:51,729 INFO spawned: 'watchdog-script' with pid 146
2021-11-15 17:05:51,729 INFO reaped unknown pid 8 (exit status 0)
2021-11-15 17:05:51,760 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2021-11-15 17:05:51,761 INFO success: shutdown-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-11-15 17:05:51,761 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-11-15 17:05:51,761 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-11-15 17:05:51,763 DEBG 'start-script' stdout output:
[info] Adding 84.200.69.80 to /etc/resolv.conf

2021-11-15 17:05:51,766 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2021-11-15 17:05:51,769 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf

2021-11-15 17:05:51,773 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2021-11-15 17:05:51,776 DEBG 'start-script' stdout output:
[info] Adding 84.200.70.40 to /etc/resolv.conf

2021-11-15 17:05:51,778 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf

2021-11-15 17:05:52,099 DEBG 'watchdog-script' stdout output:
[info] qBittorrent config file already exists, skipping copy
[info] Removing session lock file (if it exists)...

2021-11-15 17:05:53,196 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:05:53,197 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'
[info] 12 retries left
[info] Retrying in 10 secs...

2021-11-15 17:06:03,372 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:06:03,372 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'

2021-11-15 17:06:03,372 DEBG 'start-script' stdout output:
[info] 11 retries left
[info] Retrying in 10 secs...

2021-11-15 17:06:13,832 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:06:13,833 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'
[info] 10 retries left

2021-11-15 17:06:13,833 DEBG 'start-script' stdout output:
[info] Retrying in 10 secs...

2021-11-15 17:06:24,267 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:06:24,268 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'

2021-11-15 17:06:24,268 DEBG 'start-script' stdout output:
[info] 9 retries left
[info] Retrying in 10 secs...

2021-11-15 17:06:34,705 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:06:34,706 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'
[info] 8 retries left

2021-11-15 17:06:34,706 DEBG 'start-script' stdout output:
[info] Retrying in 10 secs...

2021-11-15 17:06:45,142 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:06:45,143 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'
[info] 7 retries left
[info] Retrying in 10 secs...

2021-11-15 17:06:55,316 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:06:55,317 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'
[info] 6 retries left

2021-11-15 17:06:55,317 DEBG 'start-script' stdout output:
[info] Retrying in 10 secs...

2021-11-15 17:07:05,761 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:07:05,762 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'

2021-11-15 17:07:05,762 DEBG 'start-script' stdout output:
[info] 5 retries left
[info] Retrying in 10 secs...

2021-11-15 17:07:16,209 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:07:16,209 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'
[info] 4 retries left

2021-11-15 17:07:16,209 DEBG 'start-script' stdout output:
[info] Retrying in 10 secs...

2021-11-15 17:07:26,643 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:07:26,643 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'

2021-11-15 17:07:26,643 DEBG 'start-script' stdout output:
[info] 3 retries left
[info] Retrying in 10 secs...

2021-11-15 17:07:37,094 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:07:37,095 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'
[info] 2 retries left
[info] Retrying in 10 secs...

2021-11-15 17:07:47,534 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 2, column 0


2021-11-15 17:07:47,535 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://privateinternetaccess.com/gtoken/generateToken'
[info] 1 retries left
[info] Retrying in 10 secs...

2021-11-15 17:07:57,537 DEBG 'start-script' stdout output:
[crit] Unable to successfully download PIA json to generate token for wireguard, exiting script...

2021-11-15 17:07:57,538 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 22950811937136 for <Subprocess at 22950811936464 with name start-script in state RUNNING> (stdout)>
2021-11-15 17:07:57,538 DEBG fd 15 closed, stopped monitoring <POutputDispatcher at 22950812057904 for <Subprocess at 22950811936464 with name start-script in state RUNNING> (stderr)>
2021-11-15 17:07:57,538 INFO exited: start-script (exit status 1; not expected)
2021-11-15 17:07:57,538 DEBG received SIGCHLD indicating a child quit

 

Link to comment

Running into the same issue too. Keep on getting this in my logs "parse error: Invalid numeric literal at line 2, column 0".

 

Using PIA WireGuard protocol. Switched to OpenVPN and same issue arises.

 

Sounds like it my might be due to a change from PIA's side.

 

Has anyone reached out to PIA ?

Edited by ISwearItIsNotMe
Link to comment

Did you also supply ovpn files to the openvpn folder in appdata? 

i used these files from pia: 
https://www.privateinternetaccess.com/openvpn/openvpn-strong.zip
 

dont forget the *.pem and *.crt file 
should look like this: 
ovpn.png.ae27fdecbe1c1875d303175c2508bd9f.png

 

this works with sabnzbd, qbittorent and deluge, but the last 2 dont portforward this way. 

 

 

18.27 edited:

credentials.conf is auto generated after first run.

 

18:41 edited: 
it appears that it doesnt work in torrenting, after it brings up the openvpn tunnel (tun0) and finishing initialization proces, where it is supposed to proceed to starting qbittorent it is starting the initialization proces of the wireguard service and same error returns: 

2021-11-15 18:44:22,462 DEBG 'start-script' stdout output:
parse error: Invalid numeric literal at line 2, column 0

2021-11-15 18:44:22,463 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token from URL 'https://privateinternetaccess.com/gtoken/generateToken'
[info] 10 retries left
[info] Retrying in 10 secs...

 

Edited by DeNiX
Link to comment
15 minutes ago, veruszetec said:

I'm getting the same error with https://privateinternetaccess.com/gtoken/generateToken - it looks like PIA moved this with a 301 to https://www.privateinternetaccess.com/ar/gtoken/generateToken , and this is somehow breaking the script. 

 

Updating the script to the correct endpoint may resolve the issue...

 

i wish i knew what file to change and how

  • Like 1
Link to comment
26 minutes ago, veruszetec said:

I'm getting the same error with https://privateinternetaccess.com/gtoken/generateToken - it looks like PIA moved this with a 301 to https://www.privateinternetaccess.com/ar/gtoken/generateToken , and this is somehow breaking the script. 

 

Updating the script to the correct endpoint may resolve the issue...

 

I just checked the new URL you posted and it does not seem to exist

Link to comment

This is still not working for me. both my qbittorrent containers show this error:

 

2021-11-16 14:10:51,651 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://www.privateinternetaccess.com/gtoken/generateToken'
[info] 12 retries left
[info] Retrying in 10 secs...

Link to comment
1 minute ago, raftrider said:

This is still not working for me. both my qbittorrent containers show this error:

 

2021-11-16 14:10:51,651 DEBG 'start-script' stdout output:
[warn] Unable to successfully download PIA json to generate token for wireguard from URL 'https://www.privateinternetaccess.com/gtoken/generateToken'
[info] 12 retries left
[info] Retrying in 10 secs...

Did you update to the latest container today? If it still isn’t working after updating probably best to attach your entire supervisord.log to your next post. Be sure to redact user/password info.

  • Like 2
Link to comment
On 11/16/2021 at 1:15 PM, wgstarks said:

Did you update to the latest container today? If it still isn’t working after updating probably best to attach your entire supervisord.log to your next post. Be sure to redact user/password info.

Complete noob to this. Just installed for the first time today, cannot get the GUI to open. Log file attached. Please help!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.