pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.8k stars 276 forks source link

[Help] Error while sending torrent: <Fault -506: "Method 'load_raw' not defined" #3223

Closed therealcorwin closed 6 years ago

therealcorwin commented 7 years ago

Hi team,

I create a issue because i'm stuck with my problem and i can't find any solution. After a raid crash on my Synology, i reinstall Medusa and i was unable to send torrent to my seedbox :(. I have this message :

rTorrent: Unable to send Torrent
Error while sending torrent: <Fault -506: "Method 'load_raw' not defined">

Before the crash everything worked correctly. Currently, i have no problem with Radarr & Sonarr. And i don't find error on my seedbox.

I need You ! 👍

Branch/Commit: master /  b16e0e5eb4ded727eebd2ab2cd9683ab597662f5

OS: Linux-3.10.105-x86_64-with-glibc2.2.5 (Synology)

Seedbox :

Debian 9 LIBTORRENT 0.13.6 RTORRENT 0.9.6

What you did: Manual and automatic research for series

What happened: unable to send torrent to my seedbox

What you expected: torrent send to my seedbox

Logs:

2017-11-03 12:48:44 WARNING  SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] rTorrent: Unable to send Torrent
2017-11-03 12:48:44 WARNING  SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] Error while sending torrent: <Fault -506: "Method 'load_raw' not defined">
2017-11-03 12:48:41 DEBUG    SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] Calling rTorrent Client
2017-11-03 12:48:41 DEBUG    SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] User-Agent: Medusa/0.0.1 (Linux; 3.10.105; e2073a3a-bfec-11e7-b02a-0242fa8202c5)
2017-11-03 12:48:41 DEBUG    SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] GET URL: https://yggtorrent.com/engine/download_torrent?id=103013 [Status: 200]
2017-11-03 12:48:41 DEBUG    SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] User-Agent: Medusa/0.0.1 (Linux; 3.10.105; e2073a3a-bfec-11e7-b02a-0242fa8202c5)
2017-11-03 12:48:41 DEBUG    SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] GET URL: https://yggtorrent.com/ [Status: 200]
2017-11-03 12:48:40 DEBUG    SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] With post data: id=**********&submit=&pass=**********
2017-11-03 12:48:40 DEBUG    SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] User-Agent: Medusa/0.0.1 (Linux; 3.10.105; e2073a3a-bfec-11e7-b02a-0242fa8202c5)
2017-11-03 12:48:40 DEBUG    SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] POST URL: https://yggtorrent.com/user/login [Status: 200]
2017-11-03 12:48:40 INFO     SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] Downloading Mr.Robot.S03E01.SUBFRENCH.720p.WEB-DL.x264-FDS.mkv with 154 seeders and 0 leechers and size 866.21 MB from Yggtorrent
2017-11-03 12:48:40 INFO     SNATCHQUEUE-MANUALSNATCH-289590 :: [b16e0e5] Beginning to manual snatch release: Mr.Robot.S03E01.SUBFRENCH.720p.WEB-DL.x264-FDS.mkv
therealcorwin commented 6 years ago

No change :( Calling rTorrent Client Error while sending torrent: AttributeError("Torrent instance has no attribute 'state'",) rTorrent: Unable to send Torrent

One question , in manual search i see some choice of torrent with pink color. What does't it mean ?

Branch: fix-rtorrent-0.9.6 Commit: 62125d6596f7dc8f38d121cd5923f488063f6e60 Version: v0.1.17

renini commented 6 years ago

Same thing for me: [62125d6] rTorrent: Unable to send Torrent [62125d6] Error while sending torrent: AttributeError("Torrent instance has no attribute 'state'",)

Do you need more debugging output from the actually http request and response?

medariox commented 6 years ago

Nope, just update and let me know please.

therealcorwin commented 6 years ago

A little evolution :

Error while sending torrent: AttributeError("Torrent instance has no attribute 'name'",)

Branch: fix-rtorrent-0.9.6 Commit: 06521b96caffb22e087418b18ae7d361006e8ed4 Version: v0.1.17

medariox commented 6 years ago

Update + report, thanks!

therealcorwin commented 6 years ago

Sir, Yes Sir !

therealcorwin commented 6 years ago

Hummm, Sounds Good :) Well Done ! :v::v:

Torrent auto download + Label + Status "Snatched" in Medusa

I stop eating, and I make some test to be 100% on that everything goes well. And I tell you what the situation is.

Branch: fix-rtorrent-0.9.6 Commit: 2c878fa357da4ad2439ea2e3c0e0dfaa0f9a5c55 Version: v0.1.17

renini commented 6 years ago

Awesomeness! seems to work here too! I should get you a 🍺

Thanks!

medariox commented 6 years ago

Great to hear guys! Sadly there is still a lot to do before the changes can be pushed to develop. I could really use your help in the coming days for some other tests. 👍

therealcorwin commented 6 years ago

No problem, i am available to test. Just let me know When a new commit is pushed on github.

And a huge thx for all the time you spend on Medusa ! :clap::clap:

medariox commented 6 years ago

@therealcorwin @renini Can you update the branch and give some feedback, please? If all goes well I will open a PR to merge the changes.

therealcorwin commented 6 years ago

@medariox I just update Medusa from gui and it is unavailable just after the update. I'm not am home yet, i check that in one hour

renini commented 6 years ago

@medariox i shutdown the service, git pull to update and started again. Changed an episode to wanted, and it got snatched and downloaded with the correct label. So for me it still seems to work :+1:

2017-11-28 14:57:00 INFO TORNADO :: [2f5ef17] User logged into the Medusa web interface

therealcorwin commented 6 years ago

This is error who crashed medusa after the update :

