BitTorrent service problems

Support forum for the BitTorrent client add-on.

Re: BitTorrent service problems

Postby mzjarvis » Wed Mar 12, 2008 10:27 am

Cool, that was just what I needed.

I have knocked up a couple of scripts to throttle up and throttle down the speed based on your suggestion.

bt-throttle-down.sh
Code: Select all
#! /bin/sh
wget -q -t 1 -O /dev/null http://localhost:8080/api/app-settings-set?auto_bandwidth_management="0"
wget -q -t 1 -O /dev/null http://localhost:8080/api/app-settings-set?max_dl_rate="1024"
wget -q -t 1 -O /dev/null http://localhost:8080/api/app-settings-set?max_ul_rate="1024"
wget -q -t 1 -O /dev/null http://localhost:8080/api/app-settings-set?max_ul_rate_seed="1024"


bt-throttle-up.sh
Code: Select all
#! /bin/sh
wget -q -t 1 -O /dev/null http://localhost:8080/api/app-settings-set?auto_bandwidth_management="1"
wget -q -t 1 -O /dev/null http://localhost:8080/api/app-settings-set?max_dl_rate="-1"
wget -q -t 1 -O /dev/null http://localhost:8080/api/app-settings-set?max_ul_rate="-1"
wget -q -t 1 -O /dev/null http://localhost:8080/api/app-settings-set?max_ul_rate_seed="-1"


Crontab
Code: Select all
# Throttle the bittorrent manager according to time of day
# Throttle down at 3:45pm, 15 minutes before ISP's peak usage period
43 15 * * *     /usr/share/bittorrent/bt-throttle-down.sh
# Throttle up at a quarter past midnight, 15 minutes after ISP's peak usage period
15 00 * * *     /usr/share/bittorrent/bt-throttle-up.sh


Notes:
Here's a few things I discovered in doing this.
1) The bandwidth parameters to the web api are actually specified in Bytes, unlike the UI which uses KBytes. I could therefore have set limits lower than 1KB/s but the UI complains when ever you go into the settings screen

2) I could only specify 1 setting at a time, so that's why I make 4 calls to app-settings-set

3) It's takes a while torrents to completely throttle down so I give them 15 minutes

I hope this is useful to others.
mzjarvis
ReadyNAS Newbie
 
Posts: 15
Joined: Wed Apr 19, 2006 5:47 am

Re: BitTorrent service problems

Postby chirpa » Wed Mar 12, 2008 11:36 am

Good work :)

For #2, did app-settings-set?max_dl_rate="1024"&max_ul_rate="1024" not work?

Check out /usr/share/bittorrent/start_bt.sh, how it does the multi-calls.
User avatar
chirpa
Jedi Council Alumni
 
Posts: 15491
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: BitTorrent service problems

Postby mzjarvis » Wed Mar 12, 2008 12:55 pm

No, using ?param1=blah&param2=blah would only set the first parameter.

Thanks again for pointing me in the right direction. It would be nice if Infrant/Netgear could include these or similar scripts in a future firmware update.

Martin
mzjarvis
ReadyNAS Newbie
 
Posts: 15
Joined: Wed Apr 19, 2006 5:47 am

Re: BitTorrent service problems

Postby athomson » Thu Mar 13, 2008 2:21 am

I have just re-installed 4.01 release for the second time and Bit Torrent has worked for me two days running with a power off on schedule. Very strange :?

Edit: I would still like to see Protocol header encrypt (PHE) and Message stream encryption/Protocol encryption (MSE/PE) in a later version of the Add-On though.

I am happy for now though ... Andy :)

