Setting the ratio-limit value in settings.json

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
wouzs
Posts: 4
Joined: Wed Aug 05, 2009 12:08 am

Setting the ratio-limit value in settings.json

Post by wouzs »

I am running transmission-daemon 1.73 on OpenWRT (on a Asus WL-500gP). Everything works great. but there is one problem. I would like to setup the ratio-limit value to stop the torrents after some time. When I start transmission-daemon for the first time, and it creates the settings.json file the ratio-limit value is automatically set to 2.0000. But after a second run the ratio-limit becomes a very strange value: 721207296.0000

I also tried the same on an Ubuntu 9.04 machine, but I don't have the issue there. Can anyone help me? Maybe I am missing an important library on the OpenWRT box or something like that. But again: the rest of Transmission works great, this is the only issue.
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Setting the ratio-limit value in settings.json

Post by Jordan »

wouze: I can't reproduce this, but if it's a repeatable problem I'd like to get it cleared up. Could you post the exact steps for me to follow to make this bug happen?
wouzs
Posts: 4
Joined: Wed Aug 05, 2009 12:08 am

Re: Setting the ratio-limit value in settings.json

Post by wouzs »

Yes! I use OpenWRT Kamikaze 8.09.1 on a Asus WL-500gP. Kamikaze 8.09.1 includes uClibc 0.9.29.
I used the following makefile to cross-compile transmission: https://dev.openwrt.org/browser/package ... n/Makefile
I only changed the version number from 1.72 to 1.73 and updated the MD5SUM. If you want I can send you the ipk packages it produced. I also compiled sudo because I want to run transmission as a different user, but I experience the same problems when I run transmission as root. To make it very clear how to reproduce the problem, I think it's best to post some console output, running transmission as root (not the way I use it, but the error also occurs). I will also show the packages I have installed:

Code: Select all

gebruiker@pc-huiskamer:~$ ssh root@192.168.1.2
root@192.168.1.2's password: 


