Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Help needed
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / General Chat

2022-10-23 09:11:32
Hi , as I`m new to TT and using TTv2.08 I have an issue with seeding torrents.
On my main page at the top where it shows seeding torrents total=say 180, and the site does a cleanup the number of torrents goes down to say 20.
I have been looking through the forums at a pos fix but am not sure,
would really like some help as this is causing an issue with all members not getting correct seed bonus points/stats

Thank you in advance.
2022-10-23 10:01:56
1. Internal or external torrents?
2. Cleanup time in secounds?
3. Paste your cleanup.php here (backend==>clanup.php)
4. Check announce.php too
5. PHP version and active modules on it (mcrypt, pdo, memcache, memcached)

Regards


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-10-23 17:41:57
1. Internal or external torrents?
Ans= Internal as external is false
$site_config['ALLOWEXTERNAL'] = false;

2. Cleanup time in secounds?
Ans= $site_config['autoclean_interval'] = '1800'; // Time between each auto cleanup (Default: 30 mins)
$site_config['LOGCLEAN'] = 30 * 86400; // How often to delete old entries. (Default: 30 days)
$site_config['announce_interval'] = '900'; // Announce Interval (Default: 30 mins)

3. Paste your cleanup.php here (backend==>clanup.php)
4. Check announce.php too
5. PHP version and active modules on it (mcrypt, pdo, memcache, memcached)
Ans= PHP handlers: 7.4.32 CGI application, 7.4.32 FastCGI application, 7.4.32 FPM application, 7.4.32 Dedicated FPM application.

announce.php
Download
2022-10-23 17:44:03
Clean-up.php from my site
cleanup.php
Download
2022-10-23 21:11:32
OK,
If you have MCRYPT = ON, turn it OFF
If you have PDO = OFF, turn it ON
If you have MEMCACHE = OFF, turn it ON
If you have MEMCACHED = OFF, turn it ON


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-10-24 01:29:07
Quote:
OK,
If you have MCRYPT = ON, turn it OFF
If you have PDO = OFF, turn it ON
If you have MEMCACHE = OFF, turn it ON
If you have MEMCACHED = OFF, turn it ON


ok have checked and done that.
MCRYPT = OFF
PDO = ON
MEMCACHE = ON
MEMCACHED = ON
2022-10-24 08:16:45
This is my part of torrentbar and it works on my TT 2.0.8


//--- torrentbar ---//
if ($site_config["MEMBERSONLY"])
{
$res = SQL_Query_exec("SELECT COUNT(*) FROM peers WHERE userid = " . $CURUSER["id"] . " AND seeder = 'yes'");
$row = mysqli_fetch_row($res);
$activeseed = $row[0];
$res = SQL_Query_exec("SELECT COUNT(*) FROM peers WHERE userid = " . $CURUSER["id"] . " AND seeder = 'no'");
$row = mysqli_fetch_row($res);
$activeleech = $row[0];
$res2 = SQL_Query_exec("SELECT seeder FROM peers WHERE userid=" . sqlesc($CURUSER["id"]) . " LIMIT 1");
if($row = mysqli_fetch_row($res2))
{
$connect = $row[0];
if($connect == "yes")
{
$connectable = "      ".T_("CONNECTABLE")." ";
}
else
{
$connectable = "       ".T_("UNCONNECTABLE")." ";
}
}
else
{
$connectable = "       ".T_("NO_ACTIVITY")." ";
}
print(" ".T_("ACTIVE_TORRENTS").":    - $activeseed -  ");
print("   ");
print("  - $activeleech -  ");
print(" $connectable ");
}
//--- end torrentbar ---//




www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-10-24 15:54:53
ok not sure how to put the torrent bar in sorry or into what php file.

The main issue I am worried about is how to get my seeding torrent to remain as showing seeding onsite and not going from say 180 down to like 20 after a cleanup
2022-10-25 10:50:57
ok if anyone would like to opffer any help would be appreciated .
If so you can join my site via a pm here to me for the link ty.

I am at the end of my teather in trying to get things to work.

Thank you in advance
2022-10-25 12:08:00
looking at the announce it looks ok, but maybe a good idea to turn $site_config["cache_peers"] off for a day

you could try query the amount off torrents you have

anywhere on index place this - we can remove it after we will just check peers table for available torrents


$res = SQL_Query_exec("SELECT COUNT(DISTINCT torrent) FROM peers WHERE `seeder` = 'yes'");
var_dump($res);


check if peers matches up to number of torrents this will test connection

also check database table torrents sort by visible are we seeding but invisable

do cleanup in admin upload torrent and watch in 10 minutes to see if it disappers
a few test will help narrow it down
Last edited by M-jay warn on 2022-10-25 12:18:02
2022-10-25 13:11:15
ok  first off ty M-jay.
I have now turned cache_peers off  and placed code in index php.
But soon as I did that member came to me said
"So know I got leechers but no connection I'm green in client as norm a member trying leech "

My stats on side block
Torrents
• Uploaded: 5,668
• Uploaded today: 92
• Seeders: 9,251
• Leechers: 28
• Peers: 9,279
2022-10-25 13:23:19
ok so on main index of site I now see this:

object(mysqli_result)#14 (5) { ["current_field"]=> int(0) ["field_count"]=> int(1) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) }

30 minutes later
object(mysqli_result)#9 (5) { ["current_field"]=> int(0) ["field_count"]=> int(1) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) }
Last edited by sal2azz on 2022-10-25 13:57:07
2022-10-31 22:04:34
Peer caching? What is the purpose of that? The name implies that peers will be cached for x amount of time.

If this is the case, where are bytes and other parameters being picked up if the peers state is in fact cached?

Does this not cause an out of sync issue with the peer data?

Lastly, this may cause a redundancy problem, as  most data in that table is volatile by design (with the exception of info hash and a few other fields).

Just curious.
2022-10-31 22:11:48
@Sal2azz

You appear to misunderstand how cleanup works with stale peers. Typically this table should be dynamically updated/replaced/deleted on demand with foreign keys using ONUPDATE/ONDELETE as needed but we have cleanup that just inherits every global task crammed altogether (which is pretty bad design. It is supposed to be incremental tasks, not a full blown asynchronous operation in parallel).

Should we consult this cleanup script again?
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728