evilhero / mylar

An automated Comic Book downloader (cbr/cbz) for use with SABnzbd, NZBGet and torrents
GNU General Public License v3.0
978 stars 173 forks source link

torrent not sent to transmission #1407

Closed nopoz closed 7 years ago

nopoz commented 7 years ago

Noticing there is no destination directory setting for transmission config. When using transmission, mylar downloads the torrent to /usr/local/mylar/var/cache/ but it is not sent to transmission. I thought maybe it would send the torrent to the watch directory, but it's not there either.

logs:

root@nas:/volume2/@appstore/mylar/var# tail -f -n 0 "/volume2/@appstore/mylar/var/logs/mylar.log"
04-Oct-2016 12:55:07 - INFO    :: Thread-13 : ComicID:75114
04-Oct-2016 12:55:07 - INFO    :: Thread-13 : Retrying : 551342
04-Oct-2016 12:55:07 - INFO    :: Thread-13 : Located snatched download:
04-Oct-2016 12:55:07 - INFO    :: Thread-13 : --Referencing : 32P @ 2016-10-04 12:16:22
04-Oct-2016 12:55:07 - DEBUG   :: Thread-13 : sending .torrent to watchdir.
04-Oct-2016 12:55:07 - DEBUG   :: Thread-13 : ComicName:Outcast by Kirkman & Azaceta
04-Oct-2016 12:55:07 - DEBUG   :: Thread-13 : Torrent Provider:32P
04-Oct-2016 12:55:07 - DEBUG   :: Thread-13 : Torrent ID:43105
04-Oct-2016 12:55:07 - INFO    :: Thread-13 : matched on Outcast by Kirkman & Azaceta
04-Oct-2016 12:55:07 - DEBUG   :: Thread-13 : filename for torrent set to : /usr/local/mylar/var/cache/Outcast_by_Kirkman_&_Azaceta_21_2016.torrent
04-Oct-2016 12:55:07 - DEBUG   :: Thread-13 : [32P] Verify SSL set to : True
04-Oct-2016 12:55:07 - DEBUG   :: Thread-13 : [32P-AUTHENTICATION] 32P (Auth Mode) Authentication already done. Attempting to use existing keys.
04-Oct-2016 12:55:09 - DEBUG   :: Thread-13 : [32P] Saved torrent file to : /usr/local/mylar/var/cache/Outcast_by_Kirkman_&_Azaceta_21_2016.torrent
04-Oct-2016 12:55:09 - ERROR   :: Thread-13 : Query failed with result "download directory path is not absolute".
04-Oct-2016 12:55:09 - ERROR   :: Thread-13 : Unable to send torrent - check logs and settings.

Config:

[General]
config_version = 6
dbchoice = sqlite3
dbuser = ""
dbpass = ""
dbname = ""
dynamic_update = 4
comicvine_api = XXXX
cvapi_rate = 2
http_port = 8090
http_host = 0.0.0.0
http_username = ""
http_password = ""
http_root = /
enable_https = 0
https_cert = ""
https_key = ""
https_chain = ""
https_force_on = 0
host_return = ""
api_enabled = 1
api_key = XXX
launch_browser = 0
auto_update = 0
log_dir = /usr/local/mylar/var/logs
max_logsize = 1000000
git_path = /usr/local/git/bin/git
cache_dir = /usr/local/mylar/var/cache
annuals_on = 1
cv_only = 1
cv_onetimer = 1
check_github = 1
check_github_on_startup = 1
check_github_interval = 360
git_user = evilhero
git_branch = master
destination_dir = /volume2/Root/Comics
multiple_dest_dirs = ""
create_folders = 1
delete_remove_dir = 0
chmod_dir = 0777
chmod_file = 0660
chowner = XXXX
chgroup = users
usenet_retention = 1500
alt_pull = 0
search_interval = 360
nzb_startup_search = 0
add_comics = 0
comic_dir = ""
blacklisted_publishers = None
imp_move = 0
imp_rename = 0
imp_metadata = 0
enable_check_folder = 0
download_scan_interval = 5
folder_scan_log_verbose = 0
check_folder = ""
interface = default
dupeconstraint = filesize
ddump = 0
duplicate_dump = ""
pull_refresh = 2016-10-04 12:56:59.542448
autowant_all = 0
autowant_upcoming = 1
preferred_quality = 0
comic_cover_local = 0
correct_metadata = 0
move_files = 0
rename_files = 0
folder_format = $Series
file_format = $Series $Issue ($Year)
blackhole_dir = ""
replace_spaces = 0
replace_char = .
zero_level = 0
zero_level_n = none
lowercase_filenames = 0
ignore_havetotal = 0
snatched_havetotal = 0
syno_fix = 0
allow_packs = 0
search_delay = 1
grabbag_dir = /volume1/Root/Comics
highcount = 0
read2filename = 0
send2read = 0
tab_enable = 0
tab_host = ""
tab_user = ""
tab_pass = ""
tab_directory = ""
storyarcdir = 0
copy2arcdir = 0
use_minsize = 0
minsize = ""
use_maxsize = 0
maxsize = ""
add_to_csv = 1
cvinfo = 0
log_level = 0
enable_extra_scripts = 0
extra_scripts = ""
enable_pre_scripts = 0
pre_scripts = ""
post_processing = 1
post_processing_script = ""
file_opts = copy
weekfolder = 0
weekfolder_loc = ""
locmove = 0
newcom_dir = ""
fftonewcom_dir = 0
enable_meta = 1
cbr2cbz_only = 0
ct_tag_cr = 1
ct_tag_cbl = 0
ct_cbz_overwrite = 1
unrar_cmd = None
cmtag_start_year_as_volume = 0
update_ended = 0
indie_pub = 75
biggie_pub = 55
upcoming_snatched = 1
enable_rss = 0
rss_checkinterval = 20
rss_lastrun = 2016-10-04 12:16:03
failed_download_handling = 0
failed_auto = 0
provider_order = 0, 32p
nzb_downloader = 0
torrent_downloader = 3
[Torrents]
enable_torrents = 1
minseeds = 0
torrent_local = 1
local_watchdir = "/volume2/Root/Downloads/Transmission/#autostart"
torrent_seedbox = 0
seedbox_host = ""
seedbox_port = ""
seedbox_user = ""
seedbox_pass = ""
seedbox_watchdir = ""
enable_torrent_search = 1
enable_tpse = 0
tpse_proxy = ""
tpse_verify = True
enable_32p = 1
mode_32p = 1
passkey_32p = XXXX
rssfeed_32p = ""
username_32p = XXXX
password_32p = XXXX
verify_32p = 1
snatchedtorrent_notify = 0
rtorrent_host = ""
rtorrent_username = ""
rtorrent_password = ""
rtorrent_startonload = 0
rtorrent_label = ""
rtorrent_directory = ""
[SABnzbd]
sab_host = http://http:
sab_username = ""
sab_password = ""
sab_apikey = ""
sab_category = ""
sab_priority = Default
sab_to_mylar = 0
sab_directory = ""
[NZBGet]
nzbget_host = ""
nzbget_port = ""
nzbget_username = ""
nzbget_password = ""
nzbget_category = ""
nzbget_priority = Default
nzbget_directory = ""
[NZBsu]
nzbsu = 0
nzbsu_uid = ""
nzbsu_apikey = ""
nzbsu_verify = 1
[DOGnzb]
dognzb = 0
dognzb_apikey = ""
dognzb_verify = True
[Experimental]
experimental = 0
altexperimental = 1
[Torznab]
enable_torznab = 0
torznab_name = ""
torznab_host = ""
torznab_apikey = ""
torznab_category = ""
torznab_verify = False
[Newznab]
newznab = 0
extra_newznabs = ,
[uTorrent]
utorrent_host = ""
utorrent_username = ""
utorrent_password = ""
utorrent_label = ""
[Transmission]
transmission_host = localhost
transmission_username = XXXX
transmission_password = XXXX
[Prowl]
prowl_enabled = 0
prowl_keys = ""
prowl_onsnatch = 0
prowl_priority = 0
[NMA]
nma_enabled = 0
nma_apikey = ""
nma_priority = 0
nma_onsnatch = 0
[PUSHOVER]
pushover_enabled = 0
pushover_apikey = ""
pushover_userkey = ""
pushover_priority = 0
pushover_onsnatch = 0
[BOXCAR]
boxcar_enabled = 0
boxcar_onsnatch = 0
boxcar_token = ""
[PUSHBULLET]
pushbullet_enabled = 0
pushbullet_apikey = ""
pushbullet_deviceid = None
pushbullet_onsnatch = 0
evilhero commented 7 years ago

