DobyTang / LazyLibrarian

This project isn't finished yet. Goal is to create a SickBeard, CouchPotato, Headphones-like application for ebooks. Headphones is used as a base, so there are still a lot of references to it.
730 stars 72 forks source link

Deluge connection not working? #1106

Closed Dulanic closed 6 years ago

Dulanic commented 6 years ago

When LL finds a book via torrent search, it fails to send to deluge. I am at a loss as to why this is happening. When I "test" deluge it works fine. All my other dockers have no problem working with deluge. I tested the redacted torrent link on line 621. It works fine.

I manually go to Deluge webui and loaded the torrent using the link from the log and it worked fine. So there seems to be some other disconnect.

To help with identifying and fixing issues, please include as much information as possible, including:

LazyLibrarian version number (at the bottom of config page)

d62bf03f6b2544f2448bc413e6e4db647f0e0caf

Operating system used (windows, mac, linux, NAS type)

Ubuntu 16.04

Interface in use (default, bookstrap)

default

Which api (Goodreads, GoogleBooks, both)

Goodreads

Source of your LazyLibrarian installation (git, zip file, 3rd party package)

https://github.com/linuxserver/docker-lazylibrarian

Relevant debug log with api keys and any passwords redacted

05-Nov-2017 09:24:52 - INFO    :: SEARCHBOOK : searchbook.py:search_book:247 : Requesting eBook download: 101% http://192.168.2.155:9117/api/v2.0/indexers/1337x/results/torznab: Harry Potter EPUB Collection Books J K Rowling ShareRadius
05-Nov-2017 09:24:53 - DEBUG   :: SEARCHBOOK : downloadmethods.py:TORDownloadMethod:298 : Sending J K  Rowling - Harry Potter Collection LL.(10) to Deluge
05-Nov-2017 09:24:53 - DEBUG   :: SEARCHBOOK : deluge.py:addTorrent:57 : Deluge: Got a URL: http://192.168.2.155:9117/dl/1337x/?jackett_apikey=<redacted>>&path=akJqelhUTVpQaU8yenN0UXFqS2dtSnAzWW5rbU1ud00xM0cvZHRTSDRmYzBZbmdiNkdrdVludHRNQkNoSDN6WWYyUE5MQ0pFcldCYm9mTDVjZ2FFaE4ya1l0aXNLZCtKNEp6N1JQWkNXSTJ4RUovVTBHeXpiME5EOEJ1aysyWVp2RmZvZVBtbk1nYitHVUo1UjZqdVR5VDJEdEEwWkRZVDQ0VUU0UDU3VTBiaFZYblhHMS83bTlUWUpESXFCa1ZuMzhVekVNRGxnRmZVMWpKb25mSGNkNUZYTXM1b2NRejRsZU1xM203RXNlNkNXamQ2bjlQRTNSYTc2TWlZWWdFS2VqV005ejZsTmVrdEFSNDVXZzJlTGJSditydEpkbWNiTEhYcHpnQ0s5YmZHR0JwTVBMem1pRnpnaWxTLzRwbHlUMHplUXVTOHdqTzh1MEEzQXZ6ZUVWOTFlb21WeGVyV1FtN0ZBN3pJVXA2ekFVTEQ2ZTZOeGxUL09xdEx0S2FsSlQ4ZGxvNjdCbHZzVng2b0Y3RXU0TTRvYW1LV2NrNE5jaTdNcnVZOTZVYz01&file=Harry+Potter+EPUB+Collection+Books+1-7+J+K+Rowling+(ShareRadius).torrent
05-Nov-2017 09:24:53 - DEBUG   :: SEARCHBOOK : deluge.py:_add_torrent_url:350 : Deluge: Adding URL
05-Nov-2017 09:24:53 - DEBUG   :: SEARCHBOOK : deluge.py:_add_torrent_url:361 : Deluge: Response was None
05-Nov-2017 09:24:53 - ERROR   :: SEARCHBOOK : deluge.py:_add_torrent_url:363 : Deluge: Adding torrent URL failed: Is the WebUI running?
05-Nov-2017 09:24:53 - INFO    :: SEARCHBOOK : deluge.py:addTorrent:141 : Deluge returned status None
05-Nov-2017 09:24:53 - ERROR   :: SEARCHBOOK : downloadmethods.py:TORDownloadMethod:352 : Failed to download torrent from DELUGEWEBUI, http://192.168.2.155:9117/dl/1337x/?jackett_apikey=<redacted>>&path=akJqelhUTVpQaU8yenN0UXFqS2dtSnAzWW5rbU1ud00xM0cvZHRTSDRmYzBZbmdiNkdrdVludHRNQkNoSDN6WWYyUE5MQ0pFcldCYm9mTDVjZ2FFaE4ya1l0aXNLZCtKNEp6N1JQWkNXSTJ4RUovVTBHeXpiME5EOEJ1aysyWVp2RmZvZVBtbk1nYitHVUo1UjZqdVR5VDJEdEEwWkRZVDQ0VUU0UDU3VTBiaFZYblhHMS83bTlUWUpESXFCa1ZuMzhVekVNRGxnRmZVMWpKb25mSGNkNUZYTXM1b2NRejRsZU1xM203RXNlNkNXamQ2bjlQRTNSYTc2TWlZWWdFS2VqV005ejZsTmVrdEFSNDVXZzJlTGJSditydEpkbWNiTEhYcHpnQ0s5YmZHR0JwTVBMem1pRnpnaWxTLzRwbHlUMHplUXVTOHdqTzh1MEEzQXZ6ZUVWOTFlb21WeGVyV1FtN0ZBN3pJVXA2ekFVTEQ2ZTZOeGxUL09xdEx0S2FsSlQ4ZGxvNjdCbHZzVng2b0Y3RXU0TTRvYW1LV2NrNE5jaTdNcnVZOTZVYz01&file=Harry+Potter+EPUB+Collection+Books+1-7+J+K+Rowling+(ShareRadius).torrent
05-Nov-2017 09:24:53 - INFO    :: SEARCHBOOK : searchbook.py:search_book:251 : Search for Wanted items complete, found 0 books
05-Nov-2017 09:25:19 - DEBUG   :: SAVELOG : common.py:saveLog:621 : Processing logfile [/config/log/lazylibrarian.log]

