Hi,
in LuCi system, we are not supposed to have a tab with ntp server? As we can see on the second pic
Hi,
in LuCi system, we are not supposed to have a tab with ntp server? As we can see on the second pic
start by upgrading to a stable release.
What happens if you click there?
It doesn't look the same.
I know but It seems to do the same job.
Since I've installed that, the tab for sync with ntp server
is not there anymore
Why?
I installed package luci-app-ntpc git-20.108.38431-8f34e10
and it did not depopulate the default cgi-bin/luci/admin/system/system
page.
I dont know what to say, btw, I try your rc.local scripts with ntpdate but I got that ;
ntpd -d -n -q -N -I 24.xx.xx.xx -p 149.56.37.32 -p 162.159.200.1
ntpd error: only one pidfile option allowed
ntpd - NTP daemon program - Ver. 4.2.8p15
Usage: ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
[ <server1> ... <serverN> ]
also
Mon Jan 30 16:15:54 2023 daemon.notice ntpd[4259]: ntp-4 is maintained by Network Time Foundation,
Mon Jan 30 16:15:54 2023 daemon.notice ntpd[4259]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Mon Jan 30 16:15:54 2023 daemon.notice ntpd[4259]: corporation. Support and training for ntp-4 are
Mon Jan 30 16:15:54 2023 daemon.notice ntpd[4259]: available at https://www.nwtime.org/support
Mon Jan 30 16:15:54 2023 daemon.notice ntpd[4259]: ----------------------------------------------------
Mon Jan 30 16:15:54 2023 daemon.info ntpd[4259]: proto: precision = 2.240 usec (-19)
Mon Jan 30 16:15:54 2023 daemon.info ntpd[4259]: basedate set to 2023-01-13
Mon Jan 30 16:15:54 2023 daemon.info ntpd[4259]: gps base set to 2023-01-15 (week 2245)
Mon Jan 30 16:15:54 2023 daemon.info ntpd[4259]: Listen and drop on 0 v6wildcard [::]:123
Mon Jan 30 16:15:54 2023 daemon.err ntpd[4259]: unable to bind to wildcard address 0.0.0.0 - another process may be running - EXITING
Wrong.. 24.xx.xx.xx
not the ip address.. Put your wan interface device name.
same output with eth0.2
what is the output of the following:
ubus call system board
root@OpenWrt:~# ubus call system board
{
"kernel": "5.10.165",
"hostname": "OpenWrt",
"system": "ARMv7 Processor rev 0 (v7l)",
"model": "Netgear Nighthawk X4S R7800",
"board_name": "netgear,r7800",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "22.03-SNAPSHOT",
"revision": "r20048-83a13b74f5",
"target": "ipq806x/generic",
"description": "OpenWrt 22.03-SNAPSHOT r20048-83a13b74f5"
root@OpenWrt:~# opkg list-installed
6in4 - 28
6rd - 12
6to4 - 13
adblock - 4.1.5-4
ath10k-board-qca9984 - 20220411-1
ath10k-firmware-qca9984-ct - 2020-11-08-1
attendedsysupgrade-common - 7
attr - 2.5.1-1
avahi-dbus-daemon - 0.8-7
base-files - 1499-r20048-83a13b74f5
block-mount - 2022-06-02-93369be0-2
bmon - 4.0-1
busybox - 1.35.0-5
ca-bundle - 20211016-1
ca-certificates - 20211016-1
ccrypt - 1.11-2
cgi-io - 2022-08-10-901b0f04-21
collectd - 5.12.0-33
collectd-mod-conntrack - 5.12.0-33
collectd-mod-cpu - 5.12.0-33
collectd-mod-cpufreq - 5.12.0-33
collectd-mod-dhcpleases - 5.12.0-33
collectd-mod-entropy - 5.12.0-33
collectd-mod-exec - 5.12.0-33
collectd-mod-interface - 5.12.0-33
collectd-mod-iwinfo - 5.12.0-33
collectd-mod-load - 5.12.0-33
collectd-mod-memory - 5.12.0-33
collectd-mod-network - 5.12.0-33
collectd-mod-ping - 5.12.0-33
collectd-mod-rrdtool - 5.12.0-33
collectd-mod-sqm - 5.12.0-33
collectd-mod-thermal - 5.12.0-33
collectd-mod-uptime - 5.12.0-33
confuse - 3.3-1
coreutils - 9.0-2
coreutils-sort - 9.0-2
curl - 7.86.0-2
dbus - 1.13.18-12
ddns-scripts - 2.8.2-25
ddns-scripts-services - 2.8.2-25
diffutils - 3.8-1
dnscrypt-proxy2 - 2.1.2-1
dnsmasq - 2.86-15
dropbear - 2022.82-2
firewall4 - 2022-10-18-7ae5e14b-1
fstools - 2022-06-02-93369be0-2
fwtool - 2019-11-12-8f7fe925-1
gdbserver - 11.2-5
getrandom - 2021-08-03-205defb5-2
hostapd-common - 2022-01-16-cff80b4f-15.2
hostapd-utils - 2022-01-16-cff80b4f-15.2
htop - 3.2.1-1
iftop - 2018-10-03-77901c8c-2
ip-full - 5.15.0-3
iptables-mod-ipopt - 1.8.7-7
iptables-mod-ipsec - 1.8.7-7
iptables-nft - 1.8.7-7
irqbalance - 1.9.2-1
iw - 5.16-1
iwinfo - 2022-12-15-8d158096-1
jansson4 - 2.13.1-2
jshn - 2022-05-15-d2223ef9-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.10.165-1-1993e20e077501e26f4ef0eb79a2302d
kmod-ata-ahci - 5.10.165-1
kmod-ata-ahci-platform - 5.10.165-1
kmod-ata-core - 5.10.165-1
kmod-ath - 5.10.165+5.15.81-1-1
kmod-ath10k-ct - 5.10.165+2022-05-13-f808496f-1
kmod-cdrom - 5.10.165-1
kmod-cfg80211 - 5.10.165+5.15.81-1-1
kmod-crypto-aead - 5.10.165-1
kmod-crypto-arc4 - 5.10.165-1
kmod-crypto-authenc - 5.10.165-1
kmod-crypto-ccm - 5.10.165-1
kmod-crypto-cmac - 5.10.165-1
kmod-crypto-crc32c - 5.10.165-1
kmod-crypto-ctr - 5.10.165-1
kmod-crypto-des - 5.10.165-1
kmod-crypto-ecb - 5.10.165-1
kmod-crypto-gcm - 5.10.165-1
kmod-crypto-gf128 - 5.10.165-1
kmod-crypto-ghash - 5.10.165-1
kmod-crypto-hash - 5.10.165-1
kmod-crypto-hmac - 5.10.165-1
kmod-crypto-kpp - 5.10.165-1
kmod-crypto-lib-chacha20 - 5.10.165-1
kmod-crypto-lib-chacha20poly1305 - 5.10.165-1
kmod-crypto-lib-curve25519 - 5.10.165-1
kmod-crypto-lib-poly1305 - 5.10.165-1
kmod-crypto-manager - 5.10.165-1
kmod-crypto-md4 - 5.10.165-1
kmod-crypto-md5 - 5.10.165-1
kmod-crypto-null - 5.10.165-1
kmod-crypto-rng - 5.10.165-1
kmod-crypto-seqiv - 5.10.165-1
kmod-crypto-sha1 - 5.10.165-1
kmod-crypto-sha256 - 5.10.165-1
kmod-crypto-sha512 - 5.10.165-1
kmod-cryptodev - 5.10.165+1.12-ipq806x-1
kmod-fs-cifs - 5.10.165-1
kmod-fs-exfat - 5.10.165-1
kmod-fs-ext4 - 5.10.165-1
kmod-fs-hfsplus - 5.10.165-1
kmod-fs-msdos - 5.10.165-1
kmod-fs-vfat - 5.10.165-1
kmod-fuse - 5.10.165-1
kmod-gpio-button-hotplug - 5.10.165-3
kmod-gre - 5.10.165-1
kmod-hwmon-core - 5.10.165-1
kmod-ifb - 5.10.165-1
kmod-ipt-core - 5.10.165-1
kmod-ipt-ipopt - 5.10.165-1
kmod-ipt-ipsec - 5.10.165-1
kmod-iptunnel - 5.10.165-1
kmod-iptunnel4 - 5.10.165-1
kmod-leds-gpio - 5.10.165-1
kmod-lib-crc-ccitt - 5.10.165-1
kmod-lib-crc16 - 5.10.165-1
kmod-lib-crc32c - 5.10.165-1
kmod-mac80211 - 5.10.165+5.15.81-1-1
kmod-mppe - 5.10.165-1
kmod-nf-conntrack - 5.10.165-1
kmod-nf-conntrack-netlink - 5.10.165-1
kmod-nf-conntrack6 - 5.10.165-1
kmod-nf-flow - 5.10.165-1
kmod-nf-ipt - 5.10.165-1
kmod-nf-log - 5.10.165-1
kmod-nf-log6 - 5.10.165-1
kmod-nf-nat - 5.10.165-1
kmod-nf-reject - 5.10.165-1
kmod-nf-reject6 - 5.10.165-1
kmod-nfnetlink - 5.10.165-1
kmod-nft-compat - 5.10.165-1
kmod-nft-core - 5.10.165-1
kmod-nft-fib - 5.10.165-1
kmod-nft-nat - 5.10.165-1
kmod-nft-offload - 5.10.165-1
kmod-nls-base - 5.10.165-1
kmod-nls-cp1250 - 5.10.165-1
kmod-nls-cp437 - 5.10.165-1
kmod-nls-cp850 - 5.10.165-1
kmod-nls-iso8859-1 - 5.10.165-1
kmod-nls-iso8859-15 - 5.10.165-1
kmod-nls-utf8 - 5.10.165-1
kmod-phy-qcom-ipq806x-usb - 5.10.165-1
kmod-ppp - 5.10.165-1
kmod-pppoe - 5.10.165-1
kmod-pppox - 5.10.165-1
kmod-pptp - 5.10.165-1
kmod-pstore - 5.10.165-1
kmod-ramoops - 5.10.165-1
kmod-reed-solomon - 5.10.165-1
kmod-sched-cake - 5.10.165-1
kmod-sched-core - 5.10.165-1
kmod-scsi-core - 5.10.165-1
kmod-sit - 5.10.165-1
kmod-slhc - 5.10.165-1
kmod-tun - 5.10.165-1
kmod-udptunnel4 - 5.10.165-1
kmod-udptunnel6 - 5.10.165-1
kmod-usb-core - 5.10.165-1
kmod-usb-dwc3 - 5.10.165-1
kmod-usb-dwc3-qcom - 5.10.165-1
kmod-usb-ehci - 5.10.165-1
kmod-usb-ledtrig-usbport - 5.10.165-1
kmod-usb-ohci - 5.10.165-1
kmod-usb-storage - 5.10.165-1
kmod-usb-xhci-hcd - 5.10.165-1
kmod-usb2 - 5.10.165-1
kmod-usb3 - 5.10.165-1
kmod-wireguard - 5.10.165-1
libatomic1 - 11.2.0-4
libattr - 2.5.1-1
libavahi-client - 0.8-7
libavahi-dbus-support - 0.8-7
libblkid1 - 2.37.4-1
libblobmsg-json20220515 - 2022-05-15-d2223ef9-1
libbpf20220308 - 2022-03-08-04c465fd-1
libbz2-1.0 - 1.0.8-1
libc - 1.2.3-4
libcap - 2.63-1
libcbor0 - 0.8.0-1
libcurl4 - 7.86.0-2
libdaemon - 0.14-5
libdbus - 1.13.18-12
libelf1 - 0.186-1
libevdev - 1.13.0-1
libevent2-core7 - 2.1.12-1
libevent2-pthreads7 - 2.1.12-1
libexif - 0.6.24-1
libexpat - 2.4.9-1
libffmpeg-audio-dec - 5.1-1
libfido2-1 - 1.8.0-1
libflac - 1.3.4-1
libgcc1 - 11.2.0-4
libgmp10 - 6.2.1-1
libgnutls - 3.7.1-2
libid3tag - 0.15.1b-4
libiptext-nft0 - 1.8.7-7
libiptext0 - 1.8.7-7
libiptext6-0 - 1.8.7-7
libiwinfo-data - 2022-12-15-8d158096-1
libiwinfo-lua - 2022-12-15-8d158096-1
libiwinfo20210430 - 2022-12-15-8d158096-1
libjpeg-turbo - 2.1.2-1
libjson-c5 - 0.15-2
libjson-script20220515 - 2022-05-15-d2223ef9-1
libltdl7 - 2.4.6-2
liblua5.1.5 - 5.1.5-10
liblucihttp-lua - 2022-07-08-6e68a106-1
liblucihttp0 - 2022-07-08-6e68a106-1
libmnl0 - 1.0.5-1
libncurses6 - 6.3-2
libnettle8 - 3.7.3-2
libnftnl11 - 1.2.1-2
libnghttp2-14 - 1.44.0-1
libnl-core200 - 3.5.0-1
libnl-route200 - 3.5.0-1
libnl-tiny1 - 2021-11-21-8e0555fb-1
libogg0 - 1.3.5-1
libopenssl-conf - 1.1.1s-1
libopenssl1.1 - 1.1.1s-1
liboping - 1.10.0-3
libpcap1 - 1.10.1-3
libpcre - 8.45-3
libpopt0 - 1.16-2
libpthread - 1.2.3-4
libreadline8 - 8.1-1
librrd1 - 1.0.50-5
librt - 1.2.3-4
libsqlite3-0 - 3400000-1
libtasn1 - 4.16.0-2
libtirpc - 1.3.2-1
libubox20220515 - 2022-05-15-d2223ef9-1
libubus-lua - 2022-06-01-2bebf93c-1
libubus20220601 - 2022-06-01-2bebf93c-1
libuci-lua - 2021-10-22-f84f49f0-6
libuci20130104 - 2021-10-22-f84f49f0-6
libuclient20201210 - 2021-05-14-6a6011df-1
libucode20220812 - 2022-12-02-46d93c9c-1
libudev-zero - 1.0.1-1
liburing - 2.3-1
libustream-openssl20201210 - 2022-12-08-9217ab46-2
libuuid1 - 2.37.4-1
libvorbis - 1.3.7-1
libxtables12 - 1.8.7-7
logd - 2021-08-03-205defb5-2
logger - 2.37.4-1
lua - 5.1.5-10
luci - git-20.074.84698-ead5e81
luci-app-adblock - git-22.291.61192-cc92603
luci-app-attendedsysupgrade - git-22.210.54153-69231a7
luci-app-commands - git-21.099.45379-36959dc
luci-app-ddns - git-22.339.34822-6da87df
luci-app-firewall - git-22.089.67563-7e3c1b4
luci-app-minidlna - git-22.069.45071-315a592
luci-app-nlbwmon - git-23.013.73652-e29915d
luci-app-opkg - git-22.273.29004-9f6876b
luci-app-pbr - 1.0.1-10
luci-app-samba4 - git-21.223.80587-f533f9d
luci-app-sqm - git-21.164.25180-005c09a
luci-app-statistics - git-23.002.71119-463850a
luci-app-uhttpd - git-22.029.54222-e3fbfe9
luci-app-watchcat - git-22.210.22699-010119f
luci-app-wireguard - git-23.018.72712-6d712c3
luci-base - git-22.361.69894-438c598
luci-compat - git-22.069.45071-03bb0e2
luci-lib-base - git-20.232.39649-1f6dc29
luci-lib-ip - git-20.250.76529-62505bd
luci-lib-jsonc - git-22.097.61921-7513345
luci-lib-nixio - git-20.234.06894-c4a4e43
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-22.345.48602-4853e7b
luci-mod-status - git-22.302.42268-2878b35
luci-mod-system - git-23.013.73113-588381e
luci-proto-ipv6 - git-21.148.48881-79947af
luci-proto-ppp - git-21.158.38888-88b9d84
luci-proto-wireguard - git-22.327.45657-14403fe
luci-ssl-openssl - git-17.031.53232-b6341bd
luci-theme-bootstrap - git-22.288.45147-96ec0cd
luci-theme-darky - git-21.063.25127-ed3ae3e
luci-theme-openwrt-2020 - git-22.287.85459-68ff77c
minidlna - 1.3.0-1
mtd - 26
mtr-nojson - 0.95-2
nano-full - 7.2-1
netifd - 2022-08-25-76d2d41b-1
nftables-json - 1.0.2-2.1
nlbwmon - 2021-09-01-d82c910c-1
ntfs-3g - 2021.8.22-2-fuseint
ntp-utils - 4.2.8p15-4
ntpd - 4.2.8p15-4
ntpdate - 4.2.8p15-4
odhcp6c - 2022-08-05-7d21e8d8-18
odhcpd-ipv6only - 2023-01-02-4a673e1c-2
openssh-client - 8.9p1-1
openssh-client-utils - 8.9p1-1
openssh-keygen - 8.9p1-1
openssh-server - 8.9p1-1
openssh-sftp-server - 8.9p1-1
openssl-util - 1.1.1s-1
openwrt-keyring - 2022-03-25-62471e69-3
opkg - 2022-02-24-d038e5b6-1
patch - 2.7.6-6
pbr - 1.0.1-16
ppp - 2.4.9.git-2021-01-04-3
ppp-mod-pppoe - 2.4.9.git-2021-01-04-3
ppp-mod-pptp - 2.4.9.git-2021-01-04-3
procd - 2022-06-01-7a009685-2
procd-seccomp - 2022-06-01-7a009685-2
procd-ujail - 2022-06-01-7a009685-2
resolveip - 2
rpcd - 2022-12-15-7de4820c-1
rpcd-mod-file - 2022-12-15-7de4820c-1
rpcd-mod-iwinfo - 2022-12-15-7de4820c-1
rpcd-mod-luci - 20210614
rpcd-mod-rpcsys - 2022-12-15-7de4820c-1
rpcd-mod-rrdns - 20170710
rrdtool1 - 1.0.50-5
samba4-libs - 4.14.12-3
samba4-server - 4.14.12-3
sqm-scripts - 1.5.2-1
swconfig - 12
tc-tiny - 5.15.0-3
tcpdump-mini - 4.9.3-4
terminfo - 6.3-2
tree - 2.0.2-1
ubi-utils - 2.1.4-1
uboot-envtools - 2022.01-36
ubox - 2021-08-03-205defb5-2
ubus - 2022-06-01-2bebf93c-1
ubusd - 2022-06-01-2bebf93c-1
uci - 2021-10-22-f84f49f0-6
uclient-fetch - 2021-05-14-6a6011df-1
ucode - 2022-12-02-46d93c9c-1
ucode-mod-fs - 2022-12-02-46d93c9c-1
ucode-mod-ubus - 2022-12-02-46d93c9c-1
ucode-mod-uci - 2022-12-02-46d93c9c-1
uhttpd - 2022-10-31-23977554-1
uhttpd-mod-ubus - 2022-10-31-23977554-1
urandom-seed - 3
urngd - 2020-01-21-c7f7b6b6-1
usign - 2020-05-23-f1f65026-1
watchcat - 1-17
wget-ssl - 1.21.3-2
wireguard-tools - 1.0.20210424-3
wireless-regdb - 2022.08.12-1
wpad-openssl - 2022-01-16-cff80b4f-15.2
wsdd2 - 2021-10-22-9831daf2-1
xtables-nft - 1.8.7-7
zlib - 1.2.11-6
root@OpenWrt:~#
As noted above by @frollic, you should upgrade to the latest stable release (currently 22.03.3). it is possible that there are some bugs in your current snapshot.
If you're simply looking to make you OpenWrt device into a local time server, all you need to do is navigate to System > Time Synchronization > Provide NTP server. Then bind it either to "unspecified" (which should bind to all interfaces), or bind to your LAN.
thanks, I wanted to use the script here
ntpd -d -n -q -N -I eth0.2 -p 149.56.37.32 -p 162.159.200.1
but does not work , maybe about ntpdate, ntpd, busybox, dont know.
in system settind, did not have anymore ntp server in LuCi but still have it in uci
oot@OpenWrt:~# cat /etc/config/system
config system
option hostname 'OpenWrt'
option ttylogin '0'
option log_size '64'
option urandom_seed '0'
option log_proto 'udp'
option conloglevel '8'
option cronloglevel '5'
option zonename 'America/New York'
option timezone 'EST5EDT,M3.2.0,M11.1.0'
config timeserver 'ntp'
list server '0.openwrt.pool.ntp.org'
list server '1.openwrt.pool.ntp.org'
list server '2.openwrt.pool.ntp.org'
list server '3.openwrt.pool.ntp.org'
At a high level (in words rather than script code), can you describe what you are trying to acheive? This way we can make sure we target the solution to your actual goals rather than simply getting a script to run (just in case the results or solutions might be different).
ok, I will try, with my so so english
I have wireguard, sometimes I have problem with wireguard/sync/time, so I'm looking for a solution to delay wireguard and/or be sure the time is synch before wg. So @Bill gave me a rc.local script with ntpdate so I try it but when I try the script, it seems to not working properly.
as I said, thanks again
Ok... so I think you may be headed down a tangential path here...
I see that @bill is actually replying now, so I'll simply say that the idea is to not start WG until NTP succeeds... it should happen automatically under most circumstnaces unless the time sync features have been altered on OpenWrt (and as long as WG doesn't attempt to start first), and then WG should come up after that.
In your opkg list-installed
I do not see the Luci App install of luci-app-ntp
Do you recall the order in which you installed this in reference to collection of errors, and are you sure eth0.2
is your internet wan device on the Nighthawk?