It looks like you have the value for the local_watchdir within quotation marks which might be causing the problem (local_watchdir = "/volume2/Root/Downloads/Transmission/#autostart"). Try removing the quotation marks (if editing the config.ini, make sure mylar isn't running when editing), and trying again.

If it doesn't work, let me know and I can troubleshoot more. Transmissiom was added as a pull request so I didn't do it, as I don't use it - but I can definitely troubleshoot / fix things ;)

nopoz commented 7 years ago

Shouldn't the transmission config section include a destination directory to place torrent data in? This is what I'm used to seeing in Couchpotato and Headphones. Perhaps @tresni can help illuminate how he indtended it to work? Maybe I'm missing something?

tresni commented 7 years ago

@doucheymcdoucherson I'm using the same behavior as rtorrent and utorrent which is to use your watch folder as the destination folder. See https://github.com/evilhero/mylar/blob/master/mylar/torrent/clients/transmission.py#L74-L76 .

As to the issue with the path, it's likely the #. In most filesystems/shells that's a special character that needs to be either escaped (\#) or enclosed in double quotes (like he has.) I'd try a path without the pound character to see if that works.

nopoz commented 7 years ago

Hi @trensi thanks for the reply. What is the point of having a transmission specific config if you're just going to use the watch directory? Why not just use the watch directory setting in the transmission config then? With the Transmission RPC you can specify specific destination directories. I'll try a different folder name and see if it works.

tresni commented 7 years ago

The transmission specific configuration is for transmission specific things (username, password, host.) Watch/destination folder is shared among a number of things (all the torrent providers as an example.) So no sense duplicating that in the transmission setting at this time. (Again, this was me copying what was already in place for rtorrent and utorrent. So if you want this changed, probably better to talk to @evilhero about how the settings should be ;-) )

evilhero commented 7 years ago

@doucheymcdoucherson Currently rtorrent and utorrent both can add torrents to their respective clients from within Mylar, as I was understanding that this was also the reason why the transmission client was introduced within Mylar as an option.

There are differences between the options within Mylar as well:

Since I don't use transmission, if you want a destination directory option added you might have to nicely ask @tresni, or do a PR yourself for the addition.

nopoz commented 7 years ago

I tried it again with a different watch directory specified and the torrent wasn't moved to the transmission watch directory.

mylar.log:

root@nas:/volume2/@appstore/mylar/var/logs# tail -f -n 0 mylar.log
06-Oct-2016 11:06:40 - DEBUG   :: CP Server Thread-11 : Marking 551342 as Skipped
06-Oct-2016 11:06:40 - DEBUG   :: CP Server Thread-11 : updated...to Skipped

06-Oct-2016 11:07:08 - DEBUG   :: CP Server Thread-7 : Marking Outcast by Kirkman & Azaceta 21 as Wanted
06-Oct-2016 11:07:08 - DEBUG   :: CP Server Thread-7 : updated...to Wanted
06-Oct-2016 11:07:08 - DEBUG   :: CP Server Thread-7 : Marking issues: ['551342'] as Wanted
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : Publisher is : Skybound
06-Oct-2016 11:07:08 - INFO    :: Thread-20 : Issue Title given as : blood is spilled
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : Checking for torrent enabled.
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : nzbprovider(s): []
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : there are : 1 torrent providers you have selected.
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : there are : 0 nzb providers you have selected.
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : Usenet Retention : 1500 days
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : found provider in existing enabled providers.
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : checking against torrent provider: 32p
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : torrent provider found: 32p
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : provider order sequence is now to start with 32p at spot #0
06-Oct-2016 11:07:08 - INFO    :: Thread-20 : search provider order is ['32p']
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : Initiating Search via : api
06-Oct-2016 11:07:08 - INFO    :: Thread-20 : allow_packs set to :True
06-Oct-2016 11:07:08 - INFO    :: Thread-20 : Shhh be very quiet...I'm looking for Outcast by Kirkman & Azaceta issue: 21 (2016) using 32P
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : calpha/cnumber: None / None
06-Oct-2016 11:07:08 - DEBUG   :: Thread-20 : [32P-AUTHENTICATION] Session cookie found. Attempting to load...
06-Oct-2016 11:07:09 - DEBUG   :: Thread-20 : [32P-AUTHENTICATION] Session key-based login was good.
06-Oct-2016 11:07:09 - INFO    :: Thread-20 : [32P-AUTHENTICATION][LOGIN SUCCESS] Now preparing for the use of 32P keyed authentication...
06-Oct-2016 11:07:09 - INFO    :: Thread-20 : publisher search set to : Skybound
06-Oct-2016 11:07:09 - INFO    :: Thread-20 : series_search: Outcast by Kirkman & Azaceta
06-Oct-2016 11:07:11 - INFO    :: Thread-20 : 0 series listed for searching that match.
06-Oct-2016 11:07:11 - INFO    :: Thread-20 : Alternate Search pattern detected...re-adjusting to : Outcast 2016
06-Oct-2016 11:07:11 - INFO    :: Thread-20 : allow_packs set to :True
06-Oct-2016 11:07:11 - INFO    :: Thread-20 : Shhh be very quiet...I'm looking for Outcast issue: 21 (2016) using 32P
06-Oct-2016 11:07:11 - DEBUG   :: Thread-20 : calpha/cnumber: None / None
06-Oct-2016 11:07:11 - DEBUG   :: Thread-20 : [32P-AUTHENTICATION] Session cookie found. Attempting to load...
06-Oct-2016 11:07:11 - DEBUG   :: Thread-20 : [32P-AUTHENTICATION] Session key-based login was good.
06-Oct-2016 11:07:11 - INFO    :: Thread-20 : [32P-AUTHENTICATION][LOGIN SUCCESS] Now preparing for the use of 32P keyed authentication...
06-Oct-2016 11:07:11 - INFO    :: Thread-20 : publisher search set to : Skybound
06-Oct-2016 11:07:11 - INFO    :: Thread-20 : series_search: Outcast
06-Oct-2016 11:07:13 - INFO    :: Thread-20 : searchresult: Outcast --- Outcast[Skybound]
06-Oct-2016 11:07:13 - INFO    :: Thread-20 : [MATCH] Outcast [6006]
06-Oct-2016 11:07:13 - INFO    :: Thread-20 : searchresult: OutcastsofJupiter --- Outcast[Skybound]
06-Oct-2016 11:07:13 - INFO    :: Thread-20 : 1 series listed for searching that match.
06-Oct-2016 11:07:13 - INFO    :: Thread-20 : 1 series match the title being search for
06-Oct-2016 11:07:13 - INFO    :: Thread-20 : payload: {'action': 'groupsearch', 'issue': u'21', 'id': u'6006'}
06-Oct-2016 11:07:14 - INFO    :: Thread-20 : successfully retrieved 1 search results.
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : checking search result: Outcast v0 #21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : sub:Outcast v0 #21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : size given as: 41.9 MB
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Wed 28 Sep 2016 08:14:36 PM  is after store date of 2016-09-28
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Entry: Outcast v0 #21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Cleantitle: outcast v0  21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : [Vx] Version detected as v0
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Newly finished reformed cleantitle (with NO volume label): outcast   21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Cleantitle: outcast   21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : 0. Bracket Word: outcast   21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Comic: outcast   21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : UseFuzzy is  : 0
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : ComVersChk : 0
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Year not given properly formatted but Version detected.Bypassing Year Match.
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : volume detection commencing - adjusting length.
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : watch comicversion is None
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : version found: v0
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : vers4year: no
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : vers4vol: v0
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : 32P torrent discovery. Store date (2016-09-28) is before posting date (Wed 28 Sep 2016 08:14:36 PM ), forcing volume label to be the same as series label (0-Day Enforcement): v1 --> v2014
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : FCVersion: 1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : DCVersion: 1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : SCVersion: 2014
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : We matched on versions...v0
06-Oct-2016 11:07:14 - INFO    :: Thread-20 : 32P
06-Oct-2016 11:07:14 - INFO    :: Thread-20 : rss:no
06-Oct-2016 11:07:14 - INFO    :: Thread-20 : allow_packs:True
06-Oct-2016 11:07:14 - INFO    :: Thread-20 : pack:
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : original nzb comic and issue: outcast   21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : adjusted nzb comic and issue: outcast   21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : adjusting from: outcast   21 to: 21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : ['outcast', '21'] nzb series word count: 1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : ['outcast'] watchlist word count: 1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : splitst : 1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : len-watchcomic : 1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : length match..proceeding
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : search-length: 1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Watchlist-length: 1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : splitit: outcast
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : scount : 0
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : 0 Comparing: outcast .to. outcast
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : word matched on : outcast
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : scount:1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : splitit-len:1
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Match to series : 100.0 %.
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : it's a go captain... - we matched 100.0%!
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : this should be a match!
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : issue we are looking for is : 21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : integer value of issue we are looking for : 21000
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : issue we found for is : 21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : integer value of issue we have found : 21000
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : nzbname used for post-processing:Outcast.v0.#21
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : issues match!
06-Oct-2016 11:07:14 - INFO    :: Thread-20 : Found Outcast (2016) issue: 21 using 32P
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : link given by: 32P
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : ComicName:Outcast
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : link:43105
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : Torrent Provider:32P
06-Oct-2016 11:07:14 - INFO    :: Thread-20 : matched on Outcast
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : filename for torrent set to : /usr/local/mylar/var/cache/Outcast_21_2016.torrent
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : [32P] Verify SSL set to : True
06-Oct-2016 11:07:14 - DEBUG   :: Thread-20 : [32P-AUTHENTICATION] 32P (Auth Mode) Authentication already done. Attempting to use existing keys.
06-Oct-2016 11:07:15 - DEBUG   :: Thread-20 : [32P] Saved torrent file to : /usr/local/mylar/var/cache/Outcast_21_2016.torrent
06-Oct-2016 11:07:15 - DEBUG   :: Thread-20 : Found matching comic...preparing to send to Updater with IssueID: 551342 and nzbname: Outcast.v0.#21
06-Oct-2016 11:07:15 - INFO    :: Thread-20 : setting the nzbid for this download grabbed by 32P in the nzblog to : 43105
06-Oct-2016 11:07:15 - DEBUG   :: Thread-20 : Deleted stale entry from nzblog for IssueID: 551342 [32P]
06-Oct-2016 11:07:16 - DEBUG   :: Thread-20 : [UPDATER] comicid: 75114
06-Oct-2016 11:07:16 - DEBUG   :: Thread-20 : [UPDATER] issueid: 551342
06-Oct-2016 11:07:16 - INFO    :: Thread-20 : [UPDATER] Updating status to snatched
06-Oct-2016 11:07:16 - DEBUG   :: Thread-20 : [UPDATER] Provider is 32P
06-Oct-2016 11:07:16 - INFO    :: Thread-20 : [UPDATER] Updated the status (Snatched) complete for Outcast by Kirkman & Azaceta Issue: 21

config:

root@nas:/volume2/@appstore/mylar/var# cat config.ini 
[General]
config_version = 6
dbchoice = sqlite3
dbuser = ""
dbpass = ""
dbname = ""
dynamic_update = 4
comicvine_api = XXXX
cvapi_rate = 2
http_port = 8090
http_host = 0.0.0.0
http_username = ""
http_password = ""
http_root = /
enable_https = 0
https_cert = ""
https_key = ""
https_chain = ""
https_force_on = 0
host_return = ""
api_enabled = 1
api_key = XXXX
launch_browser = 0
auto_update = 0
log_dir = /usr/local/mylar/var/logs
max_logsize = 1000000
git_path = /usr/local/git/bin/git
cache_dir = /usr/local/mylar/var/cache
annuals_on = 1
cv_only = 1
cv_onetimer = 1
check_github = 1
check_github_on_startup = 1
check_github_interval = 360
git_user = evilhero
git_branch = master
destination_dir = /volume2/Root/Comics
multiple_dest_dirs = ""
create_folders = 1
delete_remove_dir = 0
chmod_dir = 0777
chmod_file = 0660
chowner = XXXX
chgroup = users
usenet_retention = 1500
alt_pull = 0
search_interval = 360
nzb_startup_search = 0
add_comics = 0
comic_dir = ""
blacklisted_publishers = None
imp_move = 0
imp_rename = 0
imp_metadata = 0
enable_check_folder = 0
download_scan_interval = 5
folder_scan_log_verbose = 0
check_folder = ""
interface = default
dupeconstraint = filesize
ddump = 0
duplicate_dump = ""
pull_refresh = 2016-10-04 12:56:59.542448
autowant_all = 0
autowant_upcoming = 1
preferred_quality = 0
comic_cover_local = 0
correct_metadata = 0
move_files = 0
rename_files = 0
folder_format = $Series
file_format = $Series $Issue ($Year)
blackhole_dir = ""
replace_spaces = 0
replace_char = .
zero_level = 0
zero_level_n = none
lowercase_filenames = 0
ignore_havetotal = 0
snatched_havetotal = 0
syno_fix = 0
allow_packs = 0
search_delay = 1
grabbag_dir = /volume2/Root/Comics
highcount = 0
read2filename = 0
send2read = 0
tab_enable = 0
tab_host = ""
tab_user = ""
tab_pass = ""
tab_directory = ""
storyarcdir = 0
copy2arcdir = 0
use_minsize = 0
minsize = ""
use_maxsize = 0
maxsize = ""
add_to_csv = 1
cvinfo = 0
log_level = 0
enable_extra_scripts = 0
extra_scripts = ""
enable_pre_scripts = 0
pre_scripts = ""
post_processing = 1
post_processing_script = ""
file_opts = copy
weekfolder = 0
weekfolder_loc = ""
locmove = 0
newcom_dir = ""
fftonewcom_dir = 0
enable_meta = 1
cbr2cbz_only = 0
ct_tag_cr = 1
ct_tag_cbl = 0
ct_cbz_overwrite = 1
unrar_cmd = None
cmtag_start_year_as_volume = 0
update_ended = 0
indie_pub = 75
biggie_pub = 55
upcoming_snatched = 1
enable_rss = 0
rss_checkinterval = 20
rss_lastrun = 2016-10-04 12:16:03
failed_download_handling = 0
failed_auto = 0
provider_order = 0, 32p
nzb_downloader = 0
torrent_downloader = 3
[Torrents]
enable_torrents = 1
minseeds = 0
torrent_local = 1
local_watchdir = /volume2/Root/Downloads/Transmission/autostart
torrent_seedbox = 0
seedbox_host = ""
seedbox_port = ""
seedbox_user = ""
seedbox_pass = ""
seedbox_watchdir = ""
enable_torrent_search = 1
enable_tpse = 0
tpse_proxy = ""
tpse_verify = True
enable_32p = 1
mode_32p = 1
passkey_32p = XXXX
rssfeed_32p = ""
username_32p = XXXX
password_32p = "XXXX"
verify_32p = 1
snatchedtorrent_notify = 0
rtorrent_host = ""
rtorrent_username = ""
rtorrent_password = ""
rtorrent_startonload = 0
rtorrent_label = ""
rtorrent_directory = ""
[SABnzbd]
sab_host = http://http:
sab_username = ""
sab_password = ""
sab_apikey = ""
sab_category = ""
sab_priority = Default
sab_to_mylar = 0
sab_directory = ""
[NZBGet]
nzbget_host = ""
nzbget_port = ""
nzbget_username = ""
nzbget_password = ""
nzbget_category = ""
nzbget_priority = Default
nzbget_directory = ""
[NZBsu]
nzbsu = 0
nzbsu_uid = ""
nzbsu_apikey = ""
nzbsu_verify = 1
[DOGnzb]
dognzb = 0
dognzb_apikey = ""
dognzb_verify = True
[Experimental]
experimental = 0
altexperimental = 1
[Torznab]
enable_torznab = 0
torznab_name = ""
torznab_host = ""
torznab_apikey = ""
torznab_category = ""
torznab_verify = False
[Newznab]
newznab = 0
extra_newznabs = ,
[uTorrent]
utorrent_host = ""
utorrent_username = ""
utorrent_password = ""
utorrent_label = ""
[Transmission]
transmission_host = 0.0.0.0
transmission_username = XXXX
transmission_password = XXXX
[Prowl]
prowl_enabled = 0
prowl_keys = ""
prowl_onsnatch = 0
prowl_priority = 0
[NMA]
nma_enabled = 0
nma_apikey = ""
nma_priority = 0
nma_onsnatch = 0
[PUSHOVER]
pushover_enabled = 0
pushover_apikey = ""
pushover_userkey = ""
pushover_priority = 0
pushover_onsnatch = 0
[BOXCAR]
boxcar_enabled = 0
boxcar_onsnatch = 0
boxcar_token = ""
[PUSHBULLET]
pushbullet_enabled = 0
pushbullet_apikey = ""
pushbullet_deviceid = None
pushbullet_onsnatch = 0

watch folder exists but nothing in it:

root@nas:/volume2/Root/Downloads/Transmission/autostart# ls -la /volume2/Root/Downloads/Transmission/autostart
total 0
drwxrwxrwx 1 transmission users    0 Jun 19  2015 .
drwxrwx--- 1 transmission users 1148 Oct  6 11:00 ..
root@nas:/volume2/Root/Downloads/Transmission/autostart# ls -la /volume2/Root/Downloads/Transmission | grep autostart
drwxrwxrwx 1 transmission users        0 Jun 19  2015 autostart

torrent file exists in cache:

root@nas:/volume2/Root/Downloads/Transmission/autostart# ls -la /usr/local/mylar/var/cache/Outcast_21_2016.torrent 
-rw-rw-rw- 1 mylar users 13696 Oct  6 11:07 /usr/local/mylar/var/cache/Outcast_21_2016.torrent
nopoz commented 7 years ago

As a side note, if transmission relies on the watch folder directory then that should be shown when the transmission radial button is selected - I think it's a bit confusing to switch between radial buttons for each config - it makes it seem like it's an either use "this" or "use that" kind of config.

evilhero commented 7 years ago

You can't have both Transmission selected and a local watch directory within the current configuration, which you have.

With Mylar shutdown, set your torrent_downloader = 0 within the config.ini. Or with Mylar running, select the radial for local watchdir within the configuration, save and restart mylar).