Deluge connection check:

2017-11-05 09:38:57 | DEBUG | Deluge: Connection successful
-- | -- | --
2017-11-05 09:38:57 | DEBUG | Deluge: Checking connection

debug.zip

philborman commented 6 years ago

Seems to be working ok here, I'm on ubuntu 17.10 but not using a docker, see log, so it's down to what's different between your system and mine...

Are you sure deluge host/port/password are ok? You are on default port, which should fine. Maybe default password too but we redacted it ;-)

Have you installed deluge/deluged/delugewebui, they are separate packages on ubuntu and you need all 3.

My deluge is on the same machine as lazylibrarian, so uses 127.0.0.1 if you are talking to deluge from a different machine you need to enable "Allow Remote Connections" in deluge daemon

I see you are using jackett, does it work if you go direct rather than through jackett?

05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:_add_torrent_magnet:330 : Deluge: Adding magnet 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:_add_torrent_magnet:341 : Deluge: Response was 97bc799bfaa126cbc328f005e843088dfe920008 05-Nov-2017 18:00:46 - INFO :: WEBSERVER : deluge.py:addTorrent:135 : Deluge: Torrent sent to Deluge successfully (97bc799bfaa126cbc328f005e843088dfe920008) 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:setTorrentLabel:396 : Deluge: Setting label 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:setTorrentLabel:435 : Deluge: books label added to torrent 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:addTorrent:138 : Deluge label returned: True 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:getTorrentFolder:151 : Deluge: Get torrent folder name 05-Nov-2017 18:01:07 - DEBUG :: WEBSERVER : downloadmethods.py:TORDownloadMethod:348 : DELUGEWEBUI setting torrent name to [Douglas Adams - So Long, And Thanks For All The Fish] 05-Nov-2017 18:01:07 - INFO :: WEBSERVER : webServe.py:snatchBook:1202 : Downloading eBook So Long, and Thanks for All the Fish from TPB 05-Nov-2017 18:01:07 - DEBUG :: WEBSERVER : email_notify.py:_notify:57 : Email notification: Started Download

Dulanic commented 6 years ago

Positive all settings Ok. It even confirms the connection when I test. It has all 3 in a docker package. Radarr sonarr etc all have no issues same settings.

On Sun, Nov 5, 2017, 11:11 AM philborman notifications@github.com wrote:

Seems to be working ok here, I'm on ubuntu 17.10 but not using a docker, see log, so it's down to what's different between your system and mine... Are you sure deluge host/port/password are ok? You are on default port, which should fine. Have you installed deluge/deluged/delugewebui, they are separate packages on ubuntu and you need all 3.

