[SOLVED] watchdir working some of the time

Discussion of Transmission that doesn't fit in the other categories
Locked
tetorr
Posts: 7
Joined: Wed Feb 08, 2012 8:52 pm

[SOLVED] watchdir working some of the time

Post by tetorr »

hey all,

I am running transmission on dd-wrt. I got it up and running and then manually edit the json settings to include a watch directory functionality. If I copy a torrent file from windows over samba, transmission picks it up immediately and starts downloading. On the other hand, I have sickbeard setup to snatch torrents files. When sickbeard finds the torrent file and puts it in the watch directory, transmission does NOT pick it up. Anyone have any insights on why this may be?

I've read the forums stickies and wikis and found nothing useful. I did a search and found that this happened to other people. However, the reverse happened to them. In other words it would work when files were created locally only. The posts did provide a solution through a script running on cron. But the posts I found were somewhat old, so I am wondering if there have been any newer developments? If I have to, I'll do the cron script, but I'm hoping its something that could be fixed without the use of another script. Thanks
tetorr
Posts: 7
Joined: Wed Feb 08, 2012 8:52 pm

Re: watch dir working some of the time

Post by tetorr »

ok I found the problem. Transmission server for dd-wrt wants to create a transmission user for itself so it doesn't run as root. But the init.d script to do this is wrong and the user gets created half assed. Then sickbeard who is running as root puts the torrent in the watch dir, but transmission doesn't have access to it.

I solved it by making a group for sickbeard and transmission. Then having the init.d scripts for sickbeard and transmission create a normal user in that group. Then chown and chgrp the directories accordingly and now transmission picks up the torrent file perfectly (at least after minimal testing).
Locked