I spoke too soon the service is up to its old tricks. I cant see the interface page, the only way seems to stop it then re-start it again. :(
User avatar
athomson
Advanced ReadyNAS User
 
Posts: 110
Joined: Mon Jun 11, 2007 6:55 am
Location: Bucks., UK
ReadyNAS: NV+

Re: BitTorrent service problems

Postby athomson » Wed Mar 19, 2008 12:14 pm

Now it seems to be dropping connection o the interface page on 8080. Its on a wired connection fron the NAS to the router and from the PC to the router. I have not noticed any other problems with talking to the NAS.

Edit: I see on other parts of the forum users say they have problems if the share is not set to media for the BT addon. I have a share called BitTorrent where all the torrents are downloaded to. Would I have more luck with a Bittorrent directory inside the media share?

Andy :?
User avatar
athomson
Advanced ReadyNAS User
 
Posts: 110
Joined: Mon Jun 11, 2007 6:55 am
Location: Bucks., UK
ReadyNAS: NV+

Re: BitTorrent service problems

Postby athomson » Tue Mar 25, 2008 11:24 am

I have just upgraded to BT addon 1.2 from 1.1 by removing 1.1 then running a local upgrade with 1.2 and I notice I can no longer specify a share other than media and any sub-directory does not appear to stay either. If the directory does not exist I get a message saying its created but the AddOn just shows the share media with no directory. Is this the way things are now?

Andy :?
User avatar
athomson
Advanced ReadyNAS User
 
Posts: 110
Joined: Mon Jun 11, 2007 6:55 am
Location: Bucks., UK
ReadyNAS: NV+

Re: BitTorrent service problems

Postby chirpa » Tue Mar 25, 2008 3:41 pm

Install the 1.3 addon that is listed there now.
User avatar
chirpa
Jedi Council Alumni
 
Posts: 15491
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: BitTorrent service problems

Postby athomson » Wed Mar 26, 2008 1:28 am

I removed 1.2 and updated with 1.3, I was able to to set a directory in the media share. When I get home this evening I will see if it survives a power off/on schedule.

Edit: Just got home and the interface on port 8080 is fine and the download I started last night is still going. So things seem OK now ... thanks for the update.

Andy :)
User avatar
athomson
Advanced ReadyNAS User
 
Posts: 110
Joined: Mon Jun 11, 2007 6:55 am
Location: Bucks., UK
ReadyNAS: NV+

Re: BitTorrent service problems

Postby athomson » Wed Mar 26, 2008 12:21 pm

Its up to its old tricks again. Not updating then loosing connection. Now I have stopped the service, with no error according to the log I cannot start it again.

Andy :?
User avatar
athomson
Advanced ReadyNAS User
 
Posts: 110
Joined: Mon Jun 11, 2007 6:55 am
Location: Bucks., UK
ReadyNAS: NV+

Re: BitTorrent service problems

Postby chirpa » Wed Mar 26, 2008 1:05 pm

athomson wrote:Not updating then loosing connection.
Can you expand on this a bit more?
User avatar
chirpa
Jedi Council Alumni
 
Posts: 15491
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: BitTorrent service problems

Postby athomson » Wed Mar 26, 2008 1:22 pm

On the download manager screen on port 8080. The upload, download and time estimate values stop being updated for five or more seconds. So I click on settings to see if I can refresh the screen that way. A requester pops up saying connection lost with a retry button, but pressing the button never seems to help. I end up closing the window and going through the process of stopping and starting the service as re-opening the download manager opens a blank window.

Andy :?
User avatar
athomson
Advanced ReadyNAS User
 
Posts: 110
Joined: Mon Jun 11, 2007 6:55 am
Location: Bucks., UK
ReadyNAS: NV+

Re: BitTorrent service problems

Postby chirpa » Wed Mar 26, 2008 1:26 pm

What browser/version, and do you leave this window open during the scheduled power off?
User avatar
chirpa
Jedi Council Alumni
 
Posts: 15491
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: BitTorrent service problems

Postby athomson » Wed Mar 26, 2008 1:41 pm

I was using FF 2.0.0.12 until today when I upgraded to .13. I close my PC down and power off in the morning before the NAS is scheduled to go off. Then the NAS comes back up before I get home and power on my PC. So the the download manager screen is always closed when the NAS gets powered off. Over the last cople of days I only open the download manager for 30 seconds or so at a time, I use to leave the window open all the while my PC was on.

Andy :?
User avatar
athomson
Advanced ReadyNAS User
 
Posts: 110
Joined: Mon Jun 11, 2007 6:55 am
Location: Bucks., UK
ReadyNAS: NV+

Re: BitTorrent service problems

Postby yooden » Thu Mar 27, 2008 1:40 am

Just a report: I lost connections to Bittorrent, apparently due to a suicidal BT server. Restarting the server (as pointed out above) did the trick, the downloads are active again.
ReadyNAS NV+
RAIDiator 4.01c1-p1
User avatar
yooden
Advanced ReadyNAS User
 
Posts: 107
Joined: Tue Jan 01, 2008 9:54 am
ReadyNAS: NV+

Re: BitTorrent service problems

Postby athomson » Thu Mar 27, 2008 6:46 am

Yes, I can stop then start the service and it works again for a random amount of time. The problem is the download manager screen stops updating or looses connection at odd times for no apparent reason.

Andy :?
User avatar
athomson
Advanced ReadyNAS User
 
Posts: 110
Joined: Mon Jun 11, 2007 6:55 am
Location: Bucks., UK
ReadyNAS: NV+

PreviousNext

Return to BitTorrent



Who is online

Users browsing this forum: No registered users and 0 guests