05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:_add_torrent_magnet:330 : Deluge: Adding magnet 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:_add_torrent_magnet:341 : Deluge: Response was 97bc799bfaa126cbc328f005e843088dfe920008 05-Nov-2017 18:00:46 - INFO :: WEBSERVER : deluge.py:addTorrent:135 : Deluge: Torrent sent to Deluge successfully (97bc799bfaa126cbc328f005e843088dfe920008) 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:setTorrentLabel:396 : Deluge: Setting label 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:setTorrentLabel:435 : Deluge: books label added to torrent 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:addTorrent:138 : Deluge label returned: True 05-Nov-2017 18:00:46 - DEBUG :: WEBSERVER : deluge.py:getTorrentFolder:151 : Deluge: Get torrent folder name 05-Nov-2017 18:01:07 - DEBUG :: WEBSERVER : downloadmethods.py:TORDownloadMethod:348 : DELUGEWEBUI setting torrent name to [Douglas Adams - So Long, And Thanks For All The Fish] 05-Nov-2017 18:01:07 - INFO :: WEBSERVER : webServe.py:snatchBook:1202 : Downloading eBook So Long, and Thanks for All the Fish from TPB 05-Nov-2017 18:01:07 - DEBUG :: WEBSERVER : email_notify.py:_notify:57 : Email notification: Started Download

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DobyTang/LazyLibrarian/issues/1106#issuecomment-341988685, or mute the thread https://github.com/notifications/unsubscribe-auth/ACz8bnAtddqBD74nTBaC-nt2-Vav_T-vks5szewrgaJpZM4QSaxg .

philborman commented 6 years ago

It's certainly odd that the communication test works but the real torrents don't. A few other possible differences between your setup and mine... I just tried access through jackett, which also worked so that's not relevant My tests tonight were with magnets, as that's what my providers send, your failed example was a torrent. Have you tried magnets and do they also fail on your setup? Do all torrents/magnets fail, or just some? I haven't managed to find a single torrent to test, I always get sent magnet links. The code for both sending to deluge is very similar though. Versions: I am using deluge 1.3.15 with libtorrent 1.1.1.0 The current version of lazylibrarian does not report an error code from deluge, it just relies on deluge returning "None" as the id of the download. We can easily print the error code though, which might provide more info? Just a simple bit of editing in deluge.py if you are up for it

Dulanic commented 6 years ago

Whatever I can do to help. Not sure if it's magnet too haven't run into one yet.

philborman commented 6 years ago

Thanks for helping, reproducing the issue is the problem at the moment. If you add these lines in lazylibrarian/deluge.py line 361 says

        logger.debug(msg)

just below that put

        logger.debug(str(delugeweb_auth))
        logger.debug(delugeweb_url)
        logger.debug(str(post_data))
        logger.debug(str(response.status_code))
        logger.debug(str(response.content))

Python is very fussy about spacing, all the "logger" lines need to be the same number of spaces at the front (8), and it must be spaces, not tabs. Next time you send something to deluge we should get details on exactly the command we sent (so we can check it looks valid) and an error code and the full response which will hopefully help track the problem down.

Dulanic commented 6 years ago

OK I added, it seems like it might only be some because now a couple worked fine. I'll let it run for a while and keep an eye on it.

Dulanic commented 6 years ago

OK I got the same one again. I'm still not sure the problem deluge is 100% running, I can still add things to it from sonarr and radarr but it still fails /w this. One thing I did note is a non Jackett download worked when it went through lime.

debug.zip

philborman commented 6 years ago

Interesting, something different about jackett ? The results from the extra debug lines are... 200
{"id": 2, "result": null, "error": null}

so 200 = "ok", and no result but no error either. I will need to think about this. What version of jackett are you using, I tried with 0.8.246.0 also your jackett api looks odd, note after is another > before the &path= http://192.168.2.155:9117/dl/1337x/?jackett_apikey=<redacted>>&path=bGtQbUl Does your jackett_apikey end in > or have we inserted an extra > somehow

Dulanic commented 6 years ago

Jackett Version 0.8.355.0

Api key is all alphanumerical. I use a jackett docker, shouldnt matter though. I checked all stages of the entry and there is no > anywhere.

https://github.com/linuxserver/docker-jackett

Here is a less recacted version...

