Error loading feed with a specific tracker

randac56

Member
May 25, 2018
915
0
16
Hey there,

I've been using rutorrent on a debian-based server for a few months now and it's been working great except for this one little thing.
Whenever I'm trying to use the download RSS feed from blackcats-games.net, the same error keeps popping up in the journal: "error loading the feed". I'm using RSS feeds from other private trackers (BitHQ, TvTorrents) and they work without any problem. But just not blackcats-games, for a reason I can't understand.

I've read here and there that I should look on the side of curl and maybe php-cli but I don't see any problem there. My curl apparently supports https from what my previous tests had showed ( curl --version
curl 7.26.0 (x86_64-pc-linux-gnu) libcurl/7.26.0 OpenSSL/1.0.1e zlib/1.2.7 libidn/1.25 libssh2/1.4.2 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
) and I even tried purging/reinstalling it for the hell of it, to see if it changed anything -> no change, at all. Is there a way for me to enable debugging for this specific plugin? I've read about the Snoopy.class.inc.php file but I have no idea what to do with it.

I haven't seen any report here or on their forums of such a problem, which really doesn't help me to find a fix. I'm all for troubleshooting but at some point I get stuck, and I've reached that stage.

Oh, and that RSS feed works on my computer (browser side and utorrent side) and rutorrent/share/ is already set to CHMOD 777.

Could anyone try and provide some help with that issue of mine?

Thanks,
Sib

Edit: the BCG feed is HTTPS though, and I've just subscribed to another tracker which also uses HTTPS for its feed and I have the same error message...
Edit2: from Putty, I've tried the following: curl -l -k "https://feed_url" and the whole page code is displayed
 

randac56

Member
May 25, 2018
915
0
16
Already did that yesterday by having the following:
www.blackcats-games.net|uid=*;pass=*;

I got the uid and pass (passhash) from the cookies. No change.

Downloading from this tracker works though, it really just is about the RSS feeds.
 

simur612

Member
May 25, 2018
879
0
16
Turn on ruTorrent diagnostic (if you turned it off).
Check curl accessibility for web-server user (open_basedir etc).
 

randac56

Member
May 25, 2018
915
0
16
I already turned on the ruTorrent diagnostic feature (if that's what I think it is, in /rutorrent/conf/config.php) but nothing is ever written in there, even after I try adding the feed.
As for checking curl accessibility for web-server user I don't really know what that is about exactly, sorry.

Just for test purposes though I installed rtorrent/rutorrent on a desktop Ubuntu and the BCG feed works just fine there... I'd rather avoid having to reinstall it on my server but I somewhat think that it could be the best way to solve that issue, especially if what you're asking me to do proves to be a bit too hard to explain. And on that install, I didn't have to set up the cookies plugin, I just used the direct RSS feed from the website and it worked right away. That's gotta have to do with how the app must have been installed...

Edit:

I do have that but I'm not sure that helps:
cURL support enabled
cURL Information 7.26.0
Age 3
Features
AsynchDNS No
Debug Yes
GSS-Negotiate Yes
IDN Yes
IPv6 Yes
Largefile Yes
NTLM Yes
SPNEGO No
SSL Yes
SSPI No
krb4 No
libz Yes
CharConv No
Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtmp, rtsp, scp, sftp, smtp, smtps, telnet, tftp
Host x86_64-pc-linux-gnu
SSL Version OpenSSL/1.0.1e
ZLib Version 1.2.7
libSSH Version libssh2/1.4.2​
 

randac56

Member
May 25, 2018
915
0
16
Okay...

I just reinstalled it from scratch and I'm now with version 3.5 instead of the 3.4 I had before but I'm still having the same issue. I followed the exact same tutorial on my PC (where the feed works) and on my server (where it doesn't). Could you please help me with what I have to look at? Maybe be a bit more precise? That'd be greatly appreciated.
 

randac56

Member
May 25, 2018
915
0
16
Done. Current version is now 3.6. Still the same error with the feed.

Note: in /var/log/apache2/error.log I have the following:

[Fri Nov 22 10:24:20 2013] [error] [client *] PHP Notice: iconv(): Detected an illegal character in input string in /home/myusername/www/rutorrent/plugins/rss/rss.php on line 360, referer: http://*/rutorrent/

I checked the line in question and it reads this:

Code:
$out = iconv($this->encoding, 'UTF-8//TRANSLIT', $out);
It's in this function:

Code:
protected function convert($out,$needTranslate = false)
{
if($needTranslate)
$out = self::removeTegs( $out );
if(function_exists('iconv'))
$out = iconv($this->encoding, 'UTF-8//TRANSLIT', $out);
else
if(function_exists('mb_convert_encoding'))
$out = mb_convert_encoding($out, 'UTF-8', $this->encoding );
else
$out = win2utf($out);
return($out);
}
 

simur612

Member
May 25, 2018
879
0
16
This hasn't relation to your trouble. Yet once - check accessibility of curl's binary for web-server user. What is unclear for you? What is a curl? What is a user? What is web-server? Something else?
 

randac56

Member
May 25, 2018
915
0
16
What is unclear is that I have no idea how to check the accessibility of curl for the user. The way I understand what you're saying is that I should see if the user under which rutorrent runs can access curl, so that what it needs to do can be done. Am I right about that?

My curl binary is in /usr/bin. What I've tried so far is to log with the user that runs rutorrent and to perform a test like curl -k https://www.blackcats-games.net. It does work and it does show me the code of that page. Same with the specific rss when I do curl -k "https://www.blackcats-games.net/rss2.php?feed=dl&passkey=mypasskey".
It does work, is that what you mean by checking the accessibility?

You talked about open_basedir earlier, and I have no idea what I'm supposed to do regarding it.