[Support] activ - TransmissionVPN


Recommended Posts

On 27/03/2017 at 9:58 PM, jmagnusson said:

Has anyone else noticed that there's no log output from Transmission itself in the container's logs? These are the last three lines of the log output from the container. After that it's completely silent.


2017-03-27 21:42:11,743 DEBG 'transmission-script' stdout output:
Script started, file is /home/nobody/typescript
2017-03-27 21:42:11,760 DEBG 'transmission-script' stdout output:
Script done, file is /home/nobody/typescript
2017-03-27 21:42:11,760 DEBG 'transmission-script' stdout output:
[info] transmission started

 

 

Okay so I looked it up a bit further and it turns out that log output can be accessed through a tmux session, as can be seen here in the transmission.sh script. @activ Perhaps you can tee the output to the parent process so that it can be viewed directly in unraid's logs?

Link to comment
  • 2 weeks later...

Hello,

 

Is there some guide, where to put which entry? im not sure if i pick VPN Provider "custom" if i have to add some certificate somewhere or so..

Even when i start the docker - im not able to connect via provided IP address:port

 

Thanks


ErrorWarningSystemArrayLogin


2017-04-25 18:09:24.396789 [info] Starting Supervisor...
2017-04-25 18:09:25,508 CRIT Set uid to user 0
2017-04-25 18:09:25,508 INFO Included extra file "/etc/supervisor/conf.d/transmission.conf" during parsing
2017-04-25 18:09:25,520 INFO supervisord started with pid 6
2017-04-25 18:09:26,524 INFO spawned: 'checkproc-script' with pid 105
2017-04-25 18:09:26,529 INFO spawned: 'start-script' with pid 106
2017-04-25 18:09:26,533 INFO spawned: 'transmission-script' with pid 107
2017-04-25 18:09:26,535 INFO spawned: 'privoxy-script' with pid 108
2017-04-25 18:09:26,550 DEBG 'privoxy-script' stdout output:
[info] Privoxy set to disabled

2017-04-25 18:09:26,551 INFO success: checkproc-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-04-25 18:09:26,551 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-04-25 18:09:26,551 INFO success: transmission-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-04-25 18:09:26,551 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-04-25 18:09:26,551 DEBG fd 26 closed, stopped monitoring <POutputDispatcher at 47589398121720 for <Subprocess at 47589398055968 with name privoxy-script in state RUNNING> (stderr)>
2017-04-25 18:09:26,552 DEBG fd 22 closed, stopped monitoring <POutputDispatcher at 47589397073864 for <Subprocess at 47589398055968 with name privoxy-script in state RUNNING> (stdout)>
2017-04-25 18:09:26,552 INFO exited: privoxy-script (exit status 0; expected)
2017-04-25 18:09:26,552 DEBG received SIGCLD indicating a child quit
2017-04-25 18:09:26,564 DEBG 'transmission-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2017-04-25 18:09:26,601 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2017-04-25 18:09:26,634 DEBG 'start-script' stdout output:
[info] VPN config file (ovpn extension) is located at /config/openvpn/IPredator-NetworkManager-Password.ovpn

2017-04-25 18:09:26,678 DEBG 'start-script' stderr output:
dos2unix:
2017-04-25 18:09:26,679 DEBG 'start-script' stderr output:
converting file /config/openvpn/IPredator-NetworkManager-Password.ovpn to Unix format...

2017-04-25 18:09:26,773 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1

2017-04-25 18:09:26,779 DEBG 'start-script' stdout output:
[info] Adding 8.8.8.8 to /etc/resolv.conf

2017-04-25 18:09:26,785 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2017-04-25 18:09:26,791 DEBG 'start-script' stdout output:
[info] Adding 8.8.4.4 to /etc/resolv.conf

2017-04-25 18:09:26,796 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2017-04-25 18:09:26,806 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.0/24 as route via docker eth0

2017-04-25 18:09:26,808 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2017-04-25 18:09:26,809 DEBG 'start-script' stdout output:
default via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.4
192.168.1.0/24 via 172.17.0.1 dev eth0