http://192.168.2.155:9117/dl/1337x/?jackett_apikey=ns28ttk93redacted2kyj3**************o683zicc&path=bGtQbUlWSzM4U3BLRFVWVFRTWVg1N2VRQkV5VldqbTUydWEweU4vNkJsbWRCaVVRQlcyV1JtVDJ4RjBOWVAzT21RTXZmY0NoaW9uRHJ5U05xYkF6d3NzWWR5c3ZLenVPTlRwNlg0d2E4djRIOS9mWklNMVZVSUhaS0FzU1p3UnB1WVhOZFpYbTJVNitOeEJFemwwNWxnZHZ5eVhQUjIrS0JBRG5QUEFYWFI4SzF5akdHNG5mK3J3YzFROUtmMVFNOFY2Rjk2UXBsYzJPeFJIOUl6b2hNdk1XNDVWZU82TkVEam5Udjd3aHRGd3lCN2RkWXZTR1Q5bnpERGZvc3RjYzNPYjBEZlZybkR2cXQ4ZHFyakpQYzNNLysyYUVVMmQ5OHdHVjJxOXhjaEN4WklYWXpZNC9TRkpBemRmVy9UZndpTjZuTWhVUEFrVlJudzlhZm9FZEVzcmFvTW1tandKWXVxRHdQUDlrNk9lZ05uMVFHcjROWldLTi82T0tDVHlHcGtZV1pUTHNSZHJ2VUpneUMzYXhSN1d3NGVSTEtqOGxUNDRUdXdRd3Z2UT01&file=Harry+Potter+EPUB+Collection+Books+1-7+J+K+Rowling+(ShareRadius).torrent

If I paste the httpinto my browser it popups properly to download the torrent.

I also searched my whole log for > and all I see was ..

Timestamp | Level | Thread | File | Method | Line No | Message
-- | -- | -- | -- | -- | -- | --
2017-11-06 08:30:06 | DEBUG | SEARCHBOOK | deluge.py | _add_torrent_url | 362 | ]>
Dulanic commented 6 years ago

Adding my Jackett logs if it helps....

