Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
interestingly the folder is owned by noboday:501
but its CONTENTS:
/mnt/HD_a2/.transmission-daemon # ls -lsa 4 drwxr-xr-x 5 nobody 501 4096 May 1 01:23 . 4 drwxrwxrwx 11 root root 4096 Apr 30 23:21 .. 4 -rw-r--r-- 1 root root 198 Apr 30 23:53 automatic.log 4 drwxr-xr-x 2 nobody 501 4096 Apr 29 19:51 blocklists 4 -rw------- 1 root root 652 Apr 30 23:54 dht.dat 12 drwxr-xr-x 2 nobody 501 12288 May 1 01:23 resume 4 -rw------- 1 root root 1928 Apr 30 23:58 settings.json 4 -rw------- 1 root root 157 May 1 01:23 stats.json 12 drwxr-xr-x 2 nobody 501 12288 Apr 30 23:59 torrents 4 -rw-r--r-- 1 nobody 501 184 Apr 30 23:24 transmission-daemon.log
would that create the problem?
i'm thinking that settings should be nobody:501 with a 755 for everything, but i could be wrong.
for now i created a script in the start folder named foo that runs the command to manually start it, but itd be nice to not have to do that..
D
-remember-
whatever breaks, and you can fix- thats good.
whatever you can fix PROPERLY- thats better.
Don't break it to begin with- thats BORING
Offline
This should fix the issue.
$ chown -R nobody:501 /mnt/HD_a2/.transmission-daemon $ cd /mnt/HD_a2/.transmission-daemon $ find . -type -f -exec "chmod 0755 {}" \;
The problem is that Transmission is run as user nobody when using the startup script (so you can delete downloaded files from a samba share).
But to set up a watch-folder, Transmission shortly ran as root, and that changed all the file permissions. Drat!
Offline
ok- i understand what the first command does,
and of course the second- but what is the third supposed to do?
anyrate: heres the output.
/mnt/HD_a2/.transmission-daemon # chown -R nobody:501 /mnt/HD_a2/.transmission-daemon /mnt/HD_a2/.transmission-daemon # find . -type -f -exec "chmod 0755 {}" \; find: invalid argument '-f' to '-type'
so to get it running:
/mnt/HD_a2/ffp/start # ./transmission.sh stop Stopping transmission-daemon /mnt/HD_a2/ffp/start # ./transmission.sh start Starting transmission-daemon /mnt/HD_a2/ffp/start # ./transmission.sh status transmission-daemon not running /mnt/HD_a2/ffp/start # ./foo /mnt/HD_a2/ffp/start # ./transmission.sh status transmission-daemon is running /mnt/HD_a2/ffp/start # more foo transmission-daemon -g /mnt/HD_a2/.transmission-daemon /mnt/HD_a2/ffp/start #
yes- I'm a lazy typist.
and foo is very versitile- it does anything i tell it to!
Last edited by Darkman (2010-05-01 05:10:30)
Offline
Meh. I'm sorry, it was around 4am when I wrote that
The last line is supposed to change rights of all files within /mnt/HD_a2/.transmission-daemon (recursively) to 0755. The 'f' doesn't get a dash though:
find . -type f -exec chmod 0644 {} \;
It's not the first time that I made this mistake
Offline
that last post was a wee bit confuzzin-
0755 or 0644?
i ran 755 on the chance its correct as its in 2 places and 644 is in one.
is that whats referred to as 'fuzzy logic'?
anyway, output:
/mnt/HD_a2/ffp/start # find . -type f -exec chmod 0755 {} \; /mnt/HD_a2/ffp/start # ./transmission.sh status transmission-daemon is running /mnt/HD_a2/ffp/start # ./transmission.sh stop Stopping transmission-daemon /mnt/HD_a2/ffp/start # ./transmission.sh status transmission-daemon is running /mnt/HD_a2/ffp/start # ./transmission.sh start Starting transmission-daemon /mnt/HD_a2/ffp/start # ./transmission.sh status transmission-daemon not running /mnt/HD_a2/ffp/start # ./foo /mnt/HD_a2/ffp/start # ./transmission.sh status transmission-daemon is running
i'm at a loss to understand this.
Offline
I'd wager you're doing something wrong. Transmission creates a logfile at /mnt/HD_a2/.transmisison-daemon/transmission-daemon.log. What does it say?
I chose 0644 because it should be sufficient for the settings files (event 0600 would be good). 0755 gives executable rights to text files. Who'd need that.
You can catch me on irc.freenode.net channel #transmission if you need assistance, but not tonight, I'm off for the day
Offline
KyleK- (in my mind ive been pronouncing it KyLek)
irc- ive never set it up on this machine, guess i will have to tonight..
heheh- caught the typo this time
/mnt/HD_a2/ffp/start # more /mnt/HD_a2/.transmission-daemon/transmission-daemon.log [19:00:40.454] Couldn't read "/mnt/HD_a2/.transmission-daemon/settings.json": Permission denied [19:00:40.462] transmission-daemon Error loading config file -- exiting. (daemon.c:401)
so i changed the perms to 777 (as a test)
same thing...
and the automatic logfile only shows a log since i last started it.
/mnt/HD_a2/ffp/start # more /mnt/HD_a2/.transmission-daemon/automatic.log [10/05/01 21:37:21] ../src/automatic.c, 509: Daemon started ../src/automatic.c, 530: 1 feed URLs ../src/automatic.c, 531: Read 22 filters from config file ../src/state.c, 111: Restored 8 old entries
it doesnt seem to log anything if it is indeed running every 5 min as i setup the config file to do.
when i drop in a new feed, and restart it with the new parameters, it will fetch said file obediently, but i have yet to see it behave unobserved.
is it supposed to log when it checks but theres nothing to pull?
anyway- I'm off to go brew beer!
Cheers!
D
Offline
Hi KyleK,
I have a question about automatic,
It seems that that automatic is not checking at the interval of the config file.
What could be the problem ?
When i start automatic from telnet with the automatic start command it is telling me that it could not find the config file
but with the # automatic -f --once -v 2 -c /ffp/etc/automatic.conf | tee automatic.log command it is running once
see the log file attached in this message:
FFP.log
---
Sun May 2 17:56:53 CEST 2010
ln -snf /mnt/HD_a2/ffp /ffp
* Running /ffp/etc/fun_plug.init ...
* Running /ffp/etc/rc ...
* /ffp/start/ushare.sh ...
Starting ushare...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/transmission.sh ...
Starting transmission-daemon
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh ...
Starting /ffp/sbin/telnetd -l /ffp/bin/sh
* /ffp/start/sshd.sh ...
Starting /ffp/sbin/sshd
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
* /ffp/start/automatic.sh ...
Starting /ffp/bin/automatic -c /ffp/etc/automatic.conf -l /mnt/HD_a2/.transmission-daemon/automatic.log
* OK
---
This is in the config file.
# interval in minutes between checks for new downloads
interval = 5
Telnet session
---
/mnt/HD_a2/ffp # automatic -f --once -v 2 -c /ffp/etc/automatic.conf | tee automatic.log
../src/automatic.c, 514: verbose level: 2
../src/automatic.c, 515: Transmission version: 1.3
../src/automatic.c, 516: RPC host: localhost
../src/automatic.c, 517: RPC port: 9091
../src/automatic.c, 518: RPC auth:
../src/automatic.c, 519: foreground mode: yes
../src/automatic.c, 520: config file: /ffp/etc/automatic.conf
../src/automatic.c, 521: Transmission home: //.config/transmission
../src/automatic.c, 522: check interval: 5 min
../src/automatic.c, 523: Upload limit: 10 KB/s
../src/automatic.c, 524: torrent folder: /tmp
../src/automatic.c, 525: start torrents: yes
../src/automatic.c, 526: state file: /mnt/HD_a2/.transmission-daemon/automatic.state
../src/automatic.c, 528: Prowl API key: c9f3b450715813a5639ea461666c8aa8f5c5430b
../src/automatic.c, 530: 1 feed URLs
../src/automatic.c, 531: Read 13 filters from config file
../src/automatic.c, 550: RPC Version: 8
../src/prowl.c, 138: Prowl API key 'c9f3b450715813a5639ea461666c8aa8f5c5430b' is valid
../src/state.c, 111: Restored 2 old entries
[10/05/02 16:45:07] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/02 16:45:07] ../src/automatic.c, 128: Shutting down daemon
/mnt/HD_a2/ffp # automatic start
Error parsing config file: Cannot find file '/etc/automatic.conf'
[10/05/02 16:45:10] ../src/automatic.c, 128: Shutting down daemon
hope you could help me with this
kind regards
Sander
Last edited by Elgrande (2010-05-02 22:20:11)
Offline
The command to start Automatic is:
$ /ffp/start/automatic.sh start
This calls the application with the proper paths set so the config file is found.
EDIT: The paragraph below is not true, I just checked the code and it currently ignores the TTL value. Sorry for the confusion.
Regarding the interval: An RSS feed may specify the minimum amount of time between two downloads of the feed, called "ttl" (time-to-live). This value basically states the "duration of validity" for the downloaded feed. If this value is larger than the user-specified interval, Automatic will replace it.
So, for example, if a feed has a TTL of 30, Automatic will check the feed every 30 minutes. This is to save bandwidth on the server side. The server might not be able to handle the traffic if thousands of users would download the RSS feed every minute or so.
Red text
Last edited by KyleK (2010-05-02 22:15:29)
Offline
If you specify the parameter "--once" when starting Automatic, it will only check the feed once and exit right after that. It won't run again automatically (no pun intended unless you start it again.
Always start and stop Automatic using the startup script:
$ /ffp/start/automatic.sh start $ /ffp/start/automatic.sh stop
Offline
ofcource thanks now it is working like a charm
Offline
Automatich has been updated zo v0.6.2. It fixes only one issue with the config file parser. No new features have been added.
Offline
So all of a sudden I'm getting an "Unable to parse input data" error in the log file. This is the first I've noticed it. This exact configuration has been working great for months now. Anyone else seeing anything similar?
Running 0.5, for the record. I intend to update to the latest when I get home though.
Offline
Without being able to look at the code, this sounds like a problem with your feed. Does the feed URL still work, and is it a proper rss file?
Offline
Im struggling some with the filter: I got the following
filter = { pattern => "house.*720"
folder => "/mnt/HD_a2/Download/TV serier/House"
But it also downloads desperate housewives, House of Pain etc etc.
The feed supplies this info:
Desperate.Housewives.S06E22.720p.HDTV.x264-CTU
Tyler.Perrys.House.of.Payne.S06E31.720p.HDTV.x264-CTU
Miranda_Lambert-The_House_That_Built_Me_(45th_Annual_ACM_Awards)-HDTV-720p-x264-2010-VFi
Any suggestion how to only make it download House thats formatted like this?
House.S06E20.720p.HDTV.X264-DIMENSION
PS: As a new feature id like to suggest is a "stop seeding when reaching XXX%, would be very useful
Offline
larseryd wrote:
PS: As a new feature id like to suggest is a "stop seeding when reaching XXX%, would be very useful :)
That feature is already built into Transmission:
$ transmission-remote [-t <torrent ID(s)>] -sr <ratio>
With <ratio> being a number between 0 and 1 (e.g. 0.4 meaning 40%). If you don't specify and torrent IDs, the ratio is set as default for all torrents (that haven't been added to Tranmission yet). Existing torrents have to be set manually.
Offline
larseryd wrote:
Im struggling some with the filter.
I got the following:
filter = { pattern => "house.*720"
folder => "/mnt/HD_a2/Download/TV serier/House"
But it also downloads desperate housewives, House of Pain etc etc.
The feed supplies this info:
Desperate.Housewives.S06E22.720p.HDTV.x264-CTU
Tyler.Perrys.House.of.Payne.S06E31.720p.HDTV.x264-CTU
Miranda_Lambert-The_House_That_Built_Me_(45th_Annual_ACM_Awards)-HDTV-720p-x264-2010-VFi
Any suggestion how to only make it download House thats formatted like this?
House.S06E20.720p.HDTV.X264-DIMENSION
Try:
filter = { pattern => "^House.*720p.*" folder => "/mnt/HD_a2/Download/TV serier/House" }
Last edited by Darkman (2010-05-19 03:53:47)
Offline
Darkman wrote:
Try:
Code:
filter = { pattern => "^House.*720p.*" folder => "/mnt/HD_a2/Download/TV serier/House" }
I sense you should try with
filter = { pattern => "^House\.S06.*720p.*" folder => "/mnt/HD_a2/Download/TV serier/House"}
As the previous regexp would match any other House seasons
Offline
Very nice program. I downloaded the latest version, configured it and had it downloading my favorite torrents in about 15 minutes.
Adding an option to re-read the config file every xx minutes would be fantastic though as for some reason every time I exit my telnet session after a restart of the daemon my sessions hangs and I have to restart my DNS323.
Offline
While I'm asking for the moon, unless i missed the ability somewhere......
It would be great to provide filter lists by feed.
It would also be fantastic to be able to talk to multiple transmission installs. If a particular filter hits, then send the request to a specific transmission install.
But hey, I'm VERY happy with what it can currently do!
Offline
Hi There,
Transmission and Automatic are running on my CH3MNAS but when I do a reboot.
Automatic is going to add all the shows even those that are already in the automatic.state file.
# path to the file which stores information about already downloaded torrents (so they don't get readded to Transmission)
statefile = "/mnt/HD_a2/.transmission-daemon/automatic.state"
What could it Be ?
Offline
What does the logfile say?
Offline
Hi Kylek,
Here is a part of the logfile.
---Logfile ---
[10/05/25 17:08:06] ../src/automatic.c, 509: Daemon started
../src/automatic.c, 530: 19 feed URLs
../src/automatic.c, 531: Read 21 filters from config file
../src/state.c, 111: Restored 415 old entries
[10/05/25 17:15:30] ../src/automatic.c, 384: Found new download: FlashForward 1x12 [HDTV - REALPROPER - 2HD] (http://torrent.zoink.it/FlashForward.1x12.(HDTV-REAL-PROPER-2HD)[VTV].torrent)
../src/torrent.c, 118: Torrent upload successful!
../src/torrent.c, 84: 133: upload limit successfully changed to 10kB/s!
../src/state.c, 66: Saving state (415 downloaded torrents) to disk
[10/05/25 17:15:37] ../src/automatic.c, 384: Found new download: FlashForward 1x13 [HDTV - 2HD] (http://torrent.zoink.it/FlashForward.S0 … .XviD-2HD.[eztv].torrent)
../src/torrent.c, 118: Torrent upload successful!
../src/torrent.c, 84: 134: upload limit successfully changed to 10kB/s!
../src/state.c, 66: Saving state (415 downloaded torrents) to disk
[10/05/25 17:15:43] ../src/automatic.c, 384: Found new download: FlashForward 1x15 [HDTV - P0W4] (http://torrent.zoink.it/FlashForward.S0 … XviD-P0W4.[eztv].torrent)
../src/torrent.c, 118: Torrent upload successful!
../src/torrent.c, 84: 135: upload limit successfully changed to 10kB/s!
../src/state.c, 66: Saving state (415 downloaded torrents) to disk
[10/05/25 17:15:49] ../src/automatic.c, 384: Found new download: FlashForward 1x16 [HDTV - 2HD] (http://torrent.zoink.it/FlashForward.S0 … .XviD-2HD.[eztv].torrent)
../src/torrent.c, 118: Torrent upload successful!
../src/torrent.c, 84: 136: upload limit successfully changed to 10kB/s!
../src/state.c, 66: Saving state (415 downloaded torrents) to disk
[10/05/25 17:15:57] ../src/automatic.c, 384: Found new download: FlashForward 1x17 [HDTV - 2HD] (http://torrent.zoink.it/FlashForward.S0 … .XviD-2HD.[eztv].torrent)
../src/torrent.c, 118: Torrent upload successful!
../src/torrent.c, 84: 137: upload limit successfully changed to 10kB/s!
../src/state.c, 66: Saving state (415 downloaded torrents) to disk
[10/05/25 17:16:02] ../src/automatic.c, 384: Found new download: FlashForward 1x18 [HDTV - 2HD] (http://torrent.zoink.it/FlashForward.S0 … .XviD-2HD.[eztv].torrent)
../src/torrent.c, 118: Torrent upload successful!
../src/torrent.c, 84: 138: upload limit successfully changed to 10kB/s!
../src/state.c, 66: Saving state (415 downloaded torrents) to disk
Offline
The state file does not save your download history of all time, it only stores a certain number of entries: It adds up the number of items per feed, so if you have 3 feeds, 2 of them have 20 items and the 3rd has 40 items, then Automatic will only remember the 80 newest matches.
When using a feed that contains items from many different places (several tv shows, for example), this is not a problem.
But when you use feeds that only contain links to episodes for a specific show, you'll experience the problem you just described :)
Let's say a season has 22 episodes, but the RSS feed can hold 30 episodes. Old links will never be "pushed out", since there's enough capacity.
There's 2 solutions for this:
1. Don't use show-specific feeds. Use combined feeds instead and filter via ... filters (that's what they're for!).
2. I could add an option to not truncate the state file so it'll remember everything Automatic ever matched. While it's easy to do, I don't really like it. There might be performance problems (Automatic has to compare every match with every URL in the statefile to see if it's an old one). And since Automatic keeps the list of recent downloads in memory, this could be a huge waste if you've got a very large statefile.
Last edited by KyleK (2010-05-25 20:34:01)
Offline
Maybe an user-configurable state size would the another option
Offline