Giter Site home page Giter Site logo

Peer refreshing about aria2 HOT 20 CLOSED

aria2 avatar aria2 commented on May 5, 2024
Peer refreshing

from aria2.

Comments (20)

tatsuhiro-t avatar tatsuhiro-t commented on May 5, 2024

There is --bt-tracker-interval option. --bt-request-peer-speed-limit option may also help if you mind low speed.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

Thank you, I will try those options.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

Nope, It still dies after a few hours, connections go back to zero, and when I pause&continue, I have 145 shortly after.

I'm using these settings:

bt-request-peer-speed-limit=100K
bt-tracker-interval=1200

from aria2.

tatsuhiro-t avatar tatsuhiro-t commented on May 5, 2024

With DHT and tracker enabled, and assuming you are downloading torrent, not seeding, it is very strange that there is no connection. Could you grab aria2 log and check that tracker announce is made correctly?
Because this issue needs few hours to occur, log file gets too big. So you can enable logging after the connection becomes 0 using RPC command and wait for tracker announce (minimum 1200+ secs for your settings).
To enable logging via RPC, you can do it using aria2rpc:

doc/xmlrpc/aria2rpc changeGlobalOption -l /tmp/log.txt

from aria2.

farnoy avatar farnoy commented on May 5, 2024

Ok, I will do that next time I encounter the problem, but what about log
level? Most of my current logs are errors about not supporting UDP protocol.

On 22 January 2013 13:40, Tatsuhiro Tsujikawa [email protected]:

With DHT and tracker enabled, and assuming you are downloading torrent,
not seeding, it is very strange that there is no connection. Could you grab
aria2 log and check that tracker announce is made correctly?
Because this issue needs few hours to occur, log file gets too big. So you
can enable logging after the connection becomes 0 using RPC command and
wait for tracker announce (minimum 1200+ secs for your settings).
To enable logging via RPC, you can do it using aria2rpc:

doc/xmlrpc/aria2rpc changeGlobalOption -l /tmp/log.txt


Reply to this email directly or view it on GitHubhttps://github.com//issues/41#issuecomment-12542690.

from aria2.

tatsuhiro-t avatar tatsuhiro-t commented on May 5, 2024

Thank you. The debug level log is very helpful for debugging.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

Sure, I will include debug information also.

On 22 January 2013 14:05, Tatsuhiro Tsujikawa [email protected]:

Thank you. The debug level log is very helpful for debugging.


Reply to this email directly or view it on GitHubhttps://github.com//issues/41#issuecomment-12543417.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

Ok, this happened again, I've executed the command to save the log, I will wait at least 20 minutes and then post it here.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

Where should I send you the logs? There's 4M of them.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

Compressed logs are here, starting around 10.53am to around 11.20. I've paused&unpaused Darksiders2 around 11.18, and two minutes later it was going full speed. There may be some noise from the RPC, since I've checked the webui a few times.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

Full config:

continue
dir=/home/kuba/Downloads
file-allocation=falloc
max-connection-per-server=4
min-split-size=5M
enable-rpc
enable-dht
bt-save-metadata
rpc-save-upload-metadata
force-save
bt-seed-unverified
bt-max-peers=0
bt-request-peer-speed-limit=100K
bt-tracker-interval=1200
save-session=/home/kuba/.aria2/session
input-file=/home/kuba/.aria2/session
jobs=20000
max-concurrent-downloads=99999
log-level=debug
log=/home/kuba/aria2_log

from aria2.

tatsuhiro-t avatar tatsuhiro-t commented on May 5, 2024

Thank you for the log. From the log, aria2 corrected peers from DHT (trackers are all udp but aria2 does not support them) and its peer list was full (1024 peers), but for unknown reason, aria2 did not initiate connection to those peers. The code to initiate connection is src/ActivePeerConnectionCommand.cc but unfortunately it does not have meaningful log message at the moment.
I'll make a patch to add log message and post the link here.
Could you apply the patch and do the same procedure again?

from aria2.

farnoy avatar farnoy commented on May 5, 2024

I would have to compile aria2 from git master and then run it the same way?

On 23 January 2013 16:25, Tatsuhiro Tsujikawa [email protected]:

Thank you for the log. From the log, aria2 corrected peers from DHT
(trackers are all udp but aria2 does not support them) and its peer list
was full (1024 peers), but for unknown reason, aria2 did not initiate
connection to those peers. The code to initiate connection is
src/ActivePeerConnectionCommand.cc but unfortunately it does not have
meaningful log message at the moment.
I'll make a patch to add log message and post the link here.
Could you apply the patch and do the same procedure again?


Reply to this email directly or view it on GitHubhttps://github.com//issues/41#issuecomment-12600115.

from aria2.

tatsuhiro-t avatar tatsuhiro-t commented on May 5, 2024

The affected source file has not changed since last release (1.16.1), so you can apply the patch to 1.16.1 tar ball. It is a little bit easier to build from git.

from aria2.

tatsuhiro-t avatar tatsuhiro-t commented on May 5, 2024

Patch is here: http://sourceforge.net/p/aria2/patches/61/

from aria2.

farnoy avatar farnoy commented on May 5, 2024

Ok, I've cloned the repo and applied the patch, building manpages fails but the binary is intact
[WARN] Unknown option: jobs=20000.
I'll find some big download and leave it for the night. Hopefully, it will happen again and I will post logs tomorrow.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

This time, the scenario was kind of different, because I've had two bigger jobs that were not downloading since I added them (maybe the traffic from other jobs caused them to lose tracker messages) and they stayed at zero progress for about 9 hours. Here are the last 500k lines from the log.

from aria2.

tatsuhiro-t avatar tatsuhiro-t commented on May 5, 2024

Thank you for the log. With your help, I found the bug which potentially causes this issue. It was fixed in 550ac8c.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

No problem, happy to help. I will pull the fix and see how that works, thanks for your time.

from aria2.

farnoy avatar farnoy commented on May 5, 2024

It has been verified by me twice since my last reply, and it maintains speed after several hours, thank you.

from aria2.

Related Issues (20)

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.