2017-11-06 10:50:57.4892 Info Found 0 releases from Speed.cd for: J.K. Rowling Harry Potter Collection (Harry Potter 1-6) 
2017-11-06 10:50:57.4902 Info ReflectedHttpActionDescriptor ExecuteAsync Action returned 'System.Web.Http.Results.ResponseMessageResult' 
2017-11-06 10:50:57.4906 Info ApiControllerActionInvoker InvokeActionAsync  
2017-11-06 10:50:57.4906 Info RequiresValidQueryAttribute OnActionExecutedAsync Action filter for 'Torznab(TorznabRequest request)' 
2017-11-06 10:50:57.4906 Info RequiresValidQueryAttribute OnActionExecutedAsync  
2017-11-06 10:50:57.4917 Info JackettAPINoCacheAttribute OnActionExecutedAsync Action filter for 'Torznab(TorznabRequest request)' 
2017-11-06 10:50:57.4917 Info JackettAPINoCacheAttribute OnActionExecutedAsync  
2017-11-06 10:50:57.4917 Info ResultsController ExecuteAsync  
2017-11-06 10:50:57.4928 Info   Content-type='application/rss+xml; charset=utf-8', content-length=639 
2017-11-06 10:50:57.4928 Info ResultsController Dispose  
2017-11-06 10:50:57.4936 Info ResultsController Dispose  
2017-11-06 10:50:57.5186 Info   http://192.168.2.155:9117/dl/1337x/?jackett_apikey=ns**Redacted**kyj3o683zicc&path=MFFQUHB6eHQ4RGtRQUZ4dnNKbDJWOEF5MDBjL1EvVS9YZjFxZjhFM2xsSjduT1VhZGc2QzcyQVlNdDNwYnZCNzB5eThoU2hINm9Bc1J4U0RuNytSQ3h1eFRtMzNvT3ZpdnZsWU9takVTQ05NWUV3UG1mcWtabGYwSWRMb3NpbDN2eXkwcGdFMSsyYzdlYXllcWRvSlRqMTV4cHN6WS9ab3h1R0w5WHk5aVQ2Z0RHOWdHRFVLdlA5ZjlocjFKc3RlQUdaM2Q1SkhOdkZTODZBeEVicHFtUE00K0grWUoybmp1ZFBOQXJPUFBDZTN3ZktFcG9RVFVWZGQwcWhrcVVoanF6ZUtVREQyNlBCY0xHd2l4SEplSUhncE9QN1ZjYlcrdk1weXQwVjdSNVlLL0d5bkw5QVp3M2lkMEk0bytkOVBvRllwckJqVEZWaUp3VVlOMUxuWlJhckJKVHQzbE5NamtWK2hTYVRhMlRUSzRXRk5zTmZmYndudkE4Sm1paVphNE12S1dxcHhmRzE0cmJ3eEdFN3VabEU0UHlxUnJTMmo4elQ2T1NTZkJrST01&file=Harry+Potter+EPUB+Collection+Books+1-7+J+K+Rowling+(ShareRadius).torrent 
2017-11-06 10:50:57.5186 Info DefaultHttpControllerSelector SelectController Route='indexerID:1337x,controller:Download,action:Download' 
2017-11-06 10:50:57.5186 Info DefaultHttpControllerSelector SelectController Download 
2017-11-06 10:50:57.5186 Info HttpControllerDescriptor CreateController  
2017-11-06 10:50:57.5186 Info DefaultHttpControllerActivator Create  
2017-11-06 10:50:57.5195 Info DefaultHttpControllerActivator Create Jackett.Controllers.DownloadController 
2017-11-06 10:50:57.5195 Info HttpControllerDescriptor CreateController Jackett.Controllers.DownloadController 
2017-11-06 10:50:57.5195 Info DownloadController ExecuteAsync  
2017-11-06 10:50:57.5195 Info ApiControllerActionSelector SelectAction  
2017-11-06 10:50:57.5195 Info ApiControllerActionSelector SelectAction Selected action 'Download(String indexerID, String path, String jackett_apikey, String file)' 
2017-11-06 10:50:57.5195 Info HttpActionBinding ExecuteBindingAsync  
2017-11-06 10:50:57.5206 Info ModelBinderParameterBinding ExecuteBindingAsync Binding parameter 'indexerID' 
2017-11-06 10:50:57.5206 Info ModelBinderParameterBinding ExecuteBindingAsync Parameter 'indexerID' bound to the value '1337x' 
2017-11-06 10:50:57.5206 Info ModelBinderParameterBinding ExecuteBindingAsync Binding parameter 'path' 
2017-11-06 10:50:57.5206 Info ModelBinderParameterBinding ExecuteBindingAsync Parameter 'path' bound to the value 'MFFQUHB6eHQ4RGtRQUZ4dnNKbDJWOEF5MDBjL1EvVS9YZjFxZjhFM2xsSjduT1VhZGc2QzcyQVlNdDNwYnZCNzB5eThoU2hINm9Bc1J4U0RuNytSQ3h1eFRtMzNvT3ZpdnZsWU9takVTQ05NWUV3UG1mcWtabGYwSWRMb3NpbDN2eXkwcGdFMSsyYzdlYXllcWRvSlRqMTV4cHN6WS9ab3h1R0w5WHk5aVQ2Z0RHOWdHRFVLdlA5ZjlocjFKc3RlQUdaM2Q1SkhOdkZTODZBeEVicHFtUE00K0grWUoybmp1ZFBOQXJPUFBDZTN3ZktFcG9RVFVWZGQwcWhrcVVoanF6ZUtVREQyNlBCY0xHd2l4SEplSUhncE9QN1ZjYlcrdk1weXQwVjdSNVlLL0d5bkw5QVp3M2lkMEk0bytkOVBvRllwckJqVEZWaUp3VVlOMUxuWlJhckJKVHQzbE5NamtWK2hTYVRhMlRUSzRXRk5zTmZmYndudkE4Sm1paVphNE12S1dxcHhmRzE0cmJ3eEdFN3VabEU0UHlxUnJTMmo4elQ2T1NTZkJrST01' 
2017-11-06 10:50:57.5206 Info ModelBinderParameterBinding ExecuteBindingAsync Binding parameter 'jackett_apikey' 
2017-11-06 10:50:57.5206 Info ModelBinderParameterBinding ExecuteBindingAsync Parameter 'jackett_apikey' bound to the value 'ns**Redacted**kyj3o683zicc' 
2017-11-06 10:50:57.5216 Info ModelBinderParameterBinding ExecuteBindingAsync Binding parameter 'file' 
2017-11-06 10:50:57.5216 Info ModelBinderParameterBinding ExecuteBindingAsync Parameter 'file' bound to the value 'Harry Potter EPUB Collection Books 1-7 J K Rowling (ShareRadius).torrent' 
2017-11-06 10:50:57.5216 Info HttpActionBinding ExecuteBindingAsync Model state is valid. Values: indexerID=1337x, path=MFFQUHB6eHQ4RGtRQUZ4dnNKbDJWOEF5MDBjL1EvVS9YZjFxZjhFM2xsSjduT1VhZGc2QzcyQVlNdDNwYnZCNzB5eThoU2hINm9Bc1J4U0RuNytSQ3h1eFRtMzNvT3ZpdnZsWU9takVTQ05NWUV3UG1mcWtabGYwSWRMb3NpbDN2eXkwcGdFMSsyYzdlYXllcWRvSlRqMTV4cHN6WS9ab3h1R0w5WHk5aVQ2Z0RHOWdHRFVLdlA5ZjlocjFKc3RlQUdaM2Q1SkhOdkZTODZBeEVicHFtUE00K0grWUoybmp1ZFBOQXJPUFBDZTN3ZktFcG9RVFVWZGQwcWhrcVVoanF6ZUtVREQyNlBCY0xHd2l4SEplSUhncE9QN1ZjYlcrdk1weXQwVjdSNVlLL0d5bkw5QVp3M2lkMEk0bytkOVBvRllwckJqVEZWaUp3VVlOMUxuWlJhckJKVHQzbE5NamtWK2hTYVRhMlRUSzRXRk5zTmZmYndudkE4Sm1paVphNE12S1dxcHhmRzE0cmJ3eEdFN3VabEU0UHlxUnJTMmo4elQ2T1NTZkJrST01, jackett_apikey=ns**Redacted**kyj3o683zicc, file=Harry Potter EPUB Collection Books 1-7 J K Rowling (ShareRadius).torrent 
2017-11-06 10:50:57.5216 Info JackettAPINoCacheAttribute OnActionExecutingAsync Action filter for 'Download(String indexerID, String path, String jackett_apikey, String file)' 
2017-11-06 10:50:57.5216 Info JackettAPINoCacheAttribute OnActionExecutingAsync  
2017-11-06 10:50:57.5225 Info ApiControllerActionInvoker InvokeActionAsync Action='Download(indexerID=1337x, path=MFFQUHB6eHQ4RGtRQUZ4dnNKbDJWOEF5MDBjL1EvVS9YZjFxZjhFM2xsSjduT1VhZGc2QzcyQVlNdDNwYnZCNzB5eThoU2hINm9Bc1J4U0RuNytSQ3h1eFRtMzNvT3ZpdnZsWU9takVTQ05NWUV3UG1mcWtabGYwSWRMb3NpbDN2eXkwcGdFMSsyYzdlYXllcWRvSlRqMTV4cHN6WS9ab3h1R0w5WHk5aVQ2Z0RHOWdHRFVLdlA5ZjlocjFKc3RlQUdaM2Q1SkhOdkZTODZBeEVicHFtUE00K0grWUoybmp1ZFBOQXJPUFBDZTN3ZktFcG9RVFVWZGQwcWhrcVVoanF6ZUtVREQyNlBCY0xHd2l4SEplSUhncE9QN1ZjYlcrdk1weXQwVjdSNVlLL0d5bkw5QVp3M2lkMEk0bytkOVBvRllwckJqVEZWaUp3VVlOMUxuWlJhckJKVHQzbE5NamtWK2hTYVRhMlRUSzRXRk5zTmZmYndudkE4Sm1paVphNE12S1dxcHhmRzE0cmJ3eEdFN3VabEU0UHlxUnJTMmo4elQ2T1NTZkJrST01, jackett_apikey=ns**Redacted**kyj3o683zicc, file=Harry Potter EPUB Collection Books 1-7 J K Rowling (ShareRadius).torrent)' 
2017-11-06 10:50:57.5225 Info ReflectedHttpActionDescriptor ExecuteAsync Invoking action 'Download(indexerID=1337x, path=MFFQUHB6eHQ4RGtRQUZ4dnNKbDJWOEF5MDBjL1EvVS9YZjFxZjhFM2xsSjduT1VhZGc2QzcyQVlNdDNwYnZCNzB5eThoU2hINm9Bc1J4U0RuNytSQ3h1eFRtMzNvT3ZpdnZsWU9takVTQ05NWUV3UG1mcWtabGYwSWRMb3NpbDN2eXkwcGdFMSsyYzdlYXllcWRvSlRqMTV4cHN6WS9ab3h1R0w5WHk5aVQ2Z0RHOWdHRFVLdlA5ZjlocjFKc3RlQUdaM2Q1SkhOdkZTODZBeEVicHFtUE00K0grWUoybmp1ZFBOQXJPUFBDZTN3ZktFcG9RVFVWZGQwcWhrcVVoanF6ZUtVREQyNlBCY0xHd2l4SEplSUhncE9QN1ZjYlcrdk1weXQwVjdSNVlLL0d5bkw5QVp3M2lkMEk0bytkOVBvRllwckJqVEZWaUp3VVlOMUxuWlJhckJKVHQzbE5NamtWK2hTYVRhMlRUSzRXRk5zTmZmYndudkE4Sm1paVphNE12S1dxcHhmRzE0cmJ3eEdFN3VabEU0UHlxUnJTMmo4elQ2T1NTZkJrST01, jackett_apikey=ns**Redacted**kyj3o683zicc, file=Harry Potter EPUB Collection Books 1-7 J K Rowling (ShareRadius).torrent)' 
2017-11-06 10:50:57.5426 Debug IWebClient.GetString(Url:https://1337x.to/torrent/1618155/Harry-Potter-EPUB-Collection-Books-1-7-J-K-Rowling-ShareRadius/) 
2017-11-06 10:50:57.8453 Debug IWebClient: Returning OK => <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Download Harry Potter EPUB Collection Books 1-7 J K Rowling (ShareRadius) Torrent | 1337x</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/jquery-ui.css">
<link rel="stylesheet" href="/css/icons.css">
<link rel="stylesheet" href="/css/modal.css">
<link rel="stylesheet" href="/css/scrollbar.css">
<link rel="stylesheet" href="/css/style.css?ver=2.5">
<link rel="shortcut icon" href="/favicon.ico">
<!--[if lt IE 9]><script src = "/js/html5shiv.js"></script><![endif]-->
<style id="antiClickjack">body{display:none !important;}</style>
<script type="text/javascript" id="antiClickjackJS">
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}
</script>
</head>
<body>
<div class="mobile-menu"></div>
<div class="top-bar">
<div class="container">
<ul class="top-bar-nav">
<li><a href="/register">Register</a></li>
<li class="active"><a href="/login">Login</a></li>
</ul>
</div>
</div>
<header>
<div class="container">
<div class="clearfix">
<div class="logo"><a href="/home/"><img alt="logo" src="/images/logo.svg"></a></div>
<a href="#" class="navbar-menu"><span></span><span></span><span></span></a>
<div class="search-box">
<form id="search-form" method="get" action="/srch">
<input type="search" placeholder="Search for torrents.." id="autocomplete" name="search" class="ui-autocomplete-input form-control" autocomplete="off">
<button type="submit" class="btn btn-search"><i class="flaticon-search"></i><span>Search</span></button>
</form>
</div>
</div>
<nav>
<ul class="main-navigation">
<li class="active"><a href="/home/" title="Go to Home">Home</a></li>
<li><a href="/upload" title="Upload Torrent File">Upload</a></li>
<li><a href="/rules" title="Rules">Rules</a></li>
<li><a href="/contact" title="Contact 1337x">Contact</a></li>
<li><a href="/about" title="About us">About us</a></li>
</ul>
</nav>
</div>
</header>
<main class="container">
<div class="row">
<aside class="col-3 pull-right">
<div class="list-box">
<h2>Browse torrents</h2>
<ul>
<li><a href="/trending" title="Trending Torrents"><i class="flaticon-trending"></i> Trending Torrents</a></li>
<li><a href="/movie-library/1/" title="Movie Liabrary"><i class="flaticon-movie-library"></i> Movie library</a></li>
<li><a href="/series-library/a/1/" title="TV Liabrary"><i class="flaticon-tv-library"></i> TV library</a></li>
<li><a href="/new-episodes/day/1/" title="New TV Episodes"><i class="flaticon-tv"></i> New TV Episodes</a></li>
<li><a href="/halloween-movies/1/" title="Halloween Movies"><i class="flaticon-halloween-evil-pumpkin"></i> Halloween Movies</a></li>
<li><a href="/top-100" title="Top 100 Torrents"><i class="flaticon-top"></i> Top 100 Torrents</a></li>
<li><a href="/cat/Anime/1/" title="Anime"><i class="flaticon-ninja-portrait"></i> Anime</a></li>
<li><a href="/cat/Apps/1/" title="Applications"><i class="flaticon-apps"></i> Applications</a></li>
<li><a href="/cat/Documentaries/1/" title="Documentaries"><i class="flaticon-documentary"></i> Documentaries</a></li>
<li><a href="/cat/Games/1/" title="Games"><i class="flaticon-games"></i> Games</a></li>
<li><a href="/cat/Movies/1/" title="Movies"><i class="flaticon-movies"></i> Movies</a></li>
<li><a href="/cat/Music/1/" title="Movies"><i class="flaticon-music"></i> Music</a></li>
 <li><a href="/cat/Other/1/" title="Others"><i class="flaticon-other"></i> Other</a></li>