2017-04-25 18:09:26,809 DEBG 'start-script' stdout output:
--------------------

2017-04-25 18:09:26,829 DEBG 'start-script' stdout output:
[info] iptable_mangle module not supported, attempting to load...

2017-04-25 18:09:26,831 DEBG 'start-script' stderr output:
modprobe: FATAL: Module iptable_mangle not found in directory /lib/modules/4.9.19-unRAID

2017-04-25 18:09:26,833 DEBG 'start-script' stdout output:
[warn] iptable_mangle module not supported, you will not be able to connect to Deluge webui or Privoxy outside of your LAN

2017-04-25 18:09:26,922 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2017-04-25 18:09:26,924 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT DROP
-A INPUT -i tun0 -j ACCEPT
-A INPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 1194 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 9091 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 9091 -j ACCEPT
-A INPUT -p udp -m udp --sport 53 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A OUTPUT -o tun0 -j ACCEPT
-A OUTPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 1194 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 9091 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 9091 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 53 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT

2017-04-25 18:09:26,925 DEBG 'start-script' stdout output:
--------------------
[info] Starting OpenVPN...

2017-04-25 18:09:27,097 DEBG 'start-script' stdout output:
[info] OpenVPN started

2017-04-25 18:09:27,125 DEBG 'start-script' stdout output:
[warn] OpenVPN process terminated, restarting OpenVPN...

2017-04-25 18:09:27,135 DEBG 'start-script' stdout output:
[info] OpenVPN restarted

2017-04-25 18:10:27,149 DEBG 'start-script' stdout output:
[warn] OpenVPN process terminated, restarting OpenVPN...

2017-04-25 18:10:27,162 DEBG 'start-script' stdout output:
[info] OpenVPN restarted

2017-04-25 18:11:27,174 DEBG 'start-script' stdout output:
[warn] OpenVPN process terminated, restarting OpenVPN...

2017-04-25 18:11:27,186 DEBG 'start-script' stdout output:
[info] OpenVPN restarted

 

Link to comment

@jmagnusson: I no longer use Unraid myself and am very busy at the moment, when I have more time I will take a loop at your suggestion.

@kil2leriq: Normally you would put a certificate file in ovnp format into the openvpn folder inside the appdata folder. There isn't really a getting started guide, the topics about delugevpn and rtorrentvpn also provide some info.

Link to comment

Somehow i managed to connect with other *.ovnp profile (in OpenVPN client both of them are working)

 

Now i have different issue:

i cant connect to the  Transmision WebUI - when i change values in settings.json it revert them back to default soon as the Docker starts.

So how to change the values there, to dont get overwritten?

 

Probably the

rpc-whitelist : 192168.*.* - IP of unraid is the same so no clue why it wont work

rpc-whitelist-enabled: true - will try to set to false for some time to test if im able to connect to UI

 

Thx

Link to comment

IIRC, rpc-whitelist needs to be changed in the Docker container and not in settings.json.  Setting it there will overwrite what is in settings.json.

 

Other settings can be directly updated in settings.json.

 

Just make sure the docker container is stopped, edit settings.json (might need to change permissions on that file first), and then restart the docker.

 

Its a little finicky getting everything up, but once it is, its solid.

Link to comment

i have it already like this, unraid IP is like 192.168.*.* - so why it wont work?

rpc-whitelist : 192.168.*.* - i can change this value in Docker edit,IP of unraid is the same so no clue why it wont work

rpc-whitelist-enabled: true - this value is not in Docker,will try to set to false for some time to test if im able to connect to UI

 

EDIT:

LAN_NETWORK - 192.168.1.0/24

Local LAN is 192.168.10.1

 

LAN_NETWORK setting in docker needs to match the Local LAN (unraid ip range) ?

Thought its separate network for docker...

EDIT2:

 

Yeah it needs to match - finally in WebUI ...3d of trouble :D damn

 

Edited by killeriq
Link to comment

