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.77k stars 275 forks source link

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

Closed therealcorwin closed 6 years ago

therealcorwin commented 6 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
medariox commented 6 years ago

What rTorrent version are you running?

therealcorwin commented 6 years ago

Hi @medariox I just write this info on my post. Sorry for the mistake. This is my Seedbox : Debian 9 LIBTORRENT 0.13.6 RTORRENT 0.9.6

medariox commented 6 years ago

That's really strange. I have exactly the same setup and it works just fine here. Can you post a screenshot of your rTorrent config within Medusa? Are you having this issue with any provider or just with some?

therealcorwin commented 6 years ago

Yes very strange .... With Sonarr & Radarr it's works like a charm. Now with medusa no :( I dont understand why .... All provider are impacted

My configuration : https://www.dropbox.com/s/2et4v4f96zkm6cj/Medusa.PNG

PS : toto is my seedbox's " ip"

Rtorrent :

scgi_port = 127.0.0.1:XXXXX
encoding_list = UTF-8
port_range = 45000-65000
port_random = no
check_hash = no
directory = /home/plop/torrents
session = /home/plop/.session
encryption = allow_incoming, try_outgoing, enable_retry
schedule = watch_directory,1,1,"load.start=/home/plop/watch/*.torrent"
schedule = untied_directory,5,5,"stop_untied=/home/plop/watch/*.torrent"
schedule = espace_disque_insuffisant,1,30,close_low_diskspace=500M
trackers.use_udp.set = yes
dht.mode.set = off
protocol.pex.set = no
min_peers = 40
max_peers = 100
min_peers_seed = 10
max_peers_seed = 50
max_uploads = 15
execute = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php plop &}

I use this script to create my seedbox (auto install and configuration Nginx rtorrent libtorrent etc...) : https://mondedie.fr/d/9656-discussion-beta-installer-rutorrent-sur-debian-9-nginx-php-fpm

medariox commented 6 years ago

Don't know how to help, sorry. Same OS, rTorrent and libtorrent version here and it works as expected. Seems more like an issue with rTorrent though, load_raw method is not callable?

therealcorwin commented 6 years ago