Obviously there are some things that need to get addressed / fixed in the transmission section, so if we (@tresni and myself) know what needs to get fixed or changed, one of us can make the changes. I can modify the configs to allow for the changes, but testing against transmission is something I can't do simply because I don't use the client.

tresni commented 7 years ago

Sorry, used the wrong name. Transmission downloads to the Post Processing "Enable Folder to Monitor" folder, not the torrent watch folder. So when you set your preferences, you set the torrent download option to transmission, enter the tranmission host, username, password. The torrent won't go anywhere, but the downloaded comic should show up in your Post Processing "Enable Folder to Monitor" folder when it's done downloading.

tresni commented 7 years ago

@evilhero happy to make transmission work with torrentit endpoint, I just wasn't sure what that was used for as there didn't seem to be an references to it other then the function itself.

nopoz commented 7 years ago

The torrent doesn't appear to be sent to transmission. I've tried setting the post processing monitor folder and it doesn't change anything.

aav7fl commented 7 years ago

@tresni Would you please be able to throw in the option to where transmission downloads to? Or are you just going to stick with the watch folder mechanism?

evilhero commented 7 years ago

@aav7fl transmission download directory will be in next dev commit.

evilhero commented 7 years ago

forgot to tag the issue - transmission directory can now be specified in latest dev commit (9ca958f)

