What's new

Transmission doesn't start on reboot

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

alex-ks

Occasional Visitor
Hello
I set up transmission by this article: https://github.com/RMerl/asuswrt-merlin/wiki/Installing-Transmission-through-Entware
I have default asuswrt firmware and Asus ac87u.
Everything works fine after setting up, but when I reboot my router, transmission daemon doesn't start automatically.
When I go to http://router.asus.com:9091/transmission/ I see message:

Connection Failed
Could not connect to the server. You may need to reload the page to reconnect.


If I ssh to my router and run:

/opt/etc/init.d/S88transmission start

everything works well.
Any ideas how to make it start automatically on reboot?
 
Last edited:
On which router and firmware release are you doing this? :rolleyes:
Did you put the start of Transmission into some kind of "autostart" - e.g. post-mount user script on Merlin's firmware would be the place to go... :cool:
 
Asus AC87U Firmware Version:3.0.0.4.380_7743
I just set up it as described there: https://github.com/RMerl/asuswrt-merlin/wiki/Installing-Transmission-through-Entware
They say:

Everything is now configured. You can manually start it immediately (it will automatically start at boot time):
/jffs/scripts/firewall-start
/opt/etc/init.d/S88transmission start


So I assume it should autostart?

In /jffs/scripts I have services-start file with this content:

#!/bin/sh
sleep 20
/opt/etc/init.d/rc.unslung start
 
Last edited:
Do you know if standard firmware has some autoload file where i can put transmission start? A bit scary to install other firmwares, as my router seems works not very well on all of them except standard one (dlna disappears afters 20 mins)
 
Do you know if standard firmware has some autoload file where i can put transmission start? A bit scary to install other firmwares, as my router seems works not very well on all of them except standard one (dlna disappears afters 20 mins)
Almost nothing will autostart after a reboot from the linked Transmission install page.
Standard Asus firmware misses the hooks and the ability to run custom scripts, including cron jobs.
I bet not even Entware is started when you reboot.

Edit: Entware seems to start. I wonder how?
 
Are you sure you run stock Asus firmware?
 
Not 100% sure (as I returned this router to the store and they reinstalled firmware to fix issue with dlna), but yesterday I updated firmware from asus menu, and it's now: 3.0.0.4.380_7743-g2cf84e9
 
Not 100% sure (as I returned this router to the store and they reinstalled firmware to fix issue with dlna), but yesterday I updated firmware from asus menu, and it's now: 3.0.0.4.380_7743-g2cf84e9
OK, does the Syslog say anything about userscrips startinf, like "running /jffs/scripts/firewall-start" or so when rebooting?
 
