What's new

[Fork] Asuswrt-Merlin 374.43 LTS releases (Archive)

  • 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!

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?
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.

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.
 
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.

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.

Nope I am not using a USB hub.

And no, I cannot see the above sequence in my logs... the two lines I do see nasapps is:

Code:
rc_service: hotplug 323:notify_rc restart_nasapps
rc_service: waiting "start_firewall" via udhcpc ...

rc_service: skip the event: restart_nasapps.
I use a wd ultra mypassport. 5400rpm with the router.

EDIT: I can also not see any entries with "MediaServer:..."
EDIT 2: Added rc_service: waiting "start_firewall" via udhcpc ...

If I switch off the media server and then switch it back on is when I see the following lines:

Code:
rc_service: httpd 508:notify_rc restart_media
Mar 18 12:04:12 MediaServer: daemon is stopped
Mar 18 12:04:34 rc_service: httpd 508:notify_rc restart_media
Mar 18 12:04:34 MediaServer: daemon is stopped
Mar 18 12:04:34 MediaServer: daemon is started
 
Last edited:
Nope I am not using a USB hub.

And no, I cannot see the above sequence in my logs... the two lines I do see nasapps is:

rc_service: hotplug 323:notify_rc restart_nasapps
rc_service: skip the event: restart_nasapps.

I use a wd ultra mypassport. 5400rpm with the router.

EDIT: I can also not see any entries with "MediaServer:..."
Ahhh......a clue. Now to figure out why it's skipping the restart_nasapps. Is there anything in between the two lines you posted (Can you post the syslog in between those two lines with the timestamps included).

EDIT: Oh...what router? (sorry I must have missed it)
 
Ahhh......a clue. Now to figure out why it's skipping the restart_nasapps. Is there anything in between the two lines you posted (Can you post the syslog in between those two lines with the timestamps included).

EDIT: Oh...what router? (sorry I must have missed it)

Sure John, here's the full log from first instance of nasapps till ntp update:

Code:
Jan  1 05:30:37 rc_service: hotplug 315:notify_rc restart_nasapps
Jan  1 05:30:37 rc_service: waiting "start_firewall" via udhcpc ...
Jan  1 05:30:39 start_nat_rules: (/tmp/nat_rules) cancelled!
Jan  1 05:30:40 rc_service: wanduck 484:notify_rc start_apps_update
Jan  1 05:30:40 rc_service: waiting "start_firewall" via udhcpc ...
Jan  1 05:30:46 start_nat_rules: apply the nat_rules (/tmp/nat_rules_eth0_eth0)!
Jan  1 05:30:46 start_nat_rules: (/tmp/nat_rules_eth0_eth0) success!
Jan  1 05:30:47 kernel: nf_conntrack_rtsp v0.6.21 loading
Jan  1 05:30:47 kernel: nf_nat_rtsp v0.6.21 loading
Jan  1 05:30:47 admin:  sh /opt/S50asuslighttpd.1 firewall-start
Jan  1 05:30:48 rc_service: skip the event: restart_nasapps.
Jan  1 05:30:49 rc_service: udhcpc 606:notify_rc start_upnp
Jan  1 05:30:49 rc_service: waiting "stop_upnp" via udhcpc ...
Jan  1 05:30:50 ddns: clear ddns cache file for server/hostname change
Jan  1 05:30:50 miniupnpd[1114]: HTTP listening on port 36615
Jan  1 05:30:50 miniupnpd[1114]: Listening for NAT-PMP/PCP traffic on port 5351
Jan  1 05:30:51 ddns update: ez-ipupdate: starting...
Jan  1 05:30:51 ddns update: connected to ns1.asuscomm.com (103.10.4.108) on port 80.
Jan  1 05:30:52 ddns update: Asus update entry:: return: HTTP/1.1 200 OK^M Date: Fri, 18 Mar 2016 06:31:05 GMT^M Server: Apache^M Content-Length: 0^M Connection: close^M Content-Type: text/html^M ^M
Jan  1 05:30:52 ddns update: retval= 0, ddns_return_code (,200)
Jan  1 05:30:52 ddns update: asusddns_update: 0
Jan  1 05:30:52 ddns: ddns update ok
Jan  1 05:30:52 rc_service: udhcpc 606:notify_rc start_ntpc
Jan  1 05:30:52 ntp: start NTP update

Its a N66U.

EDIT: Please let me know if you need the whole log from startup to the local master browser bit. Its rather large so I did not post here.
 
