What's new

ntpMerlin ntpMerlin - NTP Daemon for AsusWRT Merlin

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

Can you look at the asp source for an unaffected page, and let me know what the title tag includes?

Also, which f/w version are you using?
 
Can you look at the asp source for an unaffected page, and let me know what the title tag includes?

Also, which f/w version are you using?

<title><#686#> - System Information</title>
<title><#686#> - Other Settings</title>
<title><#705#> - NTP Daemon</title>

Firmware Version: 384.8_2
 
/www/Tools_OtherSettings.asp
Code:
<title><#711#> - Other Settings</title>
<title>ASUS Wireless Router RT-AX88U - Other Settings</title>
/www/Feedback_Info.asp
Code:
<title><#705#> - NTP Daemon</title>
<title>Please build the WAN connection manually. - NTP Daemon</title>
/www/AiMesh_Node_FirmwareUpgrade.asp
Code:
<title><#705#> - Internet Uptime Monitoring</title>
<title>Please build the WAN connection manually. - Internet Uptime Monitoring</title>
asuswrt-merlin.ng/release/src/router/www/EN.dict
Lines 765, 771 and 793
Code:
web_redirect_suggestion5_1=Please build the WAN connection manually.
Web_Title=ASUS Wireless Router ZVMODELVZ
lyra_welcome_onboard=Or login to existing Lyra network
 
<title><#686#> - System Information</title>
<title><#686#> - Other Settings</title>
<title><#705#> - NTP Daemon</title>

Firmware Version: 384.8_2

Jack Yaz may be able to get your issues resolved, but any reason why you are not using the latest firmware, 384.10_2?

I believe that your router may need a full reset to factory defaults.

I would recommend flashing 384.10_2 and then following the M&M Config, link in my signature below, to get your router to a good/known state.

Right now, I don't believe its there.
 
The <#number#> tags are generated at firmware build time. You cannot use them within third party pages, they will not match on every firmware builds. Use either the proper dict entry name, or a plain text string.

Same if you make a copy of your /www folder and try to reuse it with a different firmware release - strings may no longer match.
 
The <#number#> tags are generated at firmware build time. You cannot use them within third party pages, they will not match on every firmware builds. Use either the proper dict entry name, or a plain text string.

Same if you make a copy of your /www folder and try to reuse it with a different firmware release - strings may no longer match.
Stupid question, how does one use the proper named entry from the dict file?
 
Code:
##########################################################
##                                                      ##
##         _           __  __              _  _         ##
##        | |         |  \/  |            | |(_)        ##
##  _ __  | |_  _ __  | \  / |  ___  _ __ | | _  _ __   ##
## | '_ \ | __|| '_ \ | |\/| | / _ \| '__|| || || '_ \  ##
## | | | || |_ | |_) || |  | ||  __/| |   | || || | | | ##
## |_| |_| \__|| .__/ |_|  |_| \___||_|   |_||_||_| |_| ##
##             | |                                      ##
##             |_|                                      ##
##                                                      ##
##                  v1.2.5 on RT-AC88U                  ##
##                                                      ##
##       https://github.com/jackyaz/ntpMerlin           ##
##                                                      ##
##                                                      ##
##               DST is currently Inactive              ##
##                                                      ##
##    DST starts on Month 3 Week 2 Weekday 0 Hour 2     ##
##    DST ends on Month  10 Week 2 Weekday 0 Hour 2     ##
##                                                      ##
##########################################################

1.    Generate updated ntpMerlin graphs now

2.    Toggle redirect of all NTP traffic to ntpMerlin
      (currently Disabled)

3.    Edit ntpMerlin config

u.    Check for updates
uf.   Update ntpMerlin with latest version (force update)

e.    Exit ntpMerlin

z.    Uninstall ntpMerlin

##########################################################

Choose an option:    1

ntpq: read: Connection refused
Press enter to continue...


admin@Fatiii:/tmp/home/root# /opt/etc/init.d/S77ntpd restart
S77ntpd: Waiting for NTP to sync before starting...
 Shutting down ntpd...              failed.
 Starting ntpd...              already running.