No. Here is the log:
Code:
ct 29 15:13:31 rc_service: ntp 885:notify_rc restart_upnp
Oct 29 15:13:31 miniupnpd[893]: shutting down MiniUPnPd
Oct 29 15:13:32 miniupnpd[930]: version 1.9 started
Oct 29 15:13:32 miniupnpd[930]: HTTP listening on port 43934
Oct 29 15:13:32 miniupnpd[930]: Listening for NAT-PMP/PCP traffic on port 5351
Oct 29 15:13:32 rc_service: ntp 885:notify_rc restart_diskmon
Oct 29 15:13:32 disk_monitor: Finish
Oct 29 15:13:33 ddns update: connected to nwsrv-ns1.asus.com (103.10.4.108) on port 80.
Oct 29 15:13:34 disk monitor: be idle
Oct 29 15:13:34 ddns update: Asus update entry:: return: HTTP/1.1 200 OK^M Date: Sun, 29 Oct 2017 12:13:34 GMT^M Server: Apache^M X-Powered-By: PHP/5.6.30^M Content-Length: 0^M Connection: close^M Content-Type: text/html; charset=UTF-8^M ^M
Oct 29 15:13:34 ddns update: retval= 0, ddns_return_code (,200)
Oct 29 15:13:34 ddns update: asusddns_update: 0
Oct 29 15:13:34 ddns: ddns update ok
Oct 29 15:13:36 kernel: * Make sure sizeof(struct sw_struct)=160 is consistent
Oct 29 15:13:36 kernel: sizeof forward param = 160
Oct 29 15:13:40 rc_service: udhcpc 570:notify_rc start_firewall
Oct 29 15:13:40 dhcp client: bound 46.216.54.20 via 46.216.0.1 during 600 seconds.
Oct 29 15:13:41 miniupnpd[930]: shutting down MiniUPnPd
Oct 29 15:13:41 start_nat_rules: apply the nat_rules(/tmp/nat_rules_eth0_eth0)!
Oct 29 15:13:42 miniupnpd[1062]: version 1.9 started
Oct 29 15:13:42 miniupnpd[1062]: HTTP listening on port 40129
Oct 29 15:13:42 miniupnpd[1062]: Listening for NAT-PMP/PCP traffic on port 5351
Oct 29 15:13:52 qtn: bootcfg.tgz exists
Oct 29 15:13:58 crond[474]: time disparity of 1181533 minutes detected
Oct 29 15:14:27 asusware: re-mount partition /dev/sda1...
Oct 29 15:14:27 disk monitor: re-mount partition
Oct 29 15:14:27 usb: USB /dev/sda1(ntfs) failed to mount At the first try!
Oct 29 15:14:27 usb: USB ntfs fs at /dev/sda1 mounted on /tmp/mnt/Seagate_Backup_Plus_Drive.
Oct 29 15:14:27 asusware: done.
Oct 29 15:14:27 disk monitor: done
Oct 29 15:14:29 rc_service: hotplug 850:notify_rc restart_nasapps
Oct 29 15:14:29 iTunes: daemon is stoped
Oct 29 15:14:29 FTP Server: daemon is stoped
Oct 29 15:14:30 Samba Server: smb daemon is stoped
Oct 29 15:14:30 kernel: gro disabled
Oct 29 15:14:30 Timemachine: daemon is stoped
Oct 29 15:14:30 miniupnpd[1062]: shutting down MiniUPnPd
Oct 29 15:14:30 kernel: gro enabled with interval 2
Oct 29 15:14:31 Samba Server: daemon is started
Oct 29 15:14:31 miniupnpd[1318]: version 1.9 started
Oct 29 15:14:31 miniupnpd[1318]: HTTP listening on port 45748
Oct 29 15:14:31 miniupnpd[1318]: Listening for NAT-PMP/PCP traffic on port 5351
Oct 29 15:19:48 dropbear[2049]: Password auth succeeded for 'admin' from 192.168.1.120:59418
 
Let me check a few things here first.
 
You say you enter the commands trough SSH.
AFAIK there is no SSH daemon, at least not on my RT-AC66U on stock firmware.

Installing Entware works through Telnet if you know how to do it but it does not load after a reboot.

Can you post the output of, substituting replace with proc:
Code:
cat /replace/version
 
Not 100% sure (as I returned this router to the store and they reinstalled firmware to fix issue with dlna), but yesterday I updated firmware from asus menu, and it's now: 3.0.0.4.380_7743-g2cf84e9
Maybe the setup in this very old posting from @ryzhov_al works still on stock firmware... :rolleyes:
 
cat: can't open '/replace/version': No such file or directory
You have to REPLACE the replace string with proc.
Posting the command as it should be would trigger Cloudfare's (stupid) protection.
 
You have to REPLACE the replace string with proc.
Posting the command as it should be would trigger Cloudfare's (stupid) protection.
Ah.. Ok))
Here is it:
Linux version 2.6.36.4brcmarm (root@asus) (gcc version 4.5.3 (Buildroot 2012.02) ) #1 SMP PREEMPT Thu Jun 1 23:49:59 CST 2017
alex@(none):/tmp/home/root#
 
Ah.. Ok))
Here is it:
Linux version 2.6.36.4brcmarm (root@asus) (gcc version 4.5.3 (Buildroot 2012.02) ) #1 SMP PREEMPT Thu Jun 1 23:49:59 CST 2017
alex@(none):/tmp/home/root#
Thanks, that's an Asus stock firmware, no doubt.
I still can't wrap my head around how Entware would start.
 
Maybe the setup in this very old posting from @ryzhov_al works still on stock firmware... :rolleyes:
Finally I had the time to look into this: I recall that I was using longtime ago scripts in NVRAM to recognize USB devices on Asus stock firmware...

chief@RT-AC87U:/tmp/home/root# nvram show | grep mount
script_usbmount=
script_usbumount=


Via this NVRAM variables you can call a script on the /JFFS partition (nowadays enabled by standard firmware also) to start entware and transmission... :p
It should look something like this:
nvram set script_usbmount="/jffs/scripts/mount-usb.sh
and
nvram set script_usbumount="/jffs/scripts/unmount-usb.sh

In the mount script you need to check which USB partition is mounted and start Entware (which will start Transmission).
In the un-mount script you need to stop Transmission/Entware before the USB partition is unmounted.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top