Arfff :( How can i check That ? In the worst case, I can give you access to the seedbox to investigate. I master not very well the calls RPC and html.

medariox commented 6 years ago

Can you please try this branch and report back?

therealcorwin commented 6 years ago

Thx for the branch đź‘Ť installation is on progress

therealcorwin commented 6 years ago

Sorry for the delay, some problems with Git :/

So, Good news and Bad News.

Good News : My seedbox received correctly the torrent đź‘Ť

Bad News : 2017-11-07 15:10:41 WARNING SNATCHQUEUE-MANUALSNATCH-289590 :: [48f4968] rTorrent: Unable to send Torrent 2017-11-07 15:10:41 WARNING SNATCHQUEUE-MANUALSNATCH-289590 :: [48f4968] Error while sending torrent: MethodError() 2017-11-07 15:10:38 DEBUG SNATCHQUEUE-MANUALSNATCH-289590 :: [48f4968] Calling rTorrent Client

The torrent is in download queue on my seedbox, but have the status "stop" and have no label (The label is "Serie" in Medusa parameters. I need to start the download with a manual action.

I have this error at Medusa starting, but this is not the purpose of this issue. ERROR:stevedore.extension:Could not load 'subscenter': No module named subscenter ERROR:stevedore.extension:Could not load 'thesubdb': The 'six>=1.9.0' distribution was not found and is required by the application /usr/local/ffmpeg/bin/ffprobe: /lib/libstdc++.so.6: no version information available (required by /usr/local/ffmpeg/lib/libx265.so.130) /usr/local/ffmpeg/bin/ffprobe: /lib/libstdc++.so.6: no version information available (required by /usr/local/ffmpeg/lib/libx265.so.130)

therealcorwin commented 6 years ago

My problem look like this one : https://github.com/SickRage/SickRage/issues/2934 ? No ?

medariox commented 6 years ago

No, just a mistake on my part. Please update the branch, it should work now.

therealcorwin commented 6 years ago

Same problem :(

Medusa Info: | Branch: Commit: 382de1e99273df9a12dc3aef5d9cdd9c914d6e7f

What git command i need to use to update my local branch. Each time i have tousand problems to update :(

medariox commented 6 years ago

cd to your main Medusa folder (usually medusa) git checkout fix-rtorrent-0.9.6 git pull

therealcorwin commented 6 years ago

I just fund the cause of my problem on my git. i'm not an expert :D The problem is still present even if i made a proper update.

medariox commented 6 years ago

Please post a full debug log at this point.

therealcorwin commented 6 years ago

it's the same error : https://www.dropbox.com/s/6a2cw57azm8ha1i/Debug%20Medusa.txt?dl=0

Branch: fix-rtorrent-0.9.6 Commit: 382de1e99273df9a12dc3aef5d9cdd9c914d6e7f

medariox commented 6 years ago

So the torrent is added, but it's paused and without label now?

therealcorwin commented 6 years ago

Yes, torrent added but stoped and no label.

With method erreur in debug log. See my previous post.

Télécharger Outlook pour Androidhttps://aka.ms/ghei36


From: Dario notifications@github.com Sent: Tuesday, November 7, 2017 8:12:55 PM To: pymedusa/Medusa Cc: therealcorwin; Author Subject: Re: [pymedusa/Medusa] [Help] Error while sending torrent: <Fault -506: "Method 'load_raw' not defined" (#3223)

So the torrent is added, but it's paused and without label now?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/pymedusa/Medusa/issues/3223#issuecomment-342589919, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFN8g69b0Vj8HYxzMSOED1bsYOxKz9CRks5s0Ku3gaJpZM4QRYvz.

therealcorwin commented 6 years ago

Hi Medariox,

Have you some good news for me ? :)

medariox commented 6 years ago

@therealcorwin Not yet! Will have another try today.

therealcorwin commented 6 years ago

@medariox Cool ! I would be available to test it :)

medariox commented 6 years ago

That's great! Can you update the branch and try again, please?

therealcorwin commented 6 years ago

I have 2 errors :

rTorrent: Unable to send Torrent Error while sending torrent: MethodError() Calling rTorrent Client User-Agent: Medusa/0.0.1 (Linux; 3.10.105; a8d3f3f8-cc63-11e7-ba50-0242a0f15990) GET URL: https://yggtorrent.com/engine/download_torrent?id=106964 [Status: 200] User-Agent: Medusa/0.0.1 (Linux; 3.10.105; a8d3f3f8-cc63-11e7-ba50-0242a0f15990)

The torrent have the status "download" but no label :(

And a the new one :

[Yggtorrent] :: [7978df5] Fallback season pack search initiate [Yggtorrent] :: [7978df5] Failed parsing provider. Traceback (most recent call last): File "/volume2/Medusa/medusa/providers/torrent/html/yggtorrent.py", line 127, in parse download_url = urljoin(self.url, cells[0].find('a', target='_blank')['href']) TypeError: 'NoneType' object has no attribute 'getitem'

But this one come from the new version of the site, may be.

medariox commented 6 years ago

Please let's stick to one issue. The second one is related to the recent changes to yggtorrent, you can open a new issue for that one if you want.

So, the torrent is starting correctly now but is missing the label?

therealcorwin commented 6 years ago

Sorry for the delay.

MY torrent had the status download but it not download nothing. Problem solved , flush my DNS cache

So, Yes the download works well but no label.

medariox commented 6 years ago

Please update and try again.

therealcorwin commented 6 years ago

no change :(

Branch: fix-rtorrent-0.9.6 Commit: 4b5df0df1c15ffb84db996bbe27b0d8563029d70

medariox commented 6 years ago

One more try?

therealcorwin commented 6 years ago

doesn't works.

I just seen that the episode doesn't have the status "snatched" in Medusa. But it's may be a side effect of error.

Branch: fix-rtorrent-0.9.6 Commit: 9b75e0f0abc971e6613d27ee3b09b07173de64e7

medariox commented 6 years ago

What error?

therealcorwin commented 6 years ago

The MEthodError 9b75e0f] rTorrent: Unable to send Torrent 9b75e0f] Error while sending torrent: MethodError()

medariox commented 6 years ago

I think something went wrong with your pull, you shouldn't get that error. Try to pull again.

therealcorwin commented 6 years ago

I re-pull your branch, and I have the same error :/

[9c26090]Error while sending torrent: MethodError() [9c26090] rTorrent: Unable to send Torrent

Error while sending torrent: MethodError() rTorrent: Unable to send Torrent

I reinstalling from scratch Medusa, to see if something change after the reinstall.

Branch: fix-rtorrent-0.9.6 Commit: 9c26090a67ed0090a744a978bac7687b895f6116

medariox commented 6 years ago

Related: https://github.com/Sonarr/Sonarr/issues/1745

That means that a (at least) partial rewrite of the rtorrent lib will be needed.

p0psicles commented 6 years ago

Or maybe consider switching to transmission?

therealcorwin commented 6 years ago

@medariox : Arf :/ auto download works thanks to your modification but label not. I don't know why before it's works like a charm and today not :(

@p0psicles : I'm not against the switch. I use all in one script to create my seedbox and it administration but i don't know how works transmission. If you can't resolve this problem, I am going to have to rewrite the script completely. That is why I preferred to keep rtorrent :)

renini commented 6 years ago

I have the same errors with the fix-rtorrent-0.9.6 branch 2017-11-23 21:22:46 WARNING SEARCHQUEUE-BACKLOG-153021 :: [9c26090] Error while sending torrent: MethodError() 2017-11-23 21:22:46 WARNING SEARCHQUEUE-BACKLOG-153021 :: [9c26090] rTorrent: Unable to send Torrent

will try to debug this tomorrow, might this be related to the rtorrent command changes? https://github.com/rakshasa/rtorrent/wiki/rTorrent-0.9-Comprehensive-Command-list-(WIP)

for example execute_raw is now execute.raw

therealcorwin commented 6 years ago

@renini the branch "fix-rtorrent-0.9.6", for me, fix the sending & auto start download problem. But the label doesn't work yet. And in Medusa, when a torrent is downloading, the episode doesn't have the status "Snatched"

I am available to test :)

medariox commented 6 years ago

Please update branch fix-rtorrent-0.9.6 and report back.

renini commented 6 years ago

Works!!!! The torrent was downloaded and the label is set! @medariox thanks! you rock

therealcorwin commented 6 years ago

the error is still here : [b1bf495] Calling rTorrent Client [b1bf495] Error while sending torrent: MethodError() [b1bf495] rTorrent: Unable to send Torrent

But the torrent have his label :) In medusa, the episode doesn't have the status "snatched".

Good work ! we progress :)

Branch: fix-rtorrent-0.9.6 Commit: b1bf4955e8132f5d6bfff45aea453269a5ef03b8 Version: v0.1.17

renini commented 6 years ago

yeh same thing for me, it still reports the error, but the torrent + label gets downloaded. Status is still on wanted instead of snatched indeed...

medariox commented 6 years ago

Thanks for the feedback, we are almost there! One more update and report back.

renini commented 6 years ago

Now i get this: [206602b] rTorrent: Unable to send Torrent [206602b] Error while sending torrent: AttributeError("Torrent instance has no attribute 'hashing'",)

Torrent still gets added and started, with the right label though

therealcorwin commented 6 years ago

This time, i have this error : Calling rTorrent Client Error while sending torrent: AttributeError("Torrent instance has no attribute 'hashing'",) Torrent: Unable to send Torrent

Torrents are still downloaded with label, and no status "snatched" in Medusa.

Branch: fix-rtorrent-0.9.6 Commit: 206602b67f0104d6fda7cce8440556398ba424cb Version: v0.1.17

medariox commented 6 years ago

So close! One more time please.

therealcorwin commented 6 years ago

Same error :( Just a little further :)

Branch: fix-rtorrent-0.9.6 Commit: 6cdf834fb2b519cfdbd7a88905018e8cc8e7d745 Version: v0.1.17

medariox commented 6 years ago

🦀 Aaaaand one more time please.

therealcorwin commented 6 years ago

Same player, play again :)

Same error :/

Branch: fix-rtorrent-0.9.6 Commit: 8bf7bd725835913061b7088c0887952bc9b3b39d Version: v0.1.17

medariox commented 6 years ago

Weird, should be working... try now please.