aav7fl commented 7 years ago

Hmmm.. I'm having the exact same issue as @doucheymcdoucherson. My logs are pretty similar. I am on the latest Dev branch and it appears to be unable to send the torrent file to Transmission.

Log:

16-Oct-2016 23:36:42 - INFO    :: Thread-13 : ComicID:#####
16-Oct-2016 23:36:42 - INFO    :: Thread-13 : Retrying : 553006
16-Oct-2016 23:36:42 - INFO    :: Thread-13 : --Referencing : <ComicSource> @ 2016-10-12 09:04:24
16-Oct-2016 23:36:42 - DEBUG   :: Thread-13 : sending .torrent to watchdir.
16-Oct-2016 23:36:42 - DEBUG   :: Thread-13 : ComicName:<ComicName>
16-Oct-2016 23:36:42 - DEBUG   :: Thread-13 : Torrent Provider:<ComicSource>
16-Oct-2016 23:36:42 - DEBUG   :: Thread-13 : Torrent ID:#####
16-Oct-2016 23:36:42 - INFO    :: Thread-13 : matched on <ComicName>
16-Oct-2016 23:36:42 - DEBUG   :: Thread-13 : filename for torrent set to : /var/db/mylar/cache/<ComicName>.torrent
16-Oct-2016 23:36:42 - DEBUG   :: Thread-13 : [<ComicSource>] Verify SSL set to : True
16-Oct-2016 23:36:42 - DEBUG   :: Thread-13 : [<ComicSource>-AUTHENTICATION] <ComicSource> (Auth Mode) Authentication already done. Attempting to use existing keys.
16-Oct-2016 23:36:43 - DEBUG   :: Thread-13 : [<ComicSource>] Saved torrent file to : /var/db/mylar/cache/<ComicName>.torrent
16-Oct-2016 23:36:43 - ERROR   :: Thread-13 : incomplete format
16-Oct-2016 23:36:43 - ERROR   :: Thread-13 : Unable to send torrent - check logs and settings.
16-Oct-2016 23:36:43 - DEBUG   :: FOLDERMONITOR : Starting new thread: FOLDERMONITOR
16-Oct-2016 23:36:43 - INFO    :: FOLDERMONITOR : delaying thread for 60 seconds to avoid locks.