2017-11-28 13:58:12 INFO Thread-18 :: [2f5ef17] AttributeError: 'module' object has no attribute 'LAYOUT_WIDE' 2017-11-28 13:58:13 INFO EVENT-QUEUE :: [2f5ef17] Shutting down Tornado 2017-11-28 13:58:13 ERROR Thread-18 :: [2f5ef17] Exception generated: 'module' object has no attribute 'LAYOUT_WIDE' Traceback (most recent call last): File "/volume2/Medusa/medusa/server/web/core/base.py", line 258, in asynccall if len(value) == 1: File "/volume2/Medusa/medusa/server/web/home/handler.py", line 728, in update controller='home', action='restart') File "/volume2/Medusa/medusa/server/web/core/base.py", line 136, in render for (filename, lineno, function, ) in kwargs['backtrace'].traceback: File "/volume2/Medusa/ext/mako/template.py", line 471, in render_unicode as_unicode=True) File "/volume2/Medusa/ext/mako/runtime.py", line 838, in _render *_kwargs_forcallable(callable, data)) File "/volume2/Medusa/ext/mako/runtime.py", line 873, in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File "/volume2/Medusa/ext/mako/runtime.py", line 899, in _exectemplate callable(context, args, **kwargs) File "/volume2/Medusa/cache/mako/layouts/main.mako.py", line 108, in render_body AttributeError: 'module' object has no attribute 'LAYOUT_WIDE' 2017-11-28 13:58:13 INFO EVENT-QUEUE :: [2f5ef17] Restarting Medusa with ['/bin/python2.7', u'/volume2/Medusa/start.py', '--nolaunch'] 2017-11-28 13:58:14 ERROR EVENT-QUEUE :: [2f5ef17] Exception generated in thread EVENT-QUEUE: error 5 : Input/output error Traceback (most recent call last): File "/volume2/Medusa/medusa/event_queue.py", line 51, in run self.callback(event_type) File "/volume2/Medusa/medusa/main.py", line 2091, in shutdown finally: File "/volume2/Medusa/medusa/main.py", line 2010, in restart

shutdown the logger to make sure it's released the logfile BEFORE it restarts SR.

IOError: [Errno 5] Input/output error 2017-11-28 13:58:14 DEBUG EVENT-QUEUE :: [2f5ef17] 'Traceback (most recent call last):\n File "/volume2/Medusa/medusa/event_queue.py", line 51, in run\n self.callback(event_type)\n File "/volume2/Medusa/medusa/main.py", line 2091, in shutdown\n finally:\n File "/volume2/Medusa/medusa/main.py", line 2010, in restart\n # shutdown the logger to make sure it\'s released the logfile BEFORE it restarts SR.\nIOError: [Errno 5] Input/output error\n'

After a manual restart, it works fine. I download 4 episodes and no problem

medariox commented 6 years ago

Thanks a lot for the help guys, we did it! The PR is now open and will be merged to develop soon: https://github.com/pymedusa/Medusa/pull/3333

therealcorwin commented 6 years ago

Huge Thx to you for your great work :)

renini commented 6 years ago

@medariox again many thanks for your work on this! One question, i see it got merged to develop now and the branch is deletec, should i swtich to the develop branch:

git checkout develop
git pull

like so? or should i do something else to keep using this fixed version

medariox commented 6 years ago

@renini Exactly 👌

therealcorwin commented 6 years ago

Hi @medariox I have bad news :( the error is back on master branch ;( @renini , have you the error too ?

LOG : [1a8dc66] uTorrent: Unable to send Torrent [1a8dc66] uTorrent: Method Not Allowed [1a8dc66] With post data: -dd68d43f00be4147afa4d53c56b42121 Content-Disposition: form-data; name="torrent_file"; filename="... [1a8dc66] User-Agent: Medusa/0.1.20 (Linux; 3.10.105; af719f4c-dacf-11e7-a650-0242a0f15990) [1a8dc66] POST URL: https://plop.com/rutorrent/plugins/httprpc/gui/?token=+%3Ccanvas+id%3D%22movemonkey%22+width%3D%22312%22+height%3D%22312%22%3E&action=add-file [Status: 405] [1a8dc66] uTorrent: Requested a POST connection to https://plop.com/rutorrent/plugins/httprpc/gui/ with params: OrderedDict([(u'token', u' '), (u'action', u'add-f... Data: None [1a8dc66] User-Agent: Medusa/0.1.20 (Linux; 3.10.105; af719f4c-dacf-11e7-a650-0242a0f15990) [1a8dc66] GET URL: https://plop.com/rutorrent/plugins/httprpc/gui/token.html [Status: 200] [1a8dc66] Calling uTorrent Client

Branch: master Commit: 1a8dc66c7ec9231be0d3444710e476437c9ae1c8 Version: v0.1.20

medariox commented 6 years ago

@therealcorwin That's really strange... I just merged the changes to master after you confirmed it was working.

renini commented 6 years ago

@therealcorwin i'm still on the develop branch and that one still works for me.

renini commented 6 years ago

@therealcorwin your log mentions uTorrent instead of rTorrent? Might it be mixed up and you need to reconfigure it as rTorrent? cc: @medariox

medariox commented 6 years ago

Good catch @renini, that's probably the issue then.

renini commented 6 years ago

@therealcorwin I just switched to the master branch, and mine is still working. 👍 Before I did my test I doubled checked that the Search settings -> Torrent search was set to rTorrent, and to make sure all was set correctly I selected uTorrent, then switched back to rTorrent and clicked save changes.

therealcorwin commented 6 years ago

@medariox @renini

Hum hum.... how to say that .... :o) My bad ! When i reconfigured Medusa, icheck too fast a provider and i use utorrent instead of rtorrent -_-

Sorry for this inconvience 👼