Closed wtfpeter closed 1 year ago
This is the PIA script throwing this error..if you re-created the container from scratch and this stil occurs then try a different vpn location..or your docker network has some issue I guess
Thank you, just to be sure though, the last log message before the Unexpected response loop is waiting for transmission to become responsive
, which is why I interpreted this as a container bug, i.e. Unexpected response: <h1>301: Moved Permanently</h1>
being the response to the RPC call. I tried different vpn locations as well.
Next thing to try would be to start from 0 which I was hestitant until now, since I don't want to lose my seeds.
Thanks again for your help, it's greatly appreciated
If you want to keep your seeds you could just keep your transmission-home folder but wipe the settings.json file before starting a fresh container
On Sun, 7 May 2023 at 20:51, wtfpeter @.***> wrote:
Thank you, just to be sure though, the last log message before the Unexpected response loop is waiting for transmission to become responsive, which is why I interpreted this as a container bug, i.e. Unexpected response:
301: Moved Permanently
being the response to the RPC call. I tried different vpn locations as well.Next thing to try would be to start from 0 which I was hestitant until now, since I don't want to lose my seeds.
Thanks again for your help, it's greatly appreciated
— Reply to this email directly, view it on GitHub https://github.com/haugene/vpn-configs-contrib/issues/210#issuecomment-1537420857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7OFYUE5EZQCBDOFKRH43LXE6EFDANCNFSM6AAAAAAXYUD4LU . You are receiving this because you modified the open/close state.Message ID: @.***>
Thank you pkishino, I was able to create a new runtime of the container, removing all old configs and slimming down the compose file to this:
version: '3.3'
services:
transmission:
image: haugene/transmission-openvpn
container_name: transmission
cap_add:
- NET_ADMIN
ports:
- "9091:9091"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/data:/data
- ./config:/config
- ./mnt:/mnt
environment:
- OPENVPN_PROVIDER=PIA
- OPENVPN_USERNAME=user
- OPENVPN_PASSWORD=pass
- OPENVPN_CONFIG=some_location
- LOCAL_NETWORK=192.168.0.0/24
- DEBUG=true
- TRANSMISSION_DOWNLOAD_DIR=/mnt/downloads/complete
- TRANSMISSION_INCOMPLETE_DIR=/mnt/downloads/incomplete
- TRANSMISSION_PORT_FORWARDING_ENABLED=true
- TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=true
- TRANSMISSION_RPC_ENABLED=true
- TRANSMISSION_RPC_HOST_WHITELIST="*"
- TRANSMISSION_RPC_HOST_WHITELIST_ENABLED=true
- TRANSMISSION_RPC_PASSWORD=rpcpass
- TRANSMISSION_RPC_PORT=9091
- TRANSMISSION_RPC_URL=/transmission/rpc
- TRANSMISSION_RPC_USERNAME=rpcuser
- TRANSMISSION_RPC_WHITELIST="*"
- TRANSMISSION_RPC_WHITELIST_ENABLED=true
- TRANSMISSION_WATCH_DIR=/mnt/downloads/blackhole
I found the DEBUG option in the docs which prompted me to see what the output looks like and from this, I am not so sure if this is really a provider related issue. The way I understand the log output is that the container successfully runs the token related calls to PIA, then reserves a port (38654
) and tries to set this port in the transmission settings, using RPC via transmission-daemon. Which is where the container can not process the 301 reply of transmission itself. Please see below.
[...]
transmission | Running functions for token based port fowarding
transmission | + echo 'Running functions for token based port fowarding'
transmission | + get_auth_token
transmission | ++ curl --silent --show-error --request POST --max-time 15 --user user:pass https://www.privateinternetaccess.com/gtoken/generateToken
transmission | ++ jq -r .token
transmission | + tok=zbcARxbmlX4+uRasdf123AidujhRJ3VwX7bAeXvhwv5twHUHAJAz8kEiLlME=
transmission | + '[' 0 -ne 0 ']'
transmission | + get_sig
transmission | ++ curl --insecure --get --silent --show-error --retry 5 --retry-delay 15 --max-time 15 --data-urlencode token=zbcARxbmlX4asdf123vtwXlA6jcqJXBJgwBpb0Gd48GAidujhRJ3VwX7bAeXvhwv5twHUHAJAz8kEiLlME= https://10.24.112.1:19999/getSignature
transmission | + pf_getsig='{
transmission | "status": "OK",
transmission | "payload": "eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZDasdf123mh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9",
transmission | "signature": "aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ=="
transmission | }'
transmission | ++ echo '{' '"status":' '"OK",' '"payload":' '"eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZDQ4asdf123mh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9",' '"signature":' '"aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ=="' '}'
transmission | ++ jq -r .status
transmission | + '[' OK '!=' OK ']'
transmission | ++ echo '{' '"status":' '"OK",' '"payload":' '"eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZDQ4R0Fpasdf123mh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9",' '"signature":' '"aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ=="' '}'
transmission | ++ jq -r .payload
transmission | + pf_payload=eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHasdf123M1Z3WDdiQWVYdmh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9
transmission | ++ echo '{' '"status":' '"OK",' '"payload":' '"eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZDQ4R0Fasdf123ODMzNTA5NjYxWiJ9",' '"signature":' '"aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ=="' '}'
transmission | ++ jq -r .signature
transmission | + pf_getsignature=aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ==
transmission | ++ echo eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBasdf123FJKM1Z3WDdiQWVYdmh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9
transmission | ++ base64 -d
transmission | ++ jq -r .port
transmission | + pf_port=38654
transmission | ++ echo eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZasdf123JKM1Z3WDdiQWVYdmh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9
transmission | ++ base64 -d
transmission | ++ jq -r .expires_at
transmission | + pf_token_expiry_raw=2023-07-09T00:47:46.833509661Z
transmission | + date --help /dev/null
transmission | + grep -i busybox
transmission | ++ date --date=2023-07-09T00:47:46.833509661Z +%s
transmission | + pf_token_expiry=1688863666
transmission | + bind_port
transmission | ++ curl --insecure --get --silent --show-error --retry 5 --retry-delay 15 --max-time 15 --data-urlencode payload=eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpasdf1234WVYdmh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9 --data-urlencode signature=aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ== https://10.24.112.1:19999/bindPort
transmission | + pf_bind='{
transmission | "status": "OK",
transmission | "message": "port scheduled for add"
transmission | }'
transmission | ++ echo '{' '"status":' '"OK",' '"message":' '"port' scheduled for 'add"' '}'
transmission | ++ jq -r .status
transmission | + '[' OK = OK ']'
transmission | ++ date
transmission | + echo 'Reserved Port: 38654 Sun May 7 14:47:47 CEST 2023'
transmission | Reserved Port: 38654 Sun May 7 14:47:47 CEST 2023
transmission | + bind_trans
transmission | + new_port=38654
transmission | ++ grep 'rpc-authentication-required\"' /config/transmission-home/settings.json
transmission | ++ grep -oE 'true|false'
transmission | + auth_enabled=true
transmission | + [[ true = \t\r\u\e ]]
transmission | + echo 'transmission auth required'
transmission | + myauth='--auth rpcuser:rpcpass'
transmission | transmission auth required
transmission | + echo 'waiting for transmission to become responsive'
transmission | waiting for transmission to become responsive
transmission | ++ transmission-remote 9091 --auth rpcuser:rpcpass -l
transmission | Unexpected response: <h1>301: Moved Permanently</h1>
transmission | + torrent_list=
transmission | + sleep 10
transmission | ++ transmission-remote 9091 --auth rpcuser:rpcpass -l
transmission | Unexpected response: <h1>301: Moved Permanently</h1>
transmission | + torrent_list=
transmission | + sleep 10
Please change rpc_url to /transmission/ and try again
On Sun, 7 May 2023 at 22:05, wtfpeter @.***> wrote:
Thank you pkishino, I was able to create a new runtime of the container, removing all old configs and slimming down the compose file to this:
version: '3.3' services: transmission: image: haugene/transmission-openvpn container_name: transmission cap_add:
- NET_ADMIN ports:
- "9091:9091" volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/data:/data
- ./config:/config
- ./mnt:/mnt environment:
- OPENVPN_PROVIDER=PIA
- OPENVPN_USERNAME=user
- OPENVPN_PASSWORD=pass
- OPENVPN_CONFIG=some_location
- LOCAL_NETWORK=192.168.0.0/24
- DEBUG=true
- TRANSMISSION_DOWNLOAD_DIR=/mnt/downloads/complete
- TRANSMISSION_INCOMPLETE_DIR=/mnt/downloads/incomplete
- TRANSMISSION_PORT_FORWARDING_ENABLED=true
- TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=true
- TRANSMISSION_RPC_ENABLED=true
- TRANSMISSION_RPC_HOST_WHITELIST="*"
- TRANSMISSION_RPC_HOST_WHITELIST_ENABLED=true
- TRANSMISSION_RPC_PASSWORD=rpcpass
- TRANSMISSION_RPC_PORT=9091
- TRANSMISSION_RPC_URL=/transmission/rpc
- TRANSMISSION_RPC_USERNAME=rpcuser
- TRANSMISSION_RPC_WHITELIST="*"
- TRANSMISSION_RPC_WHITELIST_ENABLED=true
- TRANSMISSION_WATCH_DIR=/mnt/downloads/blackhole
I found the DEBUG option in the docs which prompted me to see what the output looks like and from this, I am not so sure if this is really a provider related issue. The way I understand the log output is that the container successfully runs the token related calls to PIA, then reserves a port (38654) and tries to set this port in the transmission settings, using RPC via transmission-daemon. Which is where the container can not process the 301 reply of transmission itself. Please see below.
[...] transmission | Running functions for token based port fowarding transmission | + echo 'Running functions for token based port fowarding' transmission | + get_auth_token transmission | ++ curl --silent --show-error --request POST --max-time 15 --user user:pass https://www.privateinternetaccess.com/gtoken/generateToken transmission | ++ jq -r .token transmission | + tok=zbcARxbmlX4+uRasdf123AidujhRJ3VwX7bAeXvhwv5twHUHAJAz8kEiLlME= transmission | + '[' 0 -ne 0 ']' transmission | + get_sig transmission | ++ curl --insecure --get --silent --show-error --retry 5 --retry-delay 15 --max-time 15 --data-urlencode token=zbcARxbmlX4asdf123vtwXlA6jcqJXBJgwBpb0Gd48GAidujhRJ3VwX7bAeXvhwv5twHUHAJAz8kEiLlME= https://10.24.112.1:19999/getSignature transmission | + pf_getsig='{ transmission | "status": "OK", transmission | "payload": "eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZDasdf123mh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9", transmission | "signature": "aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ==" transmission | }' transmission | ++ echo '{' '"status":' '"OK",' '"payload":' '"eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZDQ4asdf123mh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9",' '"signature":' '"aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ=="' '}' transmission | ++ jq -r .status transmission | + '[' OK '!=' OK ']' transmission | ++ echo '{' '"status":' '"OK",' '"payload":' '"eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZDQ4R0Fpasdf123mh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9",' '"signature":' '"aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ=="' '}' transmission | ++ jq -r .payload transmission | + pf_payload=eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHasdf123M1Z3WDdiQWVYdmh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9 transmission | ++ echo '{' '"status":' '"OK",' '"payload":' '"eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZDQ4R0Fasdf123ODMzNTA5NjYxWiJ9",' '"signature":' '"aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ=="' '}' transmission | ++ jq -r .signature transmission | + pf_getsignature=aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ== transmission | ++ echo eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBasdf123FJKM1Z3WDdiQWVYdmh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9 transmission | ++ base64 -d transmission | ++ jq -r .port transmission | + pf_port=38654 transmission | ++ echo eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpnd0JwYjBHZasdf123JKM1Z3WDdiQWVYdmh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9 transmission | ++ base64 -d transmission | ++ jq -r .expires_at transmission | + pf_token_expiry_raw=2023-07-09T00:47:46.833509661Z transmission | + date --help /dev/null transmission | + grep -i busybox transmission | ++ date --date=2023-07-09T00:47:46.833509661Z +%s transmission | + pf_token_expiry=1688863666 transmission | + bind_port transmission | ++ curl --insecure --get --silent --show-error --retry 5 --retry-delay 15 --max-time 15 --data-urlencode payload=eyJ0b2tlbiI6InpiY0FSeGJtbFg0K3VSQkJScWNKSVpnb2I3ZERuelpSekxvY2h3OGUxTXZic2dGMk1mWlZqM2I1RHYwdnR3WGxBNmpjcUpYQkpasdf1234WVYdmh3djV0d0hVSEFKQXo4a0VpTGxNRT0iLCJwb3J0IjozODY1NCwiZXhwaXJlc19hdCI6IjIwMjMtMDctMDlUMDA6NDc6NDYuODMzNTA5NjYxWiJ9 --data-urlencode signature=aqF93V5b82xeuGgbr+A9dSJA7LTjUzwFYHHVUbeBnZQ6lL5BuXzxNbCZeiqYo1oJWumeemmVd1DNum8t5pBOBQ== https://10.24.112.1:19999/bindPort transmission | + pf_bind='{ transmission | "status": "OK", transmission | "message": "port scheduled for add" transmission | }' transmission | ++ echo '{' '"status":' '"OK",' '"message":' '"port' scheduled for 'add"' '}' transmission | ++ jq -r .status transmission | + '[' OK = OK ']' transmission | ++ date transmission | + echo 'Reserved Port: 38654 Sun May 7 14:47:47 CEST 2023' transmission | Reserved Port: 38654 Sun May 7 14:47:47 CEST 2023 transmission | + bind_trans transmission | + new_port=38654 transmission | ++ grep 'rpc-authentication-required\"' /config/transmission-home/settings.json transmission | ++ grep -oE 'true|false' transmission | + auth_enabled=true transmission | + [[ true = \t\r\u\e ]] transmission | + echo 'transmission auth required' transmission | + myauth='--auth rpcuser:rpcpass' transmission | transmission auth required transmission | + echo 'waiting for transmission to become responsive' transmission | waiting for transmission to become responsive transmission | ++ transmission-remote 9091 --auth rpcuser:rpcpass -l transmission | Unexpected response:
301: Moved Permanently
transmission | + torrent_list= transmission | + sleep 10 transmission | ++ transmission-remote 9091 --auth rpcuser:rpcpass -l transmission | Unexpected response:301: Moved Permanently
transmission | + torrent_list= transmission | + sleep 10— Reply to this email directly, view it on GitHub https://github.com/haugene/vpn-configs-contrib/issues/210#issuecomment-1537437754, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7OFYTYLMEZN2SLW3KSHQLXE6MY5ANCNFSM6AAAAAAXYUD4LU . You are receiving this because you modified the open/close state.Message ID: @.***>
Thanks again pkishino, I made some progress with removing the /rpc path from the RPC URL setting, as you suggested. The port is now being set and from a port forwarding view there seems to be no more issues. However I have another issue now, please see below.
Currently used docker-compose file
version: '3.3'
services:
transmission:
image: haugene/transmission-openvpn
container_name: transmission
cap_add:
- NET_ADMIN
ports:
- "9091:9091"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/data:/data
- ./data/scripts:/scripts
- ./config:/config
- ./mnt:/mnt
environment:
- OPENVPN_PROVIDER=PIA
- OPENVPN_USERNAME=user
- OPENVPN_PASSWORD=pass
- OPENVPN_CONFIG=some_location
- LOCAL_NETWORK=192.168.0.0/24
- DEBUG=true
Here is the current output of the debug-enabled log
transmission | + bind_port
transmission | ++ curl --insecure --get --silent --show-error --retry 5 --retry-delay 15 --max-time 15 --data-urlencode payload=eyJ0b2tlbiI 6ImhQNTJYSGViN05oYWxVbm5PWFdzMmF5M1M3dXdkZlE0aHZoQ0luNHBmaERMOFoxMk12SkFmR3JvciswbW1URllhTGpyWncwdktPejB6VXQyS29WekI2cTBYbE5zQ2w4WDJ2REdfMTliO EZsRlpSU0RmdTFtRFFIam12WT0iLCJwb3J0IjoyNzkyMiwiZXhwaXJlc19hdCI6IjIwMjMtMDctMTZUMDI6NTc6MjYuMTk0MDM3NDc5WiJ9 --data-urlencode signature=Jy5IN6h B8OwlKdlrFRVlPc/7/ccwPQldc7wpYTomlzAXM9fpB4Ur7WsNjeFzkkOHC+7Hp0cJTAj6yM/5qCpEBQ== https://10.21.112.1:19999/bindPort
transmission | + pf_bind='{
transmission | "status": "OK",
transmission | "message": "port scheduled for add"
transmission | }'
transmission | ++ echo '{' '"status":' '"OK",' '"message":' '"port' scheduled for 'add"' '}'
transmission | ++ jq -r .status
transmission | + '[' OK = OK ']'
transmission | ++ date
transmission | + echo 'Reserved Port: 27922 Sun May 14 16:57:26 CEST 2023'
transmission | + bind_trans
transmission | Reserved Port: 27922 Sun May 14 16:57:26 CEST 2023
transmission | + new_port=27922
transmission | ++ grep 'rpc-authentication-required\"' /config/transmission-home/settings.json
transmission | ++ grep -oE 'true|false'
transmission | + auth_enabled=false
transmission | transmission auth not required
transmission | waiting for transmission to become responsive
transmission | + [[ true = \f\a\l\s\e ]]
transmission | + echo 'transmission auth not required'
transmission | + myauth=
transmission | + echo 'waiting for transmission to become responsive'
transmission | ++ transmission-remote 9091 -l
transmission | + torrent_list=' ID Done Have ETA Up Down Ratio Status Name
transmission | Sum: None 0.0 0.0'
transmission | + echo 'transmission became responsive'
transmission | transmission became responsive
transmission | ++ echo ' ID Done Have ETA Up Down Ratio Status Name
transmission | Sum: None 0.0 0.0'
transmission | ++ tail -n 2
transmission | ID Done Have ETA Up Down Ratio Status Name
transmission | Sum: None 0.0 0.0
transmission | + output=' ID Done Have ETA Up Down Ratio Status Name
transmission | Sum: None 0.0 0.0'
transmission | + echo ' ID Done Have ETA Up Down Ratio Status Name
transmission | Sum: None 0.0 0.0'
transmission | ++ transmission-remote 9091 -si
transmission | ++ grep Listenport
transmission | ++ grep -oE '[0-9]+'
transmission | setting transmission port to 27922
transmission | + transmission_peer_port=51413
transmission | + [[ 27922 != \5\1\4\1\3 ]]
transmission | + [[ true = \f\a\l\s\e ]]
transmission | + echo 'setting transmission port to 27922'
transmission | + transmission-remote 9091 -p 27922
transmission | localhost:9091/transmission/rpc/ responded: success
transmission | Checking port...
transmission | + echo 'Checking port...'
transmission | + sleep 10
transmission | + transmission-remote 9091 -pt
transmission | Port is open: Yes
transmission | ++ date -d @1689476246
transmission | #######################
transmission | SUCCESS
transmission | #######################
transmission | Port: 27922
transmission | Expiration Sun Jul 16 04:57:26 CEST 2023
transmission | + format_expiry='Sun Jul 16 04:57:26 CEST 2023'
transmission | + echo '#######################'
transmission | + echo ' SUCCESS '
transmission | + echo '#######################'
transmission | + echo 'Port: 27922'
transmission | + echo 'Expiration Sun Jul 16 04:57:26 CEST 2023'
transmission | + echo '#######################'
transmission | + echo 'Entering infinite while loop'
transmission | + echo 'Every 15 minutes, check port status'
transmission | + pf_minreuse=604800
transmission | #######################
transmission | Entering infinite while loop
transmission | Every 15 minutes, check port status
transmission | ++ date +%s
transmission | + pf_remaining=5399989
transmission | + true
transmission | ++ date +%s
transmission | + pf_remaining=5399989
transmission | + '[' 5399989 -lt 604800 ']'
transmission | + wait 133
transmission | + sleep 900
My new issue is now that I can not reach the transmission web interface via 9091. As you can see in the compose file there is no docker network attached and the port is passed through to outside of docker. On the host system I see the port 9091 in listen state, but when trying to access the web URL http://localhost:9091 I just get a time out. Also from the host system I can not reach it when using curl. I receive a TCP connect timeout. Do you have an idea how to proceed?
Edit: Just to add to my previous comment, here is the output of ss:
>> sudo ss -tulpen | grep 9091
tcp LISTEN 0 4096 0.0.0.0:9091 0.0.0.0:* users:(("docker-proxy",pid=46526,fd=4)) ino:667975 sk:83 <->
tcp LISTEN 0 4096 [::]:9091 [::]:* users:(("docker-proxy",pid=46533,fd=4)) ino:663545 sk:a4 v6only:1 <->
Checking further, when testing different target host notations with curl from the host system I get different results:
>> curl -L http://192.168.178.84:9091/transmission/web
curl: (28) Failed to connect to 192.168.178.84 port 9091: Connection timed out
>> curl -L http://localhost:9091/transmission/web
<!DOCTYPE html>
<html lang="en" xml:lang="en">
<head>
[...]
I believe this may be the right start to solve my issue. Does it warrant a new issue in the main repo? No problem for me to create one.
Your local_network is incorrect.. If your up range is .178.0 you should set 192.168.178.0/24
Alright, that solved my issues. Embarassing, but thank you so much for your support and patience. It's greatly appreciated.
Is there a pinned issue for this?
Is there an existing or similar issue/discussion for this?
Is there any comment in the documentation for this?
Is this related to a provider?
Are you using the latest release?
Have you tried using the dev branch latest?
Docker run config used
Docker Compose file
Current Behavior
Running the container with above config (docker compose file) results in below output, see log file, and subsequent infinite loop of RPC not being reachable. The error message says:
Unexpected response: <h1>301: Moved Permanently</h1>
. This occurred only with last update(s) and I suspect some transmission logic was changed.Expected Behavior
I expect the container being able to reach transmission via rpc and finish the port forwarding routine successfully.
How have you tried to solve the problem?
1) Tried rollback to older version (2.3.4), unsuccessful. This produced a similar behaviour, but with error 404 instead. 2) Tried all combinations of RPC whitelist and RPC host whitelist being enabled/disabled and with different settings. 3) Tried deleting the transmission-config.json file and using only environment variables. 4) Tried using dev branch, unsuccessful.
Log output
From this point on the container seems stuck.
HW/SW Environment
Anything else?
No response