OpenWrt Forum Archive

Topic: Transmission says "Unable to save resume file: bad address"

The content of this topic has been archived on 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have setup Transmission on my Ravpower device [1] that borrows internet from another wifi [2]. The storage is microSD card that's formatted to ext4.

http://i.imgur.com/Tu4EeyH.png

It downloads fine when I click on "Resume now" for the torrent. Just that this message appears intermittently and pauses the downloads. How do I fix this?

This is my /etc/config/transmission:

root@OpenWrt:~# cat /etc/config/transmission 
config transmission
        option enabled 1 
        option config_dir '/mnt/downloads/.config'
        #option user 'nobody'
        option alt_speed_down 50
        option alt_speed_enabled false
        option alt_speed_time_begin  540
        option alt_speed_time_day 127
        option alt_speed_time_enabled false
        option alt_speed_time_end 1020
        option alt_speed_up 50
        option bind_address_ipv4 '0.0.0.0'
        option bind_address_ipv6 '::'
        option blocklist_enabled false
        option blocklist_url ''
        option cache_size_mb 2
        option dht_enabled true
        option download_dir '/mnt/downloads/'
        option download_queue_enabled true
        option download_queue_size 4
        option encryption 1
        option idle_seeding_limit 30
        option idle_seeding_limit_enabled false
        option incomplete_dir '/mnt/downloads/incomplete'
        option incomplete_dir_enabled false
        option lazy_bitfield_enabled true
        option lpd_enabled false
        option message_level 1
        option peer_congestion_algorithm ''
        option peer_limit_global 240
        option peer_limit_per_torrent 60
        option peer_port 51413
        option peer_port_random_high 65535
        option peer_port_random_low 49152
        option peer_port_random_on_start false
        option peer_socket_tos 'default'
        option pex_enabled true
        option port_forwarding_enabled true
        option preallocation 1
        option prefetch_enabled true
        option queue_stalled_enabled true
        option queue_stalled_minutes 30
        option ratio_limit 2.0000
        option ratio_limit_enabled false
        option rename_partial_files true
        option rpc_authentication_required false
        option rpc_bind_address '0.0.0.0'
        option rpc_enabled true
        option rpc_password ''
        option rpc_port 9091
        option rpc_url '/transmission/'
        option rpc_username ''
        option rpc_whitelist '127.0.0.1,192.168.1.*'
        option rpc_whitelist_enabled true
        option scrape_paused_torrents_enabled true
        option script_torrent_done_enabled false
        option script_torrent_done_filename ''
        option seed_queue_enabled false
        option seed_queue_size 10
        option speed_limit_down 100
        option speed_limit_down_enabled false
        option speed_limit_up 20
        option speed_limit_up_enabled false
        option start_added_torrents true
        option trash_original_torrent_files false
        option umask 18
        option upload_slots_per_torrent 14
        option utp_enabled true
        option scrape_paused_torrents true
        option watch_dir_enabled false
        option watch_dir ''

These are my mounts:

http://i.imgur.com/Pxwm5la.png

I googled my issue and closest report I found was in another language:
https://translate.google.co.in/translat … rev=search

Could this be something to do with permissions of the .config directory?

root@OpenWrt:/mnt/downloads/.config# ls -la -R
.:
drwxr-xr-x    5 root     root          4096 Mar 24 17:52 .
drwxr-xr-x    4 root     root          4096 Mar 24 17:45 ..
drwxr-xr-x    2 root     root          4096 Mar 24 17:40 blocklists
-rw-------    1 root     root           580 Mar 25 04:03 dht.dat
drwxr-xr-x    2 root     root          4096 Mar 24 17:46 resume
-rw-------    1 root     root          2330 Mar 24 17:40 settings.json
-rw-------    1 root     root           150 Mar 24 17:52 stats.json
drwxr-xr-x    2 root     root          4096 Mar 24 17:46 torrents

./blocklists:
drwxr-xr-x    2 root     root          4096 Mar 24 17:40 .
drwxr-xr-x    5 root     root          4096 Mar 24 17:52 ..

./resume:
drwxr-xr-x    2 root     root          4096 Mar 24 17:46 .
drwxr-xr-x    5 root     root          4096 Mar 24 17:52 ..
-rw-------    1 root     root        374243 Mar 24 17:46 MASH - The Complete Collection.dd73d819436cf5c7.resume

./torrents:
drwxr-xr-x    2 root     root          4096 Mar 24 17:46 .
drwxr-xr-x    5 root     root          4096 Mar 24 17:52 ..
-rw-------    1 root     root        248985 Mar 24 17:46 MASH - The Complete Collection.dd73d819436cf5c7.torrent

I don't know what the default permissions on config dir should, can someone help me out here, please?

[1] https://wiki.openwrt.org/toh/ravpower/rp-wd02
[2] https://forum.openwrt.org/viewtopic.php?id=70288

(Last edited by sindhus on 25 Mar 2017, 05:20)

I uninstalled Transmission, deleted the old config file, rebooted, installed again, configured correctly and restarted transmission. So far everything seems to be working smoothly smile

I uninstalled Transmission, deleted the old config file, rebooted, installed again, configured correctly and restarted transmission. So far everything seems to be working smoothly smile

The problem has re-occurred sad

Did you found a solution?

After tweaking my Transmission config file I was having the same problem. It was running OK for much more than a year.

Raising/reverting the "mem_percentage" option fixed the problem. Even if Transmission doesn't get past the mem_percentage value I had set (20), it seems to trigger this error "Unable to save resume file: bad address".
Obviously, setting this too low will make the kernel to kill Transmission every time it uses more memory than the value set.

The discussion might have continued from here.