NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

babaraccas's avatar
babaraccas
Aspirant
Sep 26, 2011

Automatic addon can't find file or directory

I've been trying everything I can think of to get Automatic to work but I just can't figure it out. I've installed the addon, disabled it in frontview and launched it through SSH with
automatic -v 3 -l /addons-config/automatic.log -c /etc/automatic.conf


Here's my complete automatic.conf. I removed all of the excess to try to simplify and changed my cookie info:
#Boston Bruins from iomag
feed = { url => "http://www.nhltorrents.co.uk/rsscappers.php?id=2163"
cookies => "uid=12345;pass=1212121212121212121212121212121"
}
#San Jose Sharks by MagicPotatoes
feed = { url => "http://www.nhltorrents.co.uk/rsscappers.php?id=40486"
cookies => "uid=12345;pass=1212121212121212121212121212121"
}
#Detroit Red Wings by Textbook
feed = { url => "http://www.nhltorrents.co.uk/rsscappers.php?id=3066"
cookies => "uid=12345;pass=1212121212121212121212121212121"
}
#Phillyslims
feed = { url => "http://www.nhltorrents.co.uk/rsscappers.php?id=17122"
cookies => "uid=12345;pass=1212121212121212121212121212121"
}

interval = 10
use-transmission = no
torrent-folder = "/USB/WD_1TB/torrents/sources/testNHL/"
statefile = "/addons-config/automatic.state"

# Filters
filter = {
pattern => "NHL.*720"
folder => "/WD_1TB/torrents/NHL/"
}

filter = {
pattern => "NHL.*HDTV"
folder => "/WD_1TB/torrents/NHL/"
}

Here's a snipet of the log where I think the error is occuring. "Error opening file for writing: No such file or directory" keeps popping up. It's unclear to me whether that means it can't get the file from the torrent site, or whether it can't create the file on the NAS. The folder exists that I want to download the torrent file to (/USB/WD_1TB/torrents/sources/testNHL/) and I gave it 777 permissions:
../src/web.c, 108: [write_header_callback] Found filename: [TSTN] NHL - Preseason - Buffalo Sabres @ Toronto Maple Leafs - 2011/09/23 - English - 720 HD.torrent
../src/web.c, 188: [write_data_callback] allocated 102400 bytes for mem->response->data
../src/web.c, 438: [getHTTPData] response code: 0
../src/torrent.c, 52: Content-Filename: [TSTN] NHL - Preseason - Buffalo Sabres @ Toronto Maple Leafs - 2011/09/23 - English - 720 HD.torrent
../src/file.c, 86: Error opening file for writing: No such file or directory
../src/list.c, 228: [cleanupList] size before: 3
../src/list.c, 239: [cleanupList] size after: 0
../src/web.c, 570: [closeCURLSession] Closing curl session 0x3a468


Any suggestions would be appreciated. I've got the watch-directory working perfectly in Transmission so getting this to work would be killer.

4 Replies

