If you drop unbound from the original, do my scripts work? I raised this before with the author, but I'm fairly certain the unbound startup run in a blocking fashion
Ok, stopped unbound startup (in post-mount). Did a reboot - no Addon's tabs at all. Not even the "Addons" left hand column - no way to check the addons....
Then, re-enabled unbound startup but moved all other addons to seperate script file that starts with a sleep 30. Called this script at the end of services-start (ran in the background).
All addons started and all tabs show up.
In snooping through /tmp/syslog.log, I do see lots of prints about lockfiles:
admin@RT-AX88U-26A8:/tmp# grep scMerlin syslog.log
Dec 3 16:23:13 RT-AX88U-26A8 scMerlin: Lock file found (age: 0 seconds)
Dec 3 16:23:21 RT-AX88U-26A8 scMerlin: Lock file found (age: 8 seconds)
Dec 3 16:24:59 RT-AX88U-26A8 scMerlin: NTP synced, scMerlin will now continue
Dec 3 16:28:21 RT-AX88U-26A8 scMerlin: Lock file found (age: 0 seconds)
Dec 3 16:28:36 RT-AX88U-26A8 scMerlin: Lock file found (age: 16 seconds)
Dec 3 16:30:10 RT-AX88U-26A8 scMerlin: NTP synced, scMerlin will now continue
Dec 3 16:35:18 RT-AX88U-26A8 scMerlin: Mounting scMerlin WebUI page as user5.asp
Dec 3 16:40:24 RT-AX88U-26A8 scMerlin: Mounting scMerlin WebUI page as user6.asp
admin@RT-AX88U-26A8:/tmp# grep spdMerlin syslog.log
Dec 3 16:23:13 RT-AX88U-26A8 spdMerlin: Lock file found (age: 0 seconds) - stopping to prevent duplicate runs
Dec 3 16:23:21 RT-AX88U-26A8 spdMerlin: Lock file found (age: 8 seconds) - stopping to prevent duplicate runs
Dec 3 16:25:00 RT-AX88U-26A8 spdMerlin: NTP synced, spdMerlin will now continue
Dec 3 16:28:21 RT-AX88U-26A8 spdMerlin: Lock file found (age: 1 seconds) - stopping to prevent duplicate runs
Dec 3 16:28:36 RT-AX88U-26A8 spdMerlin: Lock file found (age: 16 seconds) - stopping to prevent duplicate runs
Dec 3 16:30:10 RT-AX88U-26A8 spdMerlin: NTP synced, spdMerlin will now continue
Dec 3 16:35:07 RT-AX88U-26A8 spdMerlin: Mounting spdMerlin WebUI page as user4.asp
Dec 3 16:40:12 RT-AX88U-26A8 spdMerlin: Mounting spdMerlin WebUI page as user5.asp
Timing issue? I can try to reduce the sleep if you want.
Ok, stopped unbound startup (in post-mount). Did a reboot - no Addon's tabs at all. Not even the "Addons" left hand column - no way to check the addons....
Then, re-enabled unbound startup but moved all other addons to seperate script file that starts with a sleep 30. Called this script at the end of services-start (ran in the background).
All addons started and all tabs show up.
In snooping through /tmp/syslog.log, I do see lots of prints about lockfiles:
admin@RT-AX88U-26A8:/tmp# grep scMerlin syslog.log
Dec 3 16:23:13 RT-AX88U-26A8 scMerlin: Lock file found (age: 0 seconds)
Dec 3 16:23:21 RT-AX88U-26A8 scMerlin: Lock file found (age: 8 seconds)
Dec 3 16:24:59 RT-AX88U-26A8 scMerlin: NTP synced, scMerlin will now continue
Dec 3 16:28:21 RT-AX88U-26A8 scMerlin: Lock file found (age: 0 seconds)
Dec 3 16:28:36 RT-AX88U-26A8 scMerlin: Lock file found (age: 16 seconds)
Dec 3 16:30:10 RT-AX88U-26A8 scMerlin: NTP synced, scMerlin will now continue
Dec 3 16:35:18 RT-AX88U-26A8 scMerlin: Mounting scMerlin WebUI page as user5.asp
Dec 3 16:40:24 RT-AX88U-26A8 scMerlin: Mounting scMerlin WebUI page as user6.asp
admin@RT-AX88U-26A8:/tmp# grep spdMerlin syslog.log
Dec 3 16:23:13 RT-AX88U-26A8 spdMerlin: Lock file found (age: 0 seconds) - stopping to prevent duplicate runs
Dec 3 16:23:21 RT-AX88U-26A8 spdMerlin: Lock file found (age: 8 seconds) - stopping to prevent duplicate runs
Dec 3 16:25:00 RT-AX88U-26A8 spdMerlin: NTP synced, spdMerlin will now continue
Dec 3 16:28:21 RT-AX88U-26A8 spdMerlin: Lock file found (age: 1 seconds) - stopping to prevent duplicate runs
Dec 3 16:28:36 RT-AX88U-26A8 spdMerlin: Lock file found (age: 16 seconds) - stopping to prevent duplicate runs
Dec 3 16:30:10 RT-AX88U-26A8 spdMerlin: NTP synced, spdMerlin will now continue
Dec 3 16:35:07 RT-AX88U-26A8 spdMerlin: Mounting spdMerlin WebUI page as user4.asp
Dec 3 16:40:12 RT-AX88U-26A8 spdMerlin: Mounting spdMerlin WebUI page as user5.asp
Timing issue? I can try to reduce the sleep if you want.
@JGrana It's interesting there's no message about entware being found, so that suggests it's available after the ntp sync so doesn't have to wait and print a message. I've just fixed that in spdMerlin develop
Can you post a syslog output including spdmerlin, services-start and service-event please? The latter 2 are the only places that call spdmerlin (outside of cron)
It appears services-start is only called once, at least that what my trace shows:
(also note how the output from date looks. Its not until much later that the date/time is correct.
Trace started Sat May 5 01:05:12 DST 2018
Trace complete to: setbashrc
Trace complete to: MountNAS
Trace complete to: rpzupdate
Trace complete to: Update cache
Trace complete to: root-servers
Trace complete to: flexqos
calling delayed addons Sat May 5 01:05:12 DST 2018
Trace completed Sat May 5 01:05:12 DST 2018
Addon Trace started Thu Dec 3 17:15:28 EST 2020
Trace complete to: connmon
Trace complete to: ntpmerlin
Trace complete to: uiScribe
Trace complete to: scmerlin
Trace complete to: spdmerlin
Addon Trace completed Thu Dec 3 17:15:28 EST 2020
As far as moving to post-mount - easy enough for me to try. I already have your scripts setup in a separate file. I will just call it from post-mount (and remove the sleep 30).
It appears services-start is only called once, at least that what my trace shows:
(also note how the output from date looks. Its not until much later that the date/time is correct.
Trace started Sat May 5 01:05:12 DST 2018
Trace complete to: setbashrc
Trace complete to: MountNAS
Trace complete to: rpzupdate
Trace complete to: Update cache
Trace complete to: root-servers
Trace complete to: flexqos
calling delayed addons Sat May 5 01:05:12 DST 2018
Trace completed Sat May 5 01:05:12 DST 2018
Addon Trace started Thu Dec 3 17:15:28 EST 2020
Trace complete to: connmon
Trace complete to: ntpmerlin
Trace complete to: uiScribe
Trace complete to: scmerlin
Trace complete to: spdmerlin
Addon Trace completed Thu Dec 3 17:15:28 EST 2020
As far as moving to post-mount - easy enough for me to try. I already have your scripts setup in a separate file. I will just call it from post-mount (and remove the sleep 30).
I only see one service-start run. I can add some tracing to service-event.
BTW, here is the trace from the successful run
Trace started Sat May 5 01:05:13 DST 2018
Trace complete to: setbashrc
Trace complete to: MountNAS
Trace complete to: rpzupdate
Trace complete to: Update cache
Trace complete to: root-servers
Trace complete to: flexqos
calling delayed addons Sat May 5 01:05:13 DST 2018
Trace completed Sat May 5 01:05:13 DST 2018
Addon Trace started Thu Dec 3 17:41:04 EST 2020
Trace complete to: connmon
Trace complete to: ntpmerlin
Trace complete to: uiScribe
Trace complete to: scmerlin
Trace complete to: spdmerlin
Addon Trace completed Thu Dec 3 17:41:04 EST 2020
One more thing I should have mentioned. When I first started having this problem (moving from Alpha 2 to Alpha 4) the "Addons" on the left column often did not show the wrench and guage icon. Just "Addons". Not sure this is significant but wanted to mention it.
One more thing I should have mentioned. When I first started having this problem (moving from Alpha 2 to Alpha 4) the "Addons" on the left column often did not show the wrench and guage icon. Just "Addons". Not sure this is significant but wanted to mention it.
could be caching - that icon is provided by the shared-jy directory
spdMerlin develop branch now launches from post-mount, and should only run if the partition being mounted contains entware. can you test for me please?
i would try myself but the wife wouldn't be happy if I pull the network down for a reboot/usb re-plug
Wondering if it's a nvram issue? I had the same problem, router locked up, missing addons, nothing in syslog, and reboot didn't clear the issue. I rebooted a 2nd time and saw the USB wasn't mounting. I unplugged for about 5 mins and pulled the USB, then let the router fully boot and plugged in the USB and then all the addons came back. I was reading the syslog and saw everything loading up ok, so I went back to the gui and all was back to normal.
Whatever the issue is it isn't getting picked up in the syslog, also it seems the wlceventd.log isn't being generated its not in the /opt/var/log directory even though my syslog setting is set to 7 (for debug)
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.