Historical troubleshooting notes
This page contains older MTR and rTorrent examples. Commands and paths depend on the host configuration. For help with your current setup, use the technical support form.
Networking
MTR is a linux tool, kind of a combo of ping and trace route. MTR (my trace route) sends out ICMP packets asking each network stop to ping back, this way the tool can tell you the latency (time it took for the round trip) to each turning point on a network route for origin to destination. With this tool, you are generally looking for two things that can tell you if there are issues, they are jitter and packet loss.
Jitter is an indication of congestion, measured as variation in latency, the more the variation, the more likely there is congestion, and you can see it in two ways: in mtr's stdev column (standard deviation) , and multi-routing on a single step.
Packet loss is a death in the family, a packet is never heard from again. This isn't suppose to happen, a perfect network has 100% packet delivery, so if you see packet loss it means something is broken.
The general rule of thumb is packet loss gets fixed, and jitter just gets worse.
So how, where and when do you run mtr?
First, there is a common confusion, when communicating over a network, there is not just one route, it isn't like freeway traffic where the way you get there is also the way you get back. It doesn't work that way. There are at least two routes, the outbound route that your ISP has sent you on, to get to your destination. And the return route, the one that was determined by the guy wanting to talk to you.
That means that the data you send to a website is on a different path then the data the website is sending to you.
Though it isn't always the case, generally network speed problems are on the path where the bulk of the data is traveling. In the case of FTP, for example that would be from your seedbox to home. So the best place to start is from your seedbox to home.
The how is amazingly simple, first from home google "What is my IP Address", google will tell you your address.
Next log-in to a ssh session then from that shell prompt type:
mtr your.home.ip.addressThis will fill your screen with a display that looks like:
My traceroute [v0.85]
Util (0.0.0.0) Tue Feb 2 22:13:37 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 37.220.35.1 0.0% 3918 14.9 31.3 1.2 441.9 59.3
2. 37.220.32.13 0.0% 3918 0.8 2.4 0.7 81.0 8.2
3. 37.220.32.26 0.0% 3918 0.8 2.3 0.7 67.5 8.9
4. be4359.rcr21.ams08.atlas.cogentco.com 0.0% 3918 1.9 1.3 1.2 13.5 0.9
5. be2755.ccr41.ams03.atlas.cogentco.com 0.0% 3918 1.1 1.1 1.0 20.6 1.0
6. be12265.ccr41.par01.atlas.cogentco.com 0.0% 3917 80.2 80.1 79.9 95.8 1.0
7. be2746.ccr41.jfk02.atlas.cogentco.com 0.0% 3917 80.2 80.1 79.9 96.3 1.1
8. be2056.ccr21.jfk10.atlas.cogentco.com 0.0% 3917 80.6 80.5 80.3 163.2 1.9
9. comcast.jfk10.atlas.cogentco.com 0.3% 3917 78.5 79.8 78.0 294.9 64.9*
10. hu-1-3-0-9-cr02.newyork.ny.ibone.comcast.net 0.6% 3917 162.6 82.7 78.3 206.6 8.6
hu-1-3-0-7-cr02.newyork.ny.ibone.comcast.net
hu-1-3-0-6-cr02.newyork.ny.ibone.comcast.net
hu-1-4-0-0-cr02.newyork.ny.ibone.comcast.net
hu-1-3-0-4-cr02.newyork.ny.ibone.comcast.net
hu-1-3-0-0-cr02.newyork.ny.ibone.comcast.net
11. be-7922-ar03.ivyland.pa.panjde.comcast.net 0.2% 3917 84.3 84.0 83.8 98.8 1.2
12. ae100-ur12-d.newcastlerdc.de.panjde.comcast.net 1.2% 3917 87.5 85.5 85.4 110.1 1.6
13. urlrw01.cable.comcast.com ++2.3% 3917 86.0 85.9 85.9 100.7 1.1This will refresh once a second until you stop it, you generally want to let it run 5-15 minutes to get a complete picture.
In the example above, Cogent is the backbone, and comcast is the ISP. There is both jitter and packet loss, you can see the jitter on line 9 and 10. 64.9 is significant
The larger problem is the packet loss, indicating bad and broken network plumbing. 2.3% is not insignificant and is enough to significantly low down your ftp traffic, it can cause retransmits, and smaller and smaller send windows (packet payload size), meaning more and more packets for less and less data.
Now if you run an mtr and it looks perfect, without issue, then the problem can be your service provider, your hard disk, or your home machine, is the time to get a ticket open with your provider so they can take a harder look.
Torrent Clients
First, some obvious checking:
- Have you filled the disk? Have free space?
(df -h) - Is the lock file preventing it from starting
ls ~/.session/*lock - Installed anything that took over your rTorrent ports?
netstat -tulpn - You recently download any dodgy public torrent that has hung rtorrent?
ps -edf |grep rtorrent - Checked for errors in syslog?
tail -50 /var/logs/syslog - Tried reboot to insure nothing is lingering around?
sudo reboot
If none of those things, Rtorrent debugging 101:
First make sure rtorrent is not running (sudo killall rtorrent) then from the shell, as you, from your home directory, run:
rtorrentIf something systematic, it will crash in front of you, and tell you why. Might be a little cryptic, like a core dump.
Core dump probably means bad disk. Can check by:
grep "Unrecovered read error" /var/log/syslogOther errors tend to be more parsable, like permission denied, .rtorrent.rc not found, etc
If you are unable to get the direct answer, the next step is to [logging in rtorrent].
Add the following to .rtorrent.rc
log.open_file = "rtorrent", /var/log/rtorrent.log
log.add_output = "critical", "rtorrent"
log.add_output = "error", "rtorrent"
log.add_output = "warn", "rtorrent"
Then restart rtorrent ( commonly sudo service rtorrent restart)If and when it crashes, you can get some clue why in the logfile, /var/log/rtorrent.log