admin@Fatiii:/tmp/home/root#

I've re-installed but still it still says: "ntpq: read: Connection refused" any ideas?
 
Code:
##########################################################
##                                                      ##
##         _           __  __              _  _         ##
##        | |         |  \/  |            | |(_)        ##
##  _ __  | |_  _ __  | \  / |  ___  _ __ | | _  _ __   ##
## | '_ \ | __|| '_ \ | |\/| | / _ \| '__|| || || '_ \  ##
## | | | || |_ | |_) || |  | ||  __/| |   | || || | | | ##
## |_| |_| \__|| .__/ |_|  |_| \___||_|   |_||_||_| |_| ##
##             | |                                      ##
##             |_|                                      ##
##                                                      ##
##                  v1.2.5 on RT-AC88U                  ##
##                                                      ##
##       https://github.com/jackyaz/ntpMerlin           ##
##                                                      ##
##                                                      ##
##               DST is currently Inactive              ##
##                                                      ##
##    DST starts on Month 3 Week 2 Weekday 0 Hour 2     ##
##    DST ends on Month  10 Week 2 Weekday 0 Hour 2     ##
##                                                      ##
##########################################################

1.    Generate updated ntpMerlin graphs now

2.    Toggle redirect of all NTP traffic to ntpMerlin
      (currently Disabled)

3.    Edit ntpMerlin config

u.    Check for updates
uf.   Update ntpMerlin with latest version (force update)

e.    Exit ntpMerlin

z.    Uninstall ntpMerlin

##########################################################

Choose an option:    1

ntpq: read: Connection refused
Press enter to continue...


admin@Fatiii:/tmp/home/root# /opt/etc/init.d/S77ntpd restart
S77ntpd: Waiting for NTP to sync before starting...
 Shutting down ntpd...              failed.
 Starting ntpd...              already running.
admin@Fatiii:/tmp/home/root#

I've re-installed but still it still says: "ntpq: read: Connection refused" any ideas?
What do you have in the config file?
 
What do you have in the config file?

Code:
# replace the following time servers to the ones close to you
# see http://support.ntp.org/bin/view/Servers/NTPPoolServers
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst

interface ignore wildcard
interface listen br0

logfile /opt/var/spool/ntp/ntp.log
driftfile /opt/var/spool/ntp/ntp.drift
#leapfile /opt/var/spool/ntp/leap-seconds.list # https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

restrict default limited kod nomodify notrap nopeer noquery # restrictive default IPv4
restrict -6 default limited kod nomodify notrap nopeer noquery # restrictive default IPv6
restrict source nomodify notrap noquery # required for pool directive if using restrictive default permissions
restrict 127.0.0.1 # permissive localhost IPv4
restrict -6 ::1 # permissive localhost IPv6

disable auth stats

after reboot it seems better but;

Code:
admin@Fatiii:/tmp/home/root# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 n1.taur.dk      .PPS1.           1 u  49y   64    3  1555838  7779194 7779194
 lx.ujf.cas.cz   .GPS.            1 u    9   64    3   59.164   -2.425 5500721