Config:

[General]
config_version = 6
dbchoice = sqlite3
dbuser = ""
dbpass = ""
dbname = ""
dynamic_update = 4
comicvine_api = <Redacted>
cvapi_rate = 2
http_port = 8090
http_host = 0.0.0.0
http_username = <Redacted>
http_password = "<Redacted>"
http_root = /
enable_https = 0
https_cert = ""
https_key = ""
https_chain = ""
https_force_on = 0
host_return = ""
api_enabled = 0
api_key = ""
launch_browser = 1
auto_update = 0
log_dir = /var/db/mylar/logs
max_logsize = 1000000
git_path = ""
cache_dir = /var/db/mylar/cache
annuals_on = 0
cv_only = 1
cv_onetimer = 1
check_github = 1
check_github_on_startup = 1
check_github_interval = 360
git_user = evilhero
git_branch = development
destination_dir = /media/comics
multiple_dest_dirs = ""
create_folders = 1
delete_remove_dir = 0
chmod_dir = 0770
chmod_file = 0770
chowner = ""
chgroup = ""
usenet_retention = 1500
alt_pull = 0
search_interval = 360
nzb_startup_search = 0
add_comics = 1
comic_dir = /media/comics/
blacklisted_publishers = None
imp_move = 1
imp_rename = 1
imp_metadata = 0
enable_check_folder = 1
download_scan_interval = 1
folder_scan_log_verbose = 0
check_folder = /media/downloads/comics
interface = default
dupeconstraint = filesize
ddump = 0
duplicate_dump = ""
pull_refresh = ""
autowant_all = 0
autowant_upcoming = 1
preferred_quality = 0
comic_cover_local = 0
correct_metadata = 0
move_files = 0
rename_files = 1
folder_format = $Series ($Year)
file_format = $Series $Issue ($Year)
blackhole_dir = ""
replace_spaces = 0
replace_char = .
zero_level = 1
zero_level_n = 00x
lowercase_filenames = 0
ignore_havetotal = 0
snatched_havetotal = 0
syno_fix = 0
allow_packs = 0
search_delay = 1
grabbag_dir = /media/comics
highcount = 0
read2filename = 0
send2read = 0
tab_enable = 0
tab_host = ""
tab_user = ""
tab_pass = ""
tab_directory = ""
storyarcdir = 0
copy2arcdir = 0
use_minsize = 0
minsize = ""
use_maxsize = 0
maxsize = ""
add_to_csv = 1
cvinfo = 0
log_level = 0
enable_extra_scripts = 0
extra_scripts = ""
enable_pre_scripts = 0
pre_scripts = ""
post_processing = 1
post_processing_script = ""
file_opts = copy
weekfolder = 0
weekfolder_loc = ""
locmove = 0
newcom_dir = ""
fftonewcom_dir = 0
enable_meta = 0
cbr2cbz_only = 0
ct_tag_cr = 1
ct_tag_cbl = 1
ct_cbz_overwrite = 0
unrar_cmd = None
cmtag_start_year_as_volume = 0
update_ended = 0
indie_pub = 75
biggie_pub = 55
upcoming_snatched = 1
enable_rss = 1
rss_checkinterval = 20
rss_lastrun = 2016-10-16 23:25:44
failed_download_handling = 1
failed_auto = 1
provider_order = 0, 32p
nzb_downloader = 0
torrent_downloader = 3
[Torrents]
enable_torrents = 1
minseeds = 0
torrent_local = 1
local_watchdir = /media/downloads/torrentfiles
torrent_seedbox = 0
seedbox_host = ""
seedbox_port = ""
seedbox_user = ""
seedbox_pass = ""
seedbox_watchdir = ""
enable_torrent_search = 1
enable_tpse = 0
tpse_proxy = ""
tpse_verify = True
enable_32p = 1
mode_32p = 1
passkey_32p = <Redacted>
rssfeed_32p = ""
username_32p = <Redacted>
password_32p = <Redacted>
verify_32p = 1
snatchedtorrent_notify = 0
rtorrent_host = ""
rtorrent_username = ""
rtorrent_password = ""
rtorrent_startonload = 0
rtorrent_label = ""
rtorrent_directory = ""
[SABnzbd]
sab_host = http://http:
sab_username = ""
sab_password = ""
sab_apikey = ""
sab_category = ""
sab_priority = Default
sab_to_mylar = 0
sab_directory = ""
[NZBGet]
nzbget_host = ""
nzbget_port = ""
nzbget_username = ""
nzbget_password = ""
nzbget_category = ""
nzbget_priority = Default
nzbget_directory = ""
[NZBsu]
nzbsu = 0
nzbsu_uid = ""
nzbsu_apikey = ""
nzbsu_verify = 1
[DOGnzb]
dognzb = 0
dognzb_apikey = ""
dognzb_verify = True
[Experimental]
experimental = 0
altexperimental = 1
[Torznab]
enable_torznab = 0
torznab_name = ""
torznab_host = ""
torznab_apikey = ""
torznab_category = ""
torznab_verify = False
[Newznab]
newznab = 0
extra_newznabs = ,
[uTorrent]
utorrent_host = ""
utorrent_username = ""
utorrent_password = ""
utorrent_label = ""
[Transmission]
transmission_host = <Redacted>
transmission_username = <Redacted>
transmission_password = <Redacted>
transmission_directory = /media/downloads/comics/
[Prowl]
prowl_enabled = 0
prowl_keys = ""
prowl_onsnatch = 0
prowl_priority = 0
[NMA]
nma_enabled = 0
nma_apikey = ""
nma_priority = 0
nma_onsnatch = 0
[PUSHOVER]
pushover_enabled = 1
pushover_apikey = <Redacted>
pushover_userkey = <Redacted>
pushover_priority = 0
pushover_onsnatch = 1
[BOXCAR]
boxcar_enabled = 0
boxcar_onsnatch = 0
boxcar_token = ""
[PUSHBULLET]
pushbullet_enabled = 0
pushbullet_apikey = <Redacted>
pushbullet_deviceid = None
pushbullet_onsnatch = 1
evilhero commented 7 years ago