Rev B1? What speed processor.....there was also a bug for a while in the base Asus code where it would say the AC68U supported FA mode (but it really doesn't, unless possibly the B1 rev)

Yeah I have option to select FA mode also on 68U. I have it selected, but I guess it wont do anything?
 
The confusion is the problem I am concerned with.
If you read post one it clearly states the released version. Any beta versions John posts a new message with specific links to those particular versions stating BETA. Not sure how that is confusing but......... Anyway nough said on this topic.

In other news, this build is working well on AC66 so far. Nice to see its being kept updated! Much appreciated John.
 
Just a short note of thanks for all the hard work you put into this fork. My N66U (R) has never worked better. Although I'm "New Around Here" when it comes to posting, This is one of the places I check daily just to see what's what. I've been doing so for years and am in awe of all the intelligent, polite and patient members who contribute. Again, Many, many thanks.
 
Finally found it, whit AC66U can reach 350Mbps over WiFi. Previous was 200Mbps whit merlin.
Thanks!
 
Sure John, here's the full log from first instance of nasapps till ntp update:

Code:
Jan  1 05:30:37 rc_service: hotplug 315:notify_rc restart_nasapps
Jan  1 05:30:37 rc_service: waiting "start_firewall" via udhcpc ...
Jan  1 05:30:39 start_nat_rules: (/tmp/nat_rules) cancelled!
Jan  1 05:30:40 rc_service: wanduck 484:notify_rc start_apps_update
Jan  1 05:30:40 rc_service: waiting "start_firewall" via udhcpc ...
Jan  1 05:30:46 start_nat_rules: apply the nat_rules (/tmp/nat_rules_eth0_eth0)!
Jan  1 05:30:46 start_nat_rules: (/tmp/nat_rules_eth0_eth0) success!
Jan  1 05:30:47 kernel: nf_conntrack_rtsp v0.6.21 loading
Jan  1 05:30:47 kernel: nf_nat_rtsp v0.6.21 loading
Jan  1 05:30:47 admin:  sh /opt/S50asuslighttpd.1 firewall-start
Jan  1 05:30:48 rc_service: skip the event: restart_nasapps.
Jan  1 05:30:49 rc_service: udhcpc 606:notify_rc start_upnp
Jan  1 05:30:49 rc_service: waiting "stop_upnp" via udhcpc ...
Jan  1 05:30:50 ddns: clear ddns cache file for server/hostname change
Jan  1 05:30:50 miniupnpd[1114]: HTTP listening on port 36615
Jan  1 05:30:50 miniupnpd[1114]: Listening for NAT-PMP/PCP traffic on port 5351
Jan  1 05:30:51 ddns update: ez-ipupdate: starting...
Jan  1 05:30:51 ddns update: connected to ns1.asuscomm.com (103.10.4.108) on port 80.
Jan  1 05:30:52 ddns update: Asus update entry:: return: HTTP/1.1 200 OK^M Date: Fri, 18 Mar 2016 06:31:05 GMT^M Server: Apache^M Content-Length: 0^M Connection: close^M Content-Type: text/html^M ^M
Jan  1 05:30:52 ddns update: retval= 0, ddns_return_code (,200)
Jan  1 05:30:52 ddns update: asusddns_update: 0
Jan  1 05:30:52 ddns: ddns update ok
Jan  1 05:30:52 rc_service: udhcpc 606:notify_rc start_ntpc
Jan  1 05:30:52 ntp: start NTP update

Its a N66U.

EDIT: Please let me know if you need the whole log from startup to the local master browser bit. Its rather large so I did not post here.

Tried unmounting the disk and rebooting but its still skipping the restart nasapps. :(
 
Tried unmounting the disk and rebooting but its still skipping the restart nasapps. :(
I took a quick look at the code and they REALLY expect to be able to start the nasapps immediately after the mount (they are using a special rc service call with a shortened timeout). I'm still not sure if it's something with the drive delaying things, or other work getting in the way. I'll try and get a test build for you later today that gives it a bit more time before timing out to see if it helps.
 
I took a quick look at the code and they REALLY expect to be able to start the nasapps immediately after the mount (they are using a special rc service call with a shortened timeout). I'm still not sure if it's something with the drive delaying things, or other work getting in the way. I'll try and get a test build for you later today that gives it a bit more time before timing out to see if it helps.

Thanks a lot for your support man... Really want this release to work.
 
What settings "tweaks" do most of you guys do to better improve speed and performance on your routers with John's firmware?
 
I just saw something else.....do you have Download Master installed?
Installed but disabled..

EDIT: also noticing it has stopped asking for login credentials on any browser i login from (and logout from).. Hope there is no exploit that could result from this.
 
Installed but disabled..

EDIT: also noticing it has stopped asking for login credentials on any browser i login from (and logout from).. Hope there is no exploit that could result from this.

If you are up for a test, and not really using DM....can you try uninstalling DM? The code is picking this time to check for any updates to DM, which it does by spawing a script, which could be delaying the start of nasapps.

Not sure what you mean by the logon.....after the first logon attempt, the browser will have cached your logon credentials so it won't ask again until start/stop the browser. AFAIK, it's always been that way.
 
Rev B1? What speed processor.....there was also a bug for a while in the base Asus code where it would say the AC68U supported FA mode (but it really doesn't, unless possibly the B1 rev)

How do I check the revision? the stock processor is 800 mhz but I have it overclocked to 1200mhz.

Code:
CPU Model     ARMv7 Processor rev 0 (v7l)  -  (Cores: 2)
CPU Frequency     1200 MHz
CPU Load Average (1, 5, 15 mins)     0.00,  0.01,  0.05
 
If the stock cl
How do I check the revision? the stock processor is 800 mhz but I have it overclocked to 1200mhz.

Code:
CPU Model     ARMv7 Processor rev 0 (v7l)  -  (Cores: 2)
CPU Frequency     1200 MHz
CPU Load Average (1, 5, 15 mins)     0.00,  0.01,  0.05

If the stock speed is 800MHz, it's an A1 or A2 rev...I'll have to hook up my old 68U to see if it (incorrectly) detects FA mode.
 
If you are up for a test, and not really using DM....can you try uninstalling DM? The code is picking this time to check for any updates to DM, which it does by spawing a script, which could be delaying the start of nasapps.

Not sure what you mean by the logon.....after the first logon attempt, the browser will have cached your logon credentials so it won't ask again until start/stop the browser. AFAIK, it's always been that way.

Yep i would remove that app in a jiffy! Used it a long time back and its just lying there uselessly.

About the login, its even stopped asking for it on my iphone's safari. I dont think this happened before. Anyways will post back soon after i remove dm.
 

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