cmkelley
Very Senior Member
Yes, I'm working on a script to do just that. I think I have it fixed. Just need my wife to let me restart the router and I'll start a thread on it.Anyway to fix these time problems when the router is restarting lol.
Yes, I'm working on a script to do just that. I think I have it fixed. Just need my wife to let me restart the router and I'll start a thread on it.Anyway to fix these time problems when the router is restarting lol.
NiceYes, I'm working on a script to do just that. I think I have it fixed. Just need my wife to let me restart the router and I'll start a thread on it.
Okay, the thread is up, but unfortunately for most people relies on a time server somewhere else on your network. Temporarily forgot about that detail, sorry.Nice
After a reboot, what it the output of the command:
Code:grep -E "^no-resolv|^server=" /tmp/etc/dnsmasq.conf
Oh, the syslog shows that Stubby is being started before the router's clock is synced with NTP. Could be a timing problem.
# grep -E "^no-resolv|^server=" /tmp/etc/dnsmasq.conf
no-resolv
server=127.0.0.1#5453
server=0::1#5453
server=/pool.ntp.org/1.1.1.1
#
Jan 11 10:55:42 SCRIPT_firewall-start: started [eth0]
Jan 11 10:55:42 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 1 Of 10 )
Jan 11 10:55:43 SCRIPT_pre-mount: started [/dev/sda1]
Jan 11 10:55:43 amtm: Running disk check 'e2fsck -p' on /dev/sda1
Jan 11 10:55:43 amtm: Disk check done on /dev/sda1
Jan 11 10:55:43 SCRIPT_post-mount: started [/tmp/mnt/myssd]
Jan 11 10:55:43 Swap: Starting swap
Jan 11 10:55:43 haveged: haveged starting up
Jan 11 10:55:43 lionroot: Started haveged from /jffs/scripts/post-mount.
Jan 11 10:55:43 S61stubby: Starting Stubby DNS over TLS /opt/etc/init.d/S61stubby
Jan 11 10:55:43 lionroot: Started stubby from /jffs/scripts/post-mount.
Jan 11 10:55:43 Diversion: created br0:pixelserv-tls [redacted], from /opt/etc/init.d/S80pixelserv-tls
Jan 11 10:55:43 pixelserv-tls[1543]: pixelserv-tls 2.2.1 (compiled: Dec 29 2018 15:01:07 flags: tfo tls1_3) options: [redacted]
Jan 11 10:55:44 Entware (aarch64-k3.10): Started pixelserv-tls (Diversion) from /jffs/scripts/post-mount
Jan 11 10:55:44 Diversion: started Entware services, from /jffs/scripts/post-mount
Jan 11 10:55:34 dnsmasq[814]: ignoring nameserver ww.xx.yy.zz - local interface
Actually, I suppose you could put an external timeserver IP in there which would set your clock as soon as the WAN comes up, but then it's a race to see if it gets the time first or Stubby runs first. @john9527's suggestion is probably the best if you don't have a separate time server on your LAN.Okay, the thread is up, but unfortunately for most people relies on a time server somewhere else on your network. Temporarily forgot about that detail, sorry.
Heh, nope. They literally just swap places in the log, nothing between them. Stubby before pixelsrv:I’d look in the syslog to determine what else started that might explain the difference except elapsed time. There should be no conflict between Stubby and Pixelserv otherwise.
What you find might help find the root cause.
Jan 11 10:55:43 Swap: Starting swap
Jan 11 10:55:43 haveged: haveged starting up
Jan 11 10:55:43 lionroot: Started haveged from /jffs/scripts/post-mount.
Jan 11 10:55:43 S61stubby: Starting Stubby DNS over TLS /opt/etc/init.d/S61stubby
Jan 11 10:55:43 lionroot: Started stubby from /jffs/scripts/post-mount.
Jan 11 10:55:43 Diversion: created br0:pixelserv-tls [redacted], from /opt/etc/init.d/S80pixelserv-tls
Jan 11 10:55:43 pixelserv-tls[1543]: pixelserv-tls 2.2.1 (compiled: Dec 29 2018 15:01:07 flags: tfo tls1_3) options: [redacted]
Jan 11 10:55:44 Entware (aarch64-k3.10): Started pixelserv-tls (Diversion) from /jffs/scripts/post-mount
Jan 11 10:55:44 Diversion: started Entware services, from /jffs/scripts/post-mount
Jan 11 10:55:44 pixelserv-tls[1543]: Listening on :[redacted]:443
Jan 11 10:55:44 pixelserv-tls[1543]: Listening on :[redacted]:80
Jan 11 10:55:45 SCRIPT_ddns-start: started [redacted]
Jan 11 10:55:46 Diversion: restarted Dnsmasq to apply settings, from /jffs/scripts/dnsmasq.postconf
Jan 11 19:32:37 Swap: Starting swap
Jan 11 19:32:37 haveged: haveged starting up
Jan 11 19:32:37 lionroot: Started haveged from /jffs/scripts/post-mount.
Jan 11 19:32:37 Diversion: created br0:pixelserv-tls [redacted], from /opt/etc/init.d/S80pixelserv-tls
Jan 11 19:32:37 pixelserv-tls[1520]: pixelserv-tls 2.2.1 (compiled: Dec 29 2018 15:01:07 flags: tfo tls1_3) options: [redacted]
Jan 11 19:32:37 pixelserv-tls[1520]: Listening on :[redacted]:443
Jan 11 19:32:37 pixelserv-tls[1520]: Listening on :[redacted]:80
Jan 11 19:32:38 Entware (aarch64-k3.10): Started pixelserv-tls (Diversion) from /jffs/scripts/post-mount
Jan 11 19:32:38 S61stubby: Starting Stubby DNS over TLS /opt/etc/init.d/S99stubby
Jan 11 19:32:38 lionroot: Started stubby from /jffs/scripts/post-mount.
Jan 11 19:32:38 Diversion: started Entware services, from /jffs/scripts/post-mount
Jan 11 19:32:38 Diversion: restarted Dnsmasq to apply settings, from /jffs/scripts/dnsmasq.postconf
Jan 11 19:32:38 SCRIPT_ddns-start: started [redacted]
So much for my solution. Seemed to be working yesterday, left to spend this morning and afternoon with my dad, came back this evening and back to no DoT. So now I re-ran the Stubby installer and I'll leave the alone for a day and see if DoT goes away again.Well, first of all I think the Entware guys pick a sensible choice of order in the init script. So it should be fine for Stubby to stay S61 and pixelserv-tls S80.
Script kiddies on this forum like to add a sleep here and there..very poor programming style IMO. So you might want to check if that causes delayed startup of suspected processes..
(I hope I read your problem correctly...I didn't go through the thread)
I tried your solution and it indeed does not work... and i am having the same issue, to fix it i need to run the installer again just like you.So much for my solution. Seemed to be working yesterday, left to spend this morning and afternoon with my dad, came back this evening and back to no DoT. So now I re-ran the Stubby installer and I'll leave the alone for a day and see if DoT goes away again.
So basically the problem is DoT works when I run the installer, but doesn't come back after a reboot, even though stubby is loaded and supposedly working. "service restart_stubby" doesn't help, but I haven't tried directly running the script in init.d to restart it (I have no clue what the service command actually does). If I re-install Stubby it starts working. Last night I switched the order of Stubby and pixelsrv-tls scripts in init.d, and DoT was working on reboot. It can't possibly be a timing issue, I get system time from a local time server on my network within 2 seconds after init-start runs.
I know this doesn't help resolve the issue, but I've not had any issues with it persisting here, so it's not universally affecting all AC86Us.I tried your solution and it indeed does not work... and i am having the same issue, to fix it i need to run the installer again just like you.
I know this doesn't help resolve the issue, but I've not had any issues with it persisting here, so it's not universally affecting all AC86Us.
Works fine on mine setup also.
Yep, have rebooted several times today and I have Firefox set to open that as a secondary homepage, so I normally see it, though I do sometimes just close it without checking. Also rebooted twice more before posting above, just in case it had been failing and I'd missed it.Did you guys tried this test, after a reboot
No VPN client. VPN server. Turned that off and rebooted, same result.If you have a VPN client active, try disabling it (no auto start on boot)
Welcome To SNBForums
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!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!