Transmission is not listening at boot

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
remyd59
Posts: 1
Joined: Tue Nov 17, 2015 7:35 am

Transmission is not listening at boot

Post by remyd59 »

Hello,

I have a problem with my transmission-daemon on linux (debian and raspbian).

The problem is simple, after the boot, the daemon is started:

Code: Select all

# uptime ; echo " "; /etc/init.d/transmission-daemon status; echo " " ;echo netstat ;netstat -an | grep 9091
 17:54:04 up 9 min,  1 user,  load average: 0,00, 0,03, 0,05
 
● transmission-daemon.service - Transmission BitTorrent Daemon
   Loaded: loaded (/lib/systemd/system/transmission-daemon.service; enabled)
   Active: active (running) since dim. 2015-11-08 17:44:59 CET; 9min ago
 Main PID: 444 (transmission-da)
   Status: "Idle."
   CGroup: /system.slice/transmission-daemon.service
           └─444 /usr/bin/transmission-daemon -f --log-error

nov. 08 17:44:59 PI systemd[1]: Started Transmission BitTorrent Daemon.
nov. 08 17:45:01 PI transmission-daemon[444]: [2015-11-08 17:45:01.564 CET] UDP Failed to set receive buffer: requested 4194304, got 327680 (tr-udp.c:78)
nov. 08 17:45:01 PI transmission-daemon[444]: [2015-11-08 17:45:01.564 CET] UDP Failed to set send buffer: requested 1048576, got 327680 (tr-udp.c:89)
 
netstat



but this one is not listening on port 9091. I have to restart it manually and then:

Code: Select all

# uptime; /etc/init.d/transmission-daemon restart; echo " "; /etc/init.d/transmission-daemon status; echo " " ;echo netstat ;netstat -an | grep 9091
 17:55:02 up 10 min,  1 user,  load average: 0,00, 0,03, 0,05
[ ok ] Restarting transmission-daemon (via systemctl): transmission-daemon.service.
 
● transmission-daemon.service - Transmission BitTorrent Daemon
   Loaded: loaded (/lib/systemd/system/transmission-daemon.service; enabled)
   Active: active (running) since dim. 2015-11-08 17:55:02 CET; 180ms ago
 Main PID: 787 (transmission-da)
   CGroup: /system.slice/transmission-daemon.service
           └─787 /usr/bin/transmission-daemon -f --log-error

nov. 08 17:55:02 PI systemd[1]: Started Transmission BitTorrent Daemon.
 
netstat
tcp        0      0 0.0.0.0:9091            0.0.0.0:*               LISTEN   

The transmission version is 2.84(14307).

Thank you for your help.
dentex
Posts: 4
Joined: Thu Jan 07, 2016 1:39 pm

Re: Transmission is not listening at boot

Post by dentex »

Same here.
Has been hours now, but I can't find a solution.

@remid59
Any news from your side?

Thanks
mike.dld
Transmission Developer
Posts: 306
Joined: Wed Dec 25, 2013 10:56 pm

Re: Transmission is not listening at boot

Post by mike.dld »

dentex
Posts: 4
Joined: Thu Jan 07, 2016 1:39 pm

Re: Transmission is not listening at boot

Post by dentex »

I see...
Thanks.
dentex
Posts: 4
Joined: Thu Jan 07, 2016 1:39 pm

Re: Transmission is not listening at boot

Post by dentex »

I'm using this ugly "sleep" trick.
I know, it's awful, but it works:

Code: Select all

sudo nano /etc/init.d/transmission-daemon-reload
Put inside:
#!/bin/sh
### BEGIN INIT INFO
# Provides: transmission-daemon-reload
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Reload the transmission-daemon
# Description: Reload the transmission-daemon at boot.
### END INIT INFO

NAME=transmission-daemon-reload

sleep 10
service transmission-daemon reload
Save the script and make it executable.

Then do:

Code: Select all

sudo update-rc.d transmission-daemon-reload defaults
Reboot and check it.
stofstik
Posts: 1
Joined: Thu Mar 17, 2016 12:40 am

Re: Transmission is not listening at boot

Post by stofstik »

I searched far and wide and came across this post.
The ugly fix worked! Thanks a ton for that!
Nudged me onto a new track. You know how it is.
Found a better fix for Raspbian. (I think...)
Start

Code: Select all

raspi-config

Go to item

Code: Select all

4 Wait for Network at Boot
And select

Code: Select all

Slow Wait for network connection before completing boot
Seems transmission-daemon starts fine now.
Can anyone confirm? Maybe it's just my config, I did not test a fresh Raspbian install.

Cheers!
fuffdaddy
Posts: 1
Joined: Mon Mar 21, 2016 2:05 am

Re: Transmission is not listening at boot

Post by fuffdaddy »

stofstik, I had to join the forum just to thank you for sharing what you had found.

The slow wait config option fixed it for me, after much head scratching here :D

Have a virtual beer on me, or other suitable beverage. ;)
killemov
Posts: 573
Joined: Sat Jul 31, 2010 5:04 pm

Re: Transmission is not listening at boot

Post by killemov »

dentex wrote:I see... Thanks.
The root problem is with systemd and daemons apparently not being able to bind to a port when there is no attached network. init.d script trickery is a very bad workaround. Too bad it was probably the only feasible workaround around.
Post Reply