*ht-time01.isnic .GNSs.           1 u    6   64    3  105.119   -1.612   7.028
 138.68.46.177 ( 90.187.7.5       2 u   10   64    3  202.986    0.820 3478961
admin@Fatiii:/tmp/home/root# ntptime
ntp_gettime() returns code 5 (ERROR)
  time e066b64e.041b21c4  Sun, Apr 21 2019  9:28:46.016, (.016039423),
  maximum error 16000000 us, estimated error 16000000 us, TAI offset 0
ntp_adjtime() returns code 5 (ERROR)
  modes 0x0 (),
  offset 0.000 us, frequency -2.784 ppm, interval 1 s,
  maximum error 16000000 us, estimated error 16000000 us,
  status 0x2041 (PLL,UNSYNC,NANO),
  time constant 3, precision 0.001 us, tolerance 500 ppm,

I'll edit config file and put other servers and try them.
 
Code:
# replace the following time servers to the ones close to you
# see http://support.ntp.org/bin/view/Servers/NTPPoolServers
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst

interface ignore wildcard
interface listen br0

logfile /opt/var/spool/ntp/ntp.log
driftfile /opt/var/spool/ntp/ntp.drift
#leapfile /opt/var/spool/ntp/leap-seconds.list # https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

restrict default limited kod nomodify notrap nopeer noquery # restrictive default IPv4
restrict -6 default limited kod nomodify notrap nopeer noquery # restrictive default IPv6
restrict source nomodify notrap noquery # required for pool directive if using restrictive default permissions
restrict 127.0.0.1 # permissive localhost IPv4
restrict -6 ::1 # permissive localhost IPv6

disable auth stats

after reboot it seems better but;

Code:
admin@Fatiii:/tmp/home/root# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 n1.taur.dk      .PPS1.           1 u  49y   64    3  1555838  7779194 7779194
 lx.ujf.cas.cz   .GPS.            1 u    9   64    3   59.164   -2.425 5500721
*ht-time01.isnic .GNSs.           1 u    6   64    3  105.119   -1.612   7.028
 138.68.46.177 ( 90.187.7.5       2 u   10   64    3  202.986    0.820 3478961
admin@Fatiii:/tmp/home/root# ntptime
ntp_gettime() returns code 5 (ERROR)
  time e066b64e.041b21c4  Sun, Apr 21 2019  9:28:46.016, (.016039423),
  maximum error 16000000 us, estimated error 16000000 us, TAI offset 0
ntp_adjtime() returns code 5 (ERROR)
  modes 0x0 (),
  offset 0.000 us, frequency -2.784 ppm, interval 1 s,
  maximum error 16000000 us, estimated error 16000000 us,
  status 0x2041 (PLL,UNSYNC,NANO),
  time constant 3, precision 0.001 us, tolerance 500 ppm,

I'll edit config file and put other servers and try them.


Now it's OK but I PC can't sync time.

Code:
admin@Fatiii:/tmp/home/root# ntptime
ntp_gettime() returns code 0 (OK)
  time e066ba03.1bd03968  Sun, Apr 21 2019  9:44:35.108, (.108646530),
  maximum error 51301 us, estimated error 1436 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset -266.028 us, frequency -2.821 ppm, interval 1 s,
  maximum error 51301 us, estimated error 1436 us,
  status 0x2001 (PLL,NANO),
  time constant 6, precision 0.001 us, tolerance 500 ppm,

Edit: first I've sync my PC's time with "time.nist.gov" and it worked, than I've tried router's IP address and it was successful.

Thanks :)
 
...any reason why you are not using the latest firmware, 384.10_2?
Yes, mainly because it was reported that the Client List is not working properly. I need this list to be accurate. I am staying on 384.8_2 until there is a newer release with accurate Client List.
 
i wanted to report an issue with option 42 when it gets added to the dnsmasq.conf.add file it doesn't get placed on the bottom it gets thrown randomly into the mix with other items on the list causing dnsmasq to fail to start because it doesn't recognize the command.
 
i wanted to report an issue with option 42 when it gets added to the dnsmasq.conf.add file it doesn't get placed on the bottom it gets thrown randomly into the mix with other items on the list causing dnsmasq to fail to start because it doesn't recognize the command.
It should be appended to the end of dnsmasq.conf.add
Code:
echo "dhcp-option=lan,42,$(nvram get lan_ipaddr)"' # '"$NTPD_NAME" >> /jffs/configs/dnsmasq.conf.add
What other scripts are you running? Please can you post dnsmasq.conf.add and /etc/dnsmasq.conf ? feel free to redact any mac addresses
 
i only had one command inside the DNSmasq.conf.add file and it placed your new command right beside it instead of below it.
 
dhcp-option=lan,42,192.168.1.1 # ntpMerlin
is how it appears when i moved it to single line though
 
does the #ntpmerlin effect it from being runned properly?
 
one other issue i noticed was when i uninstalled the ntpmerlin to reinstall it. it also erased my other configurations that were inside the dnsmasq.conf.add file.
 

Similar threads

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