<li><a href="/cat/TV/1/" title="Television"><i class="flaticon-tv"></i> Television</a></li>
<li><a href="/cat/XXX/1/" title="XXX"><i class="flaticon-xxx"></i> XXX</a></li>
</ul>
</div>
<div class="list-box hidden-sm">
<h2>1337x Links</h2>
<ul class="list">
<li><a target="_blank" href="https://chat.1337x.to"> 1337x Chat</a></li>
<li><a target="_blank" href="https://bitsnoop.com"> BitSnoop</a></li>
<li><a target="_blank" href="https://www.limetorrents.cc"> Limetorrents</a></li>
<li><a target="_blank" href="https://www.torrentfunk.com"> TorrentFunk</a></li>
<li><a target="_blank" href="http://www.torrentbit.net"> TorrentBit</a></li>
<li><a target="_blank" href="https://www.torlock.com"> Torlock</a></li>
<li><a target="_blank" href="https://torrentproject.se"> TorrentProject</a></li>
</ul>
</div>
</aside>
<script>
function count(t){return $.ajax({async:!1,type:"POST",url:"/dltrack/1618155/",data:{dst:t.href,src:document.location.href,torid:"1618155"}}),!1}
</script>
<style>
.torrent-category-detail ul.dropdown-menu .btn.edeedfdf {
  padding: 0 4px 0 50px;
  box-shadow: none;
}
ul.dropdown-menu .btn.edeedfdf .icon i {
  line-height: 1;
}
.btn.edeedfdf{
  position: relative;
  padding: 4px 4px 4px 50px;
  font-size: 15px;
  width: 100%;
  font-family: 'Oswald Bold', sans-serif;
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgba(0,0,0,0.5);
  border-radius: 3px;
}
.movie-torrent .torrent-download .edeedfdf{
  min-width: 200px;
}
.movie-torrent .torrent-download .left .edeedfdf {
  width: inherit;
}
.movie-torrent .torrent-download .right .btn.edeedfdf{
width: auto;
}
philborman commented 6 years ago

