Diferior CMS on steroids
+1410 / 2338623 ( online 9 )

Peers Not showing.


Forum posts: 6
lassiethebrave (Junior member) @ 09 01 12 - 07:31:33
So I've just set up a new diferior install using an opentracker running on the same machine. and the tracker is functioning fine and permits scrapes from the diferior host, however diferior doesn't seem able to find any of the peers (yes I've waited more than 30 min.).

(Using Diferior 8.03 and totally loving it; but I find this pretty frustrating..)
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 573
UnrealX (Lead code monkey) @ 09 01 12 - 12:37:09
Are you capable of setting up system cron? If so, you should try it.
Otherwise, try executing bin/scrape.php via shell and see if that updates peer counters.
Forum posts: 6
lassiethebrave (Junior member) @ 09 01 13 - 18:45:19 (edited 09 01 13 - 19:10:56)
Sadly that didn't work scrape.php reports:
scraped 1 torrent(s)
scraped 1 torrent(s)
and there is no change on the site.. (also there are no 40 torrents on the site and none of them shows their seeders (but a scrape of the tracker works correctly...))
I have :

php --version
PHP 5.2.6-0.1~lenny1 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 29 2008 21:35:12)
Copyright © 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2008 Zend Technologies

and

mysql --version
mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2

if that helps in any way...

(and I am able to set up cron to run that script though it wouldn't really help me if the script isn't capable of really scraping anything...)

Thank you for your assistance this far!

Edit: Heh. I just now read the „How to report Bugs“ post and so:
Webserver Apache 2.2.9
running on Debian Gnu/Linux lenny (testing)
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 573
UnrealX (Lead code monkey) @ 09 01 13 - 19:33:36
Open functions/cron.php, insert some code after line 302, like so:
$stats = $bittorrent -> scrape ( SCRAPE_URL, $v [ 'info_hash' ] ); if ( !$silent ) echo SCRAPE_URL." -- ". ( $stats === false ? 'err' : 'ok' ) ."\n";
Then run scrape.php again and let me know what you get.
Forum posts: 6
lassiethebrave (Junior member) @ 09 01 13 - 19:42:01 (edited 09 01 13 - 19:46:32)
./scrape.php
$stats = $bittorrent -> scrape ( SCRAPE_URL, $v [ 'info_hash' ] ); if ( !$silent ) echo SCRAPE_URL.„ -- “. ( $stats === false ? 'err' : 'ok' ) .„\n“;

I do not know any php but I would guess something went wrong with that line?
However without the above line added it now finds all the torrents but only finds the correct number of seeders on 1 (one) of them not the latest nor the first and not one seeded from a source any different to the others... I am confused..

Edit: I'm a dumbass I'll now place the line in the right file (placed it in scrape.php first (heh...)
and bam! scrape.php now gives no output at all! and the peer count on the site is unchanged...
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 573
UnrealX (Lead code monkey) @ 09 01 15 - 14:41:42
Wait a bit until scrape cache expires and try running scrape.php then. See what output it produces.
Forum posts: 6
lassiethebrave (Junior member) @ 09 01 18 - 13:13:34
Ok. So for a while (meybe two or three runs) the scrape.php script gave the tracker scrape adress and „ok“ for every torrent but it did not show the right amount of peers in the index,
Now I get an error running scrape.php and a other error clicking on the download link in the site:
(I have changed nothing in downloads.php and nothing other than the line you requested in cron.php)
running scrape.php:
<a href="http://10.11.10.178:6969/scrape\" rel=\"external\">http://10.11.10.178:6969/scrape</a> -- ok <html> <head> <title>Error occured</title> <style type="text/css"> * { margin: 0; padding: 0; border: 0; font-family: Arial; } body { background: #F0F0F1; padding: 10px; } .box { border: 2px solid #909078; background: #D8F0C1; } .box div { padding: 4px; margin: 6px; border: 1px solid #787860; background: #C0D8A7; color: #787860; font-size: 1.1em; } .box div b { font-weight: 700; color: #ec1313; } .box div.sub { font-size: 1em; } .box div.plain { margin: 10px; font-size: 1em; border: 0; padding: 0; background: 0; } </style> </head> <body><div class="box"> <div><b><b>Undefined index: GgºÞDœÍ</b> (<b>#8</b>) in <b>/functions/cron.php</b> on line <b>304</b></b></div> </body> </html>
clicking on 5 of the downloads:
<html> <head> <title>Error occured</title> <style type="text/css"> * { margin: ; padding: ; border: ; font-family: Arial; } body { background: #F0F0F1; padding: 10px; } .box { border: 2px solid #909078; background: #D8F0C1; } .box div { padding: 4px; margin: 6px; border: 1px solid #787860; background: #C0D8A7; color: #787860; font-size: 1.1em; } .box div b { font-weight: 700; color: #ec1313; } .box div.sub { font-size: 1em; } .box div.plain { margin: 10px; font-size: 1em; border: ; padding: ; background: ; } </style> </head> <body><div class="box"> <div><b><b>Undefined index: Ϡ��)�5#;fN߹"f�i </b> (<b>#8</b>) in <b>/functions/downloads.php</b> on line <b>398</b></b></div> </body> </html>
the value of undefined index changes with each torrent.
I would like to point out that I have not touched the downloads.php fil in any way...
I am also completely guessing as to the right way to paste code into this forum... (a preview button would have been nice)
Thanks fo your help.
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 573
UnrealX (Lead code monkey) @ 09 01 18 - 13:29:54
Could you try restoring functions/cron.php to initial state and see if that helps with the errors?
Overall, this is pretty weird. Do you have an ability to run Diferior on a different server?
Forum posts: 6
lassiethebrave (Junior member) @ 09 01 18 - 13:40:57
yes I probably could set up a second server running diferior. and removing the previously added line changed nothing; it seems however that the torrents giving these errors are all created in the same bittorrent client (ktorrent 3.1.4) they do work with other clients though so I wouldn't know what could be wrong with them...
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 573
UnrealX (Lead code monkey) @ 09 01 18 - 17:31:01
Well, for some reason script can't scrape the tracker properly.
Unfortunately I can only speculate why is this happening. From what I can gather from your posts, PHP can connect to the tracker and some scrapes go through fine, others don't.
Could you try setting up a second diferior installation on the same server and checking if some other anonymous external tracker is working fine (such as denis.stalker)?