Replies have been turned off for this discussion
  • To me this looks like Automatic can't write to the directory on the USB drive you gave it as a target. How are the permissions on the target folders you specified, who's the owner?

    -Stefan
  • Thanks for the reply. I did some more troubleshooting and tested the exact same settings with a non passworded site (ezrss) and automatic saved the torrent files perfectly. It seems to be something with the cookies.

    Also, the permissions on that directory are 777. The owner is my personal user account on the NAS
  • I seem to be having the same problem. After trying a number of things from about five different posts I still can't get Automatic to load my files to the correct folder. Transmission will down load my files to "/c/media/BitTorrent" but not the folder specified by Automatic.

    Like babaraccas I turned Automatic off in FrontView and launched it through SSH with:
     automatic -v 3 -l /c/addons-config/auto.log -c /etc/automatic.conf

    Here is my automatic.conf file.
    transmission-version = "1.3"
    feed = { url => "http://www.ezrss.it/search/index.php?show_name=The+Big+Bang+Theory&date=2011-03-10&season=4&episode=18&mode=rss"
    }
    interval = 1000
    use-transmission = no
    start-torrents = yes
    torrent-folder = "/c/media/BitTorrent/sources/"
    statefile = "/c/addons-config/Transmission/transmission-daemon/torrents/automatic.state"
    filter = { pattern => "The.Big.Bang.Theory.*"
    folder => "/c/media/TV_Shows/"
    }

    Finally the auto.log file:
    ../src/config_parser.c, 429: Configuration file size: 454
    ../src/config_parser.c, 599: [parse_config_file] option: transmission-version
    ../src/config_parser.c, 600: [parse_config_file] param: 1.3 (3 byte)
    ../src/config_parser.c, 601: [parse_config_file] -----------------
    ../src/config_parser.c, 318: transmission-version=1.3 (type: 0)
    ../src/config_parser.c, 559: reading multiline param
    ../src/config_parser.c, 573: multiline param: param_good=0
    ../src/config_parser.c, 599: [parse_config_file] option: feed
    ../src/config_parser.c, 600: [parse_config_file] param: url => "http://www.ezrss.it/search/index.php?show_name=The+Big+Bang+Theory&date=2011-03-10&season=4&episode=18&mode=rss"
    (129 byte)
    ../src/config_parser.c, 601: [parse_config_file] -----------------
    ../src/config_parser.c, 318: feed= url => "http://www.ezrss.it/search/index.php?show_name=The+Big+Bang+Theory&date=2011-03-10&season=4&episode=18&mode=rss"
    (type: 2)
    ../src/regex.c, 95: [getRegExMatch] Text to match against: http://www.ezrss.it/search/index.php?show_name=The+Big+Bang+Theory&date=2011-03-10&season=4&episode=18&mode=rss (111 byte)
    ../src/config_parser.c, 599: [parse_config_file] option: interval
    ../src/config_parser.c, 600: [parse_config_file] param: 1000 (4 byte)
    ../src/config_parser.c, 601: [parse_config_file] -----------------
    ../src/config_parser.c, 318: interval=1000 (type: 1)
    ../src/config_parser.c, 599: [parse_config_file] option: use-transmission
    ../src/config_parser.c, 600: [parse_config_file] param: no (2 byte)
    ../src/config_parser.c, 601: [parse_config_file] -----------------
    ../src/config_parser.c, 318: use-transmission=no (type: 1)
    ../src/config_parser.c, 599: [parse_config_file] option: start-torrents
    ../src/config_parser.c, 600: [parse_config_file] param: yes (3 byte)
    ../src/config_parser.c, 601: [parse_config_file] -----------------
    ../src/config_parser.c, 318: start-torrents=yes (type: 1)
    ../src/config_parser.c, 599: [parse_config_file] option: torrent-folder
    ../src/config_parser.c, 600: [parse_config_file] param: /c/media/BitTorrent/sources/ (28 byte)
    ../src/config_parser.c, 601: [parse_config_file] -----------------
    ../src/config_parser.c, 318: torrent-folder=/c/media/BitTorrent/sources/ (type: 0)
    ../src/config_parser.c, 599: [parse_config_file] option: statefile
    ../src/config_parser.c, 600: [parse_config_file] param: /c/addons-config/Transmission/transmission-daemon/torrents/automatic.state (74 byte)
    ../src/config_parser.c, 601: [parse_config_file] -----------------
    ../src/config_parser.c, 318: statefile=/c/addons-config/Transmission/transmission-daemon/torrents/automatic.state (type: 0)
    ../src/config_parser.c, 559: reading multiline param
    ../src/config_parser.c, 573: multiline param: param_good=0
    ../src/config_parser.c, 599: [parse_config_file] option: filter
    ../src/config_parser.c, 600: [parse_config_file] param: pattern => "The.Big.Bang.Theory.*"
    folder => "/c/media/TV_Shows/"
    (78 byte)
    ../src/config_parser.c, 601: [parse_config_file] -----------------
    ../src/config_parser.c, 318: filter= pattern => "The.Big.Bang.Theory.*"
    folder => "/c/media/TV_Shows/"
    (type: 2)
    [11/12/01 21:25:35] ../src/automatic.c, 509: Daemon started
    ../src/automatic.c, 514: verbose level: 3
    ../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: none
    ../src/automatic.c, 519: foreground mode: no
    ../src/automatic.c, 520: config file: /etc/automatic.conf
    ../src/automatic.c, 521: Transmission home: /root/.config/transmission
    ../src/automatic.c, 522: check interval: 232 min
    ../src/automatic.c, 523: Upload limit: -1 KB/s
    ../src/automatic.c, 524: torrent folder: /c/media/BitTorrent/sources/
    ../src/automatic.c, 525: start torrents: yes
    ../src/automatic.c, 526: state file: /c/addons-config/Transmission/transmission-daemon/torrents/automatic.state
    ../src/automatic.c, 530: 1 feed URLs
    ../src/automatic.c, 531: Read 1 filters from config file
    ../src/state.c, 111: Restored 26 old entries
    [11/12/01 21:25:35] ../src/automatic.c, 560: ------ Checking for new episodes ------
    ../src/automatic.c, 573: Checking feed 1 ...
    ../src/web.c, 401: [getHTTPData] url=http://www.ezrss.it/search/index.php?show_name=The+Big+Bang+Theory&date=2011-03-10&season=4&episode=18&mode=rss, curl_session=(nil)
    ../src/web.c, 366: [am_curl_init] Created new curl session 0x8063bc8
    ../src/regex.c, 95: [getRegExMatch] Text to match against: Content-Length: 1623
    (22 byte)
    ../src/web.c, 95: Content-Length: 1623
    ../src/web.c, 438: [getHTTPData] response code: 200
    ../src/automatic.c, 428: [processFeed] curl_session=0x8063bc8
    ../src/xml_parser.c, 87: 1 items in XML
    ../src/xml_parser.c, 130: == Done extracting RSS items ==
    ../src/automatic.c, 440: History bucket size changed: 31
    [11/12/01 21:25:36] ../src/automatic.c, 384: Found new download: The Big Bang Theory 4x18 [HDTV - ASAP] (http://torrent.zoink.it/The.Big.Bang.Theory.S04E18.HDTV.XviD-ASAP.[eztv].torrent)
    ../src/automatic.c, 304: [downloadTorrent] url=http://torrent.zoink.it/The.Big.Bang.Theory.S04E18.HDTV.XviD-ASAP.[eztv].torrent, curl_session=0x8063bc8
    ../src/web.c, 401: [getHTTPData] url=http://torrent.zoink.it/The.Big.Bang.Theory.S04E18.HDTV.XviD-ASAP.[eztv].torrent, curl_session=0x8063bc8
    ../src/regex.c, 95: [getRegExMatch] Text to match against: Content-Length: 7545
    (22 byte)
    ../src/web.c, 95: Content-Length: 7545
    ../src/web.c, 438: [getHTTPData] response code: 200
    ../src/file.c, 95: Saved torrent file '/c/media/BitTorrent/sources//The.Big.Bang.Theory.S04E18.HDTV.XviD-ASAP.[eztv].torrent'
    ../src/state.c, 66: Saving state (27 downloaded torrents) to disk
    ../src/list.c, 228: [cleanupList] size before: 1
    ../src/list.c, 239: [cleanupList] size after: 0
    ../src/web.c, 570: [closeCURLSession] Closing curl session 0x8063bc8
    ../src/automatic.c, 578: New bucket size: 31


    Everything ends up in the "/c/media/BitTorrent" folder
    Why?
    Thanks for your help.
  • Hey JosephAE,

    Doesn't seem like there's much support around here for Automatic. I went ahead and followed this tutorial and installed Flexget. I'm really satisfied with that solution.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More