Did you set a variable WHITELIST ? 

Mine contains: 192.168.*.*,127.0.0.1,172.*.*.*

 

Andy is right, the whitelist gets overwritten, other settings can be changed in the settings file, but the container has to be stopped before. 

Are you sure the vpn is connecting now? 

 

You could try doing "docker exec -it Transmission ps -A" to try and see if Transmission is even starting. Could you try that and post the result and a new debug log?

  • Upvote 1
Link to comment

I got a new issue :D

 

Copied whole /config folder from Plugin Transmission folder -> /Config Docker folder

This way i have all torrents loaded, but soon as ive change to mapped /path the torrent files - Start them - they are loaded

But as i stop/start docker -> new path is gone and i have to set it again. 

 

seems like there is some read-only rule somewhere - where and how to fix it? Please ;)

Link to comment

Ok so again :)

A.) I had Transmission Plugin installed on UNRAID - had few torrents there running/seeding

 

B.) After i was able to finally start the Transmission DOCKER version - ive copied whole /config from A->B so i have the same torrents inside the DOCKER.

Problem is that all paths are mapped - so torrent pat is bit different (/download/movies/new -> /movies/new) thats why ive "set new location" start the torrents and all is fine.

After i STOP or RESTART DOCKER all path are reset back to default "/download/movies/new" as on A.

Paths are not stored in settings.json (no clue were they are) so i cant manually edit them - im only able in TransmissionBT Client

I assume its stored in some file and the file is RO so after i STOP DOCKER is not being written into file.

 

UPDATE:

The path to torrent dirs/file is in /Config/resume/*.resume - each torrent has his own *.resume file

DOCKER as its started put some permissions/restrictions /config folder.

Even when i remove restrictions on /resume folder (DOCKER still running) change the path in TransmissionBT,delete perms.txt, stop DOCKER, start DOCKER - again the old path...

 

Any clue how to fix it? Thanks

 

UPDATE2:

Seems like i need to do this to WRITE the change:

1. start TransmissionBT client

2. F6 - Set data location... (change path)

3. force start the torrent & Reannounce

 

Usually it gets written/saved after - but still check the *.resume file date in /resume folder

Edited by killeriq
update2
Link to comment

btw now when i have VPN connected i get some IP address (http://checkmytorrentip.net/) its always different...

 

Is there some way how i get to know the IP ? when im out of home (VPN got reconnected between) 

To be able to use it on my mobile client?

 

One way i can see is to connect remotely to unraid via OpenVPN server...but when i had OpenVPN client connected and started OpenVPN server - it wasnt working(raised the question here, but no reply yet )

Link to comment

Wheres my downloads?  i  been reading and tought i set my downloads and watch folder ect  ect 

/downloads  /mnt/user/Downloads/Torrents/
/watch  /mnt/user/Downloads/Torrents/Watch
/config  /mnt/user/appdata/activ-transmissionvpn
/data  /mnt/user/Downloads/Torrents/

 

i see /home/nobody/Downloads when i try to download , it downloads but cant find my files it downloads 

if i set download i get this "Permission denied (/mnt/user/Downloads/Torrents/torrentfile)

 

i need this to work its first time i see a web ui , and it connected to my vpn , i tryed using filezilla to find the file and nothink:(

 

help please

Link to comment
11 hours ago, killeriq said:

Hi guys,

 

I have again problem - drives me nuts :D

Soon as ive finally setup docker,vpn moved torrents etc... I got BAN on one of the Trackers im using. As they are only allowing Transmission 2.04 (if im not misataken)

How to downgrade in Docker?

 

Thanks!

 

Sorry, there is no feature in the docker at the moment to specify a version. You would have to create your own version. If I mess with the scripts again I might have a look at implementing that.

Link to comment
 
Think you need to read up on permission on the docker website. I expect you didn't map the user correctly.


I posted the maps I used in my first post it created the watch folder and download folder has read and write permissions looks like 1 capital letter stumped it

Sent from my Pixel XL using Tapatalk

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.