You have both local torrent watchdir and transmission set. You can't have both as it picks the local watchdir prior to the actual downloader. Set torrent_local = 0 in your config.ini (with Mylar not running), start it up again, and then try the process again. This should be fixed in the next dev commit (where you can only have one option)

Note that you might get different results if you use the retry option vs searching for a new issue (they use different code, and in the short log above you were doing a retry).

Telecart commented 7 years ago

What's the advantage of using the Transmission setup vs. watchfolder setup with Transmission? I couldn't get it working (same problem: Unable to send torrent - check logs and settings., but there's nothing in the logs) so I've been using watch folder. You can set download directories in Transmission based on the tracker info so that's not an issue to get the files into the processing folder. The only challenge is that Mylar sometimes doesn't recognize what's been downloaded to the processing dir (like if the year is off or the issue number isn't present for a oneshot or TPB, etc.). Does using the Transmission setting let Mylar connect the dots on this? If so would definitely be worth figuring out.

evilhero commented 7 years ago

I think the main advantage is that you can set labels which can assign the download to a specific directory that the transmission client would send it to. The only other option I can think of is speed in adding the torrent to the client. Directly adding a torrent via the api loads the torrent almost immediately, whereas loading from a watch folder is dependent on the interval of the watch folder checking for new torrents, as well as how many torrents you have loaded in the client (at least with rtorrent this is true).

I haven't tested the transmission stuff, but just installed the client yesterday so I'm going to try and run through a snatch/download and see if I can figure out what's happening.

tresni commented 7 years ago

Not sure, but this maybe another case of #1526 (sorry somehow didn't get updates on this thread..) and should be fixed with #1648

aav7fl commented 7 years ago

Thanks! I'll let you know if this fixes it.

aav7fl commented 7 years ago

@tresni Fixed! 🎉 Thank you so much!

tresni commented 7 years ago

@evilhero this can be closed as well (woot!)

evilhero commented 7 years ago

Weeeeee!