john9527
Part of the Furniture
I don't have any problems with the Media Server starting (disk is an old, slow 5400 RPM 2.5" drive in a USB powered enclosure, formatted NTFS) or with being able to save the disk scan schedule.I have a problem with the media server... it doesn't start on many reboots, even with the scan on every boot option set to yes.
I can see these in the log upon every reboot:
Jan 1 05:30:13 hotplug[313]: USB ntfs fs at /dev/sda1 mounted on /tmp/mnt/WD_NAS
Jan 1 05:30:14 hotplug[313]: USB partition unmounted from /tmp/mnt/WD_NAS
Jan 1 05:30:15 hotplug[313]: USB /dev/sda1(ntfs) failed to mount at the first try!
Jan 1 05:30:15 kernel: ufsd: use builtin utf8 instead of kernel utf8
Jan 1 05:30:17 kernel: ufsd: sda1 without journal
Jan 1 05:30:17 hotplug[313]: USB ntfs fs at /dev/sda1 mounted on /tmp/mnt/WD_NAS
Don't know if this is what is causing the issue. If i subsequently switch off the media server and switch it on again then it starts up. Any workarounds to delay starting the media server upon boot?
EDIT: Also the scheduled disk scanner when set to anything other than disabled does not stick.
Yep..its quitting on every soft reboot now. I found this https://github.com/RMerl/asuswrt-merlin/wiki/delay-start-of-minidlna-to-wait-for-the-USB-disk-mount to delay starting of the media server. Will it work?
The Media server should be restarting as the disks are detected coming online. The failed to mount at first try message is common and not a problem.
With V17 I added a syslog message for the MediaServer start.....do you see it in the syslog? Prior to the MediaServer start, you should see a sequence like this..the restart_nasapps is what restarts the MediaServer. (My post-mount script checks for my USB3 flash drive coming on-line and sets up a swap file).
Code:
Dec 31 17:00:39 hotplug[627]: USB ntfs fs at /dev/sda1 mounted on /tmp/mnt/Router_Share
Dec 31 17:00:39 custom script: Running /jffs/scripts/post-mount (args: /tmp/mnt/Router_Share)
Dec 31 17:00:39 rc_service: hotplug 627:notify_rc restart_nasapps
Dec 31 17:00:39 rc_service: waiting "restart_nasapps" via ...
...
Dec 31 17:00:42 MediaServer: daemon is stopped
....
Dec 31 17:00:43 MediaServer: daemon is started
Also, are you running with a USB hub attached? If so, please try removing it.