Mylar setup

Status
Not open for further replies.

escrima

Explorer
Joined
Jan 14, 2015
Messages
67
Anyone successfully using the Mylar plugin? I could use some help with the configuration.
 

escrima

Explorer
Joined
Jan 14, 2015
Messages
67
Looks like theres a permission issue. The jail cant create directories in the dataset I created...
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

escrima

Explorer
Joined
Jan 14, 2015
Messages
67
Thanks, that fixed it. Now I'm having issues with Mylar handing off the torrent to Transmission.

Getting the following:

2017-02-12 22:05:54 ERROR Unable to send torrent - check logs and settings (this would be marked as a BAD torrent if Failed Handling was enabled)

2017-02-12 22:05:54 ERROR Query failed with result "invalid or corrupt torrent file".
 
Last edited:

escrima

Explorer
Joined
Jan 14, 2015
Messages
67
Joshua, so it looks like Mylar(816) is attempting to hand a torrent file to Transmission(921). What's the best solution when one jail is trying to send another jail data?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Joshua, so it looks like Mylar(816) is attempting to hand a torrent file to Transmission(921). What's the best solution when one jail is trying to send another jail data?
does mylar use the transmission api to send it the torrent file? (you would be entering the transmission's IP, port, and username/pass if you have one). in that case, for passing the torrent file, permissions do not matter.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes it does. So my diagnosis is incorrect.

Appreciate the reply, btw.
I would double check the IP is for the transmission jail. usually where you enter the details there is a test button
then check mylar's log if its not working.
 

escrima

Explorer
Joined
Jan 14, 2015
Messages
67
OK. So, Mylar successfully downloads the .torrent to /var/db/mylar/cache/. Then the log says:
Code:
2017-02-20 14:21:46 ERROR incomplete format
2017-02-20 14:21:46 ERROR Unable to send torrent - check logs and settings (this would be marked as a BAD torrent if Failed Handling was enabled)


My transmission IP is correct. In the Mylar settings for Transmission, I have:
Code:
Transmission Host:    (IPaddress:9091)
Transmission Username:  (blank as I do not have Auth required)
Transmission Password:  (blank as I do not have Auth required)
Transmission Directory:  /media/comics   (matching my jail storage mapping)


There is no test button.

Oddly, Mylar works with a Deluge jail. Unfortunately, Deluge breaks in a jail because of a libtorrent-rasterbar conflict.
 

escrima

Explorer
Joined
Jan 14, 2015
Messages
67
And now it's broke again. Same errors on Mylar. I enabled logging on transmission and found this error when Mylar kicks a torrent over to Transmission:

Code:
Couldn't read "/var/db/mylar/cache/comicname.torrent": Permission denied (utils.c:258)


That folder is owned by media:media. I added the transmission user to the media group and it still gives me that error.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
And now it's broke again. Same errors on Mylar. I enabled logging on transmission and found this error when Mylar kicks a torrent over to Transmission:

Code:
Couldn't read "/var/db/mylar/cache/comicname.torrent": Permission denied (utils.c:258)


That folder is owned by media:media. I added the transmission user to the media group and it still gives me that error.
can you show 'ls -l /var/db/mylar/cache' in the transmission jail.
 

escrima

Explorer
Joined
Jan 14, 2015
Messages
67
can you show 'ls -l /var/db/mylar/cache' in the transmission jail.
Code:
root@transmission_1:/ # ls -l /var/db/mylar/cache							   
total 70472																	 
-rw-------  1 media  media	   494 Mar  8 21:24 .32p_cookies.dat			 
-rw-------  1 media  media	366673 Mar  8 20:55 96284.jpg					 
-rw-------  1 media  media		 0 Mar  8 22:04 Clean-newreleases.txt		 
-rw-------  1 media  media	 31886 Mar  8 21:24 Doctor_Aphra_2_2017.torrent   
-rw-------  1 media  media	 24273 Mar  8 21:09 Doctor_Aphra_5_2017.torrent   
-rw-------  1 media  media	 31886 Mar  8 21:24 Star_Wars_Doctor_Aphra_2_2017.
torrent																		 
-rw-------  1 media  media	 24273 Mar  8 21:09 Star_Wars_Doctor_Aphra_5_2017.
torrent																		 
-rw-------  1 media  media	 25052 Mar  8 22:04 newreleases.txt			   
-rw-------  1 media  media   2503504 Mar  8 20:51 temp.jpg					 
-rwxrwxrwx  1 media  media  69083502 Mar  8 20:51 temp.zip			
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Code:
root@transmission_1:/ # ls -l /var/db/mylar/cache							  
total 70472																	
-rw-------  1 media  media	   494 Mar  8 21:24 .32p_cookies.dat			
-rw-------  1 media  media	366673 Mar  8 20:55 96284.jpg					
-rw-------  1 media  media		 0 Mar  8 22:04 Clean-newreleases.txt		
-rw-------  1 media  media	 31886 Mar  8 21:24 Doctor_Aphra_2_2017.torrent  
-rw-------  1 media  media	 24273 Mar  8 21:09 Doctor_Aphra_5_2017.torrent  
-rw-------  1 media  media	 31886 Mar  8 21:24 Star_Wars_Doctor_Aphra_2_2017.
torrent																		
-rw-------  1 media  media	 24273 Mar  8 21:09 Star_Wars_Doctor_Aphra_5_2017.
torrent																		
-rw-------  1 media  media	 25052 Mar  8 22:04 newreleases.txt			  
-rw-------  1 media  media   2503504 Mar  8 20:51 temp.jpg					
-rwxrwxrwx  1 media  media  69083502 Mar  8 20:51 temp.zip			
mylar is writting those files in a way only the owner user can read/write them. I'm not sure if mylar chooses the permissions it writes with, or if these are just inherited by the directory it is in.

Are you sure that is a good directory for mylar to write .torrent files to? Maybe you could change this to the default watch directory for transmission.
Or, does mylar have transmission API support?
 

escrima

Explorer
Joined
Jan 14, 2015
Messages
67
There's no option to change where it initially downloads the torrents. I THINK it uses API for transmission, it needs the rpc path to communicate. Other wise, there's a completely separate black hole option for a watch dir.

This was working flawlessly a week ago.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
strange, one thing to try is to change the directory permissions and see if future torrent files follow that.
chmod 775 /var/db/mylar/cache
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
no effect with chmod
you tried a new download and the torrent file still had 600 permissions?

If mylar requires user permissions, then you probably have to change the user tranmission runs as
 
Status
Not open for further replies.
Top