A deluge log may help, might show us what it received from lazylibrarian and why it reported 200 (ok) but no result and no error. See info here... http://dev.deluge-torrent.org/wiki/Troubleshooting#EnableDelugeLogging

Dulanic commented 6 years ago

Here is the api call it receives. There is no follow up. The URL link is valid as I can click it no problem and download the torrent.

[DEBUG ] 08:17:06 json_api:270 json-request: {"params": ["http://192.168.2.155:9117/dl/1337x/?jackett_apikey=*redacted*&path=Wm9lMkxlTURmbzlBa2NDWXBWZUVLZHdxYUtyR2tCZk0xTXllWFpERk1hekx4WXRmZXdBT0s3c1FLenlocVNPZisrSkwvdkhEZXhYM2JRa3lJUDRDWEJvR1JLd09xMDBRRHBZWkE3clpmamM5UC9tTmxRaXA3ek9vY3ZjYmhKYjJaZExUcWdlQ2lsSkNlaWJGdDl2ZVRDemVKYU5SUkRYVzM2UzY0QTU0TVMvK0JYRG1sR09GSDlvaGZpZFFlbUl3Q0g5aGZtV2NBRzlEL1hhR2tuU2xiektPKzZKTlAyREJjVW8yMXllMnZSUnBZc3cyK0tkbDAvR2J5OE9OOHZETFZTdFFIbUxIbjJEU2NZTVdrTUFSWWFNVjBQVW8wNTJNSm91RzJhRTR2VmZEVm9KTVZMUnBVOTBCK09CbWovTlluRTNFZGpacFJwOXpjV0Yvb2h0UkxwdXBWK2kxNi9hQXN4OElEMTFabnF1QjRFM0pya1VzbGhIZ1BHUW5QQ0wzbkxyVnljaU9DemdZQnQzUXM0Ymg4RmVMUnhHYytmaUM4RHVhYWJCWUNMUT01&file=Harry+Potter+EPUB+Collection+Books+1-7+J+K+Rowling+(ShareRadius).torrent", {}], "method": "core.add_torrent_url", "id": 2}

