Daemon 2.83 (14283) doesn't resume torrents after autostart

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Emil_Teofanov
Posts: 3
Joined: Fri May 15, 2015 8:08 pm

Daemon 2.83 (14283) doesn't resume torrents after autostart

Post by Emil_Teofanov »

First of all, thank you developers! Transmission is a wonderful BT client.

I run the daemon 2,83 on DreamBox sat-receiver under Enigma2 1,6 (the latest official release from Dream Multimedia) and everything works (almost) perfectly. The only problem is that Transmission doesn't resume the torrents after autostart.

I've made a bootlog, and it appears Transmission is starting normally - after the network is up and running:

Code: Select all

. . .
udhcpc (v1.15.3) started
Sending discover...
Sending select for 192.168.1.201...
Lease of 192.168.1.201 obtained, lease time 25200
adding dns 192.168.1.1
adding dns 0.0.0.0
done.
[4294709.347000] 5135 ms: 46 Starting /etc/rcS.d/S40networking...

INIT: Entering runlevel: 3

Starting system message bus: dbus.
starting gdaemon... done.
Starting Dropbear SSH server: dropbear.
starting Busybox Periodic Command Scheduler: crond... done.
crond[694]: chdir(/etc/cron/crontabs): No such file or directory

Starting internet superserver: inetd.
Starting syslogd/klogd: done
* starting FTP Server: vsftpd... done.
Starting automounter: done.
 * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
[A[74G[ ok ]
starting transmission-daemon... 
--------------------------------------
Transmission Started !!!
Open your browser at http://192.168.1.201:9091
--------------------------------------
. . .
But the torrents are not resumed. Transmission just stays in the memory enjoying the life, and doing nothing. :-) The web interface is working, the Remote GUI also connects without problem, but there is not a single torrent visible.
And when I restart Transmission manually, everything is OK:

Code: Select all

Console: executing in run 0  the command: /etc/init.d/transmissiond restart
This is the script from etc/init.d/transmissiond

Code: Select all

#!/bin/sh

# ----- CONFIGURATION -----

LINE="--------------------------------------"
TRANSMISSION_ON=0
NAME="transmission-daemon"
DAEMON="/usr/bin/nice -n 9 /usr/bin/transmission-daemon"
DIRECTORY="/hdd/transmission"
RPC_PORT=9091
DOWNLOAD_DIR="/hdd/movie"
CONFIG_DIR="/hdd/transmission/config"
WATCH_DIR="/hdd/transmission/watch"
USER="root"
PASSWORD="dreambox"
ARGS="-C -g $CONFIG_DIR -a *.*.*.* -w $DOWNLOAD_DIR -p $RPC_PORT -t -u $USER -v $PASSWORD"
INET_ADDR=`awk '/address/{print$2}' /etc/network/interfaces`
PATH=/usr/sbin:/usr/bin:/sbin:/bin
TRANSMISSION_WEB_HOME="/usr/share/transmission/web/"

# ----- END OF CONFIGURATION -----

if [ ! -d $DIRECTORY ] ; then mkdir $DIRECTORY; fi
if [ ! -d $DOWNLOAD_DIR ] ; then mkdir $DOWNLOAD_DIR; fi
if [ ! -d $CONFIG_DIR ] ; then mkdir $CONFIG_DIR; fi
if [ ! -d $WATCH_DIR ] ; then mkdir $WATCH_DIR; fi


case $1 in
	start)
		echo -n "starting $NAME... "
		echo
		start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS 
		sleep 2
		echo
		echo $LINE
		echo "Transmission Started !!!"
		echo "Open your browser at http://$INET_ADDR:9091"
		echo $LINE
		echo
	;;
        stop)
		echo
		echo -n "stopping $NAME... "
		killall $NAME
		echo "done."
	;;
	restart)
		echo
		echo -n "restarting $NAME... "
		$0 stop
		sleep 5
		$0 start
		echo
	;;
        autostart | enable)
		echo
        	update-rc.d transmissiond defaults 99
		sleep 2
		echo
	;;
        noautostart | disable)
		echo
        	update-rc.d -f transmissiond remove
		sleep 2
		echo
	;;

	*)
	echo " "
	echo "Options: $0 {start|restart|stop|enable|disable}"
	echo " "
esac

exit 0
Any ideas how to make Transmission work after autostart?

Thank you!

Note:
I am complete Linux rookie - I know ~5 commands, how to open telnet, how to record bootlog, and that's all.
Emil_Teofanov
Posts: 3
Joined: Fri May 15, 2015 8:08 pm

Re: Daemon 2.83 (14283) doesn't resume torrents after autostart

Post by Emil_Teofanov »

Thank you x190 for the swift reply!

EDIT:
I've discovered what is the problem:
Transmission starts before the harddisk is mounted!

Line 332 from the bootlog: mount: mounting /dev/disk/by-uui[4294681.047000] 182 ms: 12 d/06345976-8b14-4e2d-b0f7-d0bd5c0adbc7 on /media/hdd failed: No such device
Line 523 from the bootlog: starting transmission-daemon...
Line 642 from the bootlog: [setupConfigEntries] initial_call for stored uuid: 06345976-8b14-4e2d-b0f7-d0bd5c0adbc7 {'mountpoint': '/media/hdd', 'device_info': 'SATA', 'device_description': 'ATA-WDC WD20EADS-00R (2000.398 GB)', 'enabled': 'true'}

How to fix this?
Post Reply