Giter Club home page Giter Club logo

ocelot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ocelot's Issues

xbt_files_users not in sync

My stats page is currently displaying:

0 leechers tracked
1 seeders tracked

But still.. there are several peers in xbt_files_users with active == 1. Is the peer reaper actually updating xbt_files_users when it clears dead peers?

Also another question. Why does active state 0 exist at all? The table will just grow and grow with dead peers. The table will flush empty if you restart the tracker though, which is rendering the data just temporary anyway.

IPv6 peer IP's are written out incorrectly

When users are set to be visible (i.e. their IP addresses should be saved to the peers table) there's an issue with IPv6 peers. Ocelot attempts to write out a urlencoded string of the IPv6 IP.

In addition, the default schema defines the peer table's ip column to be of type VARCHAR(15). This should be changed to 39 to accommodate an IPv6 IP of maximum length.

I have problem. help me.

my friend are not able to download files from one another and although a torrent has been uploaded to the site.
default
2016-01-31 8 30 19
I don't know what problem. Thanks.

Ocelot 1.0 compile issue

On ubuntu 14.0 LTS
I am using repo libraries and tried with boost version 1.59 which is latest.
Configure:
./configure --with-mysql-lib=/usr/lib/x86_64-linux-gnu/ --with-ev-lib=/usr/lib/x86_64-linux-gnu/

Output
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking whether C++ compiler accepts -std=c++11... yes
checking whether C++ compiler accepts -fstack-protector-strong... no
checking for boostlib >= 1.37... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether the Boost::IOStreams library is available... yes
configure: error: Could not find a version of the library!

Not sure which library is missing, the output doesnt say.

Thanks

After some time, seeing: Query error: MySQL server has gone away

Every few days, we will see a whole string of messages with the "queue size" increasing by 2 bytes each second.

We attempted the usrsigkill -

Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5902
Query error: MySQL server has gone away in flush peers with a qlength: 1982 queue size: 1000
Torrent flush queue size: 5902, next query length: 520
Peer flush queue size: 1000, next query length: 1982
Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5904
Query error: MySQL server has gone away in flush peers with a qlength: 4824 queue size: 1000
Reloading from database
Loaded 12269 torrents
Loaded 0 tokens
Loaded 2898 users
Assuming no whitelist desired, disabling
Torrent flush queue size: 5904, next query length: 520
Peer flush queue size: 1000, next query length: 4824
Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5906
Query error: MySQL server has gone away in flush peers with a qlength: 1741 queue size: 1000
Torrent flush queue size: 5906, next query length: 520
Peer flush queue size: 1000, next query length: 1741
Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5908
Query error: MySQL server has gone away in flush peers with a qlength: 2751 queue size: 1000
Torrent flush queue size: 5908, next query length: 520
Peer flush queue size: 1000, next query length: 2751

But as you can see from the above, it didn't fix the problem.
Next is bouncing the tracker:

Peer flush queue size: 1000, next query length: 822
Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5984
Query error: MySQL server has gone away in flush peers with a qlength: 570 queue size: 1000
Torrent flush queue size: 5984, next query length: 520
Peer flush queue size: 1000, next query length: 570
Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5986
Query error: MySQL server has gone away in flush peers with a qlength: 573 queue size: 1000
Torrent flush queue size: 5986, next query length: 520
Peer flush queue size: 1000, next query length: 573
Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5988
Query error: MySQL server has gone away in flush peers with a qlength: 577 queue size: 1000
Torrent flush queue size: 5988, next query length: 520
Peer flush queue size: 1000, next query length: 577
Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5990
Query error: MySQL server has gone away in flush peers with a qlength: 580 queue size: 1000
Torrent flush queue size: 5990, next query length: 520
Peer flush queue size: 1000, next query length: 580
Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5992
Query error: MySQL server has gone away in flush peers with a qlength: 701 queue size: 1000
^C
Session terminated, terminating shell...Caught SIGINT/SIGTERM
closing tracker... press Ctrl-C again to terminate
Torrent flush queue size: 5992, next query length: 520
Peer flush queue size: 1000, next query length: 701
Query error: MySQL server has gone away in flush torrents with a qlength: 520 queue size: 5994
Query error: MySQL server has gone away in flush peers with a qlength: 854 queue size: 1000
...killed.

And then we'll restart the process and everything will be fine until it hits a busy time with the database:

Clearing xbt_files_users and resetting peer counts...done
Loaded 2898 users
Loaded 12269 torrents
Loaded 0 tokens
Assuming no whitelist desired, disabling
Sockets up on port 34000, starting event loop!
0 open, 8 connections (2/s), 8 requests (2/s)
0 open, 277 connections (1/s), 277 requests (1/s)
0 open, 418 connections (1/s), 418 requests (1/s)
0 open, 534 connections (1/s), 534 requests (1/s)
Torrent flush queue size: 2, next query length: 374
Peer flush queue size: 1, next query length: 1076
Torrent flush queue size: 4, next query length: 374
Peer flush queue size: 2, next query length: 1076
Torrent flush queue size: 6, next query length: 374
Snatch flush queue size: 1, next query length: 97
Peer flush queue size: 3, next query length: 1076
MySQL error in flush_snatches: Too many connections
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
3 open, 708 connections (4/s), 705 requests (3/s)

Is there a way to have Ocelot reset its connections to the database?

I just attempted various mysql commands from the CLI, and inadvertently made the flush problem stop.

Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
Snatch flush queue size: 1, next query length: 97
3 open, 1971 connections (15/s), 1968 requests (16/s)
0 open, 2090 connections (2/s), 2090 requests (2/s)
0 open, 2239 connections (1/s), 2239 requests (1/s)
0 open, 2351 connections (2/s), 2351 requests (2/s)
0 open, 2546 connections (3/s), 2546 requests (3/s)
0 open, 2652 connections (1/s), 2652 requests (1/s)
Reloading from database
Loaded 12271 torrents
Loaded 0 tokens
Loaded 2898 users
Assuming no whitelist desired, disabling
1 open, 2756 connections (3/s), 2755 requests (3/s)
0 open, 2924 connections (2/s), 2924 requests (2/s)

(just above is an automatic USRSIG when new torrents have been added to the database. Might that be contributing to the problem? We made it not reload anytime sooner than 5 minutes even if 5 or 10 new torrents are added quickly.)

Thanks for any advice.

flushing user stats

After fixing the performance issues, we watched the MySQL general log (all queries and writes) for activity performed by Ocelot. After 5-10 minutes, the tracker is no longer submitting updates for uploaded/downloaded user stats.

What could be a reason for this to happen?
Is there something we could adjust to force the updates to continue?

Thanks for any suggestions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.