There is no record in the deluge log, just the web log.

philborman commented 6 years ago

I don't really understand what's going on here. Seems we send the right data to deluge, and we get a reply back that says 'ok' but nothing happens, no download.

There are two methods available in lazylibrarian to talk to deluge, you are using the webui (password only). Is it any different if you talk direct to the daemon, might be worth a try? Need a username and password for the daemon, see... http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient

Dulanic commented 6 years ago

I'm glad I'm not alone in saying what the hell...

It's odd because there is no problem /w sonarr and radarr. Let me let things run for a little bit and I'll find a working non magnet one /w one of those and see if I can find any differences. My desktop client talks to the daemon and I can load that same URL no problem.

philborman commented 6 years ago

There are two separate libraries used in lazylibrarian for deluge, if you connect to the daemon using your desktop client, try talking to deluge via the daemon in lazylibrarian too. Different library might make a difference, might not...

Dulanic commented 6 years ago

Daemon works, so it has to be something /w the webui interface library. I wasn't even aware I could use the daemon connection. Well at least that's figure out. Wish I could help determine why it works one way but not the other.

philborman commented 6 years ago

Looks a bit more specific than that, something to do with the webui interface when using jackett to serve torrents. I think if you're working ok with the daemon I will put this on the back burner until we get more info, or maybe just document it and recommend using the daemon ;-)

Dulanic commented 6 years ago

Sounds good to me, thanks for your assistance and getting it working for me /w the daemon. If I see a webui connection from sonarr/radarr and it works, I'll come back and notate this /w that so you can see if there is something they do differently.