BusyBox v1.11.2 (2009-05-28 19:38:17 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09.1, r16278) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@Harry:~# opkg list_installed
base-files-brcm-2.4 - 14.1-r16278 - 
bridge - 1.0.6-1 - 
busybox - 1.11.2-2.1 - 
dnsmasq - 2.47-3 - 
dropbear - 0.51-2 - 
e2fsprogs - 1.40.11-1 - 
firewall - 1-1.1 - 
iptables - 1.3.8-4.1 - 
iptables-mod-conntrack - 1.3.8-4.1 - 
iptables-mod-nat - 1.3.8-4.1 - 
kernel - 2.4.35.4-brcm-2.4-1 - 
kmod-brcm-wl - 2.4.35.4+4.150.10.5.3-brcm-2.4-3.1 - 
kmod-diag - 2.4.35.4-brcm-2.4-4.1 - 
kmod-fs-ext3 - 2.4.35.4-brcm-2.4-1 - 
kmod-ipt-conntrack - 2.4.35.4-brcm-2.4-1 - 
kmod-ipt-core - 2.4.35.4-brcm-2.4-1 - 
kmod-ipt-nat - 2.4.35.4-brcm-2.4-1 - 
kmod-ipt-nathelper - 2.4.35.4-brcm-2.4-1 - 
kmod-ppp - 2.4.35.4-brcm-2.4-1 - 
kmod-pppoe - 2.4.35.4-brcm-2.4-1 - 
kmod-scsi-core - 2.4.35.4-brcm-2.4-1 - 
kmod-switch - 2.4.35.4-brcm-2.4-1.1 - 
kmod-usb-core - 2.4.35.4-brcm-2.4-1 - 
kmod-usb-printer - 2.4.35.4-brcm-2.4-1 - 
kmod-usb-storage - 2.4.35.4-brcm-2.4-1 - 
kmod-usb-uhci - 2.4.35.4-brcm-2.4-1 - 
kmod-usb2 - 2.4.35.4-brcm-2.4-1 - 
kmod-wlcompat - 2.4.35.4+4.150.10.5.3-brcm-2.4-3.1 - 
libblkid - 1.40.11-1 - 
libcurl - 7.17.1-1 - 
libext2fs - 1.40.11-1 - 
libgcc - 3.4.6-14.1 - 
libintl - 0.16.1-4 - 
liblua - 5.1.4-2 - 
libncurses - 5.6-1 - 
libopenssl - 0.9.8i-3.1 - 
libpcre - 7.6-2 - 
libpthread - 0.9.29-14.1 - 
libsqlite3 - 3.5.9-1 - 
libuci - 0.7.3-1 - 
libuci-lua - 0.7.3-1 - 
libuuid - 1.40.11-1 - 
libxml2 - 2.7.2-3 - 
lighttpd - 1.4.20-3 - 
lua - 5.1.4-2 - 
luci-admin-core - 0.8.7-1 - 
luci-admin-full - 0.8.7-1 - 
luci-admin-mini - 0.8.7-1 - 
luci-app-ntpc - 0.8.7-1 - 
luci-app-p910nd - 0.8.7-1 - 
luci-app-samba - 0.8.7-1 - 
luci-cbi - 0.8.7-1 - 
luci-core - 0.8.7-1 - 
luci-http - 0.8.7-1 - 
luci-i18n-english - 0.8.7-1 - 
luci-ipkg - 0.8.7-1 - 
luci-sgi-cgi - 0.8.7-1 - 
luci-sys - 0.8.7-1 - 
luci-theme-base - 0.8.7-1 - 
luci-theme-openwrt - 0.8.7-1 - 
luci-uci - 0.8.7-1 - 
luci-uvl - 0.8.7-1 - 
luci-web - 0.8.7-1 - 
mtd - 8 - 
nano - 2.0.7-1 - 
nas - 4.150.10.5.3-3.1 - 
ntpclient - 2007_365-1 - 
nvram - 1 - 
opkg - 4564-3.1 - 
p910nd - 0.92-1 - 
ppp - 2.4.3-11.1 - 
ppp-mod-pppoe - 2.4.3-11.1 - 
samba3 - 3.0.24-2 - 
sudo - 1.7.2-1 - 
swap-utils - 2.13.0.1-2 - 
transmission-daemon - 1.73-1 - 
transmission-web - 1.73-1 - 
uci - 0.7.3-1 - 
uclibc - 0.9.29-14.1 - 
vsftpd - 2.0.6-2 - 
wireless-tools - 29-2 - 
wlc - 4.150.10.5.3-3.1 - 
zlib - 1.2.3-5 - 
root@Harry:~# cd ~/.config
root@Harry:~/.config# rm -R transmission-daemon
rm: cannot remove 'transmission-daemon': No such file or directory
root@Harry:~/.config# transmission-daemon
root@Harry:~/.config# ls -l
drwxr-xr-x    1 root     root            0 Aug 14 17:26 transmission-daemon
root@Harry:~/.config# cd transmission-daemon
root@Harry:~/.config/transmission-daemon# killall transmission-daemon
root@Harry:~/.config/transmission-daemon# cat settings.json | grep ratio
    "ratio-limit": 2.0000, 
    "ratio-limit-enabled": false, 
root@Harry:~/.config/transmission-daemon# ps aux | grep transmission
root@Harry:~/.config/transmission-daemon# transmission-daemon
root@Harry:~/.config/transmission-daemon# ps aux | grep transmission
 2485 root      5988 S    transmission-daemon 
 2486 root      5988 S    transmission-daemon 
 2487 root      5988 S    transmission-daemon 
root@Harry:~/.config/transmission-daemon# cat settings.json | grep ratio
    "ratio-limit": 2.0000, 
    "ratio-limit-enabled": false, 
root@Harry:~/.config/transmission-daemon# killall transmission-daemon
root@Harry:~/.config/transmission-daemon# ps aux | grep transmission
root@Harry:~/.config/transmission-daemon# cat settings.json | grep ratio
    "ratio-limit": 721207296.0000, 
    "ratio-limit-enabled": false, 
root@Harry:~/.config/transmission-daemon# exit
Connection to 192.168.1.2 closed.
I hope this helps, if you need more information just ask!
wouzs
Posts: 4
Joined: Wed Aug 05, 2009 12:08 am

Re: Setting the ratio-limit value in settings.json

Post by wouzs »

As soon as I saw Transmission 1.74 was released, I compiled it to check if the bug is fixed. But the problem persists... only the value of ratio-limit changed.
Ratio-limit now becomes 214748.3647. The way to reproduce the error is exactly the same.
Post Reply