immortalwrt / packages

Community maintained packages for ImmortalWrt.
GNU General Public License v2.0
150 stars 239 forks source link

NTP does not work in ImmortalWrt 23.05.4 #1352

Open hrbustgithub opened 5 days ago

hrbustgithub commented 5 days ago

Describe the bug

The default firmware does not include the program ntpd. After opkg install ntpd, the logs report an error.

Sat Sep 28 01:02:19 2024 user.err : jail: failed to load dependencies Sat Sep 28 01:02:19 2024 daemon.warn odhcpd[1710]: No default route present, setting ra_lifetime to zero! Sat Sep 28 01:02:20 2024 daemon.notice ntpd[1880]: ntpd exiting on signal 15 (Terminated) Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: ntpd 4.2.8p17@1.4004-o Sun Sep 29 04:17:17 UTC 2024 (1): Starting Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: Command line: /sbin/ntpd -g -u ntp:ntp -p /var/run/ntpd.pid -n -c /var/etc/ntpd.conf Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: ---------------------------------------------------- Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: ntp-4 is maintained by Network Time Foundation, Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: Inc. (NTF), a non-profit 501(c)(3) public-benefit Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: corporation. Support and training for ntp-4 are Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: available at https://www.nwtime.org/support Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: ---------------------------------------------------- Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: DEBUG behavior is enabled - a violation of any Sat Sep 28 01:02:20 2024 daemon.notice ntpd[3547]: diagnostic assertion will cause ntpd to abort Sat Sep 28 01:02:20 2024 daemon.info ntpd[3547]: proto: precision = 6.998 usec (-17) Sat Sep 28 01:02:20 2024 daemon.info ntpd[3547]: basedate set to 2024-09-17 Sat Sep 28 01:02:20 2024 daemon.info ntpd[3547]: gps base set to 2024-09-22 (week 2333) Sat Sep 28 01:02:21 2024 user.err : jail: failed to load dependencies Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen and drop on 0 v6wildcard [::]:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen and drop on 1 v4wildcard 0.0.0.0:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 2 lo 127.0.0.1:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 3 wan 10.35.35.3:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 4 br-lan 192.168.90.1:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 5 lo [::1]:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 6 eth0 [fe80::2276:93ff:fe53:bd47%2]:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 7 wan [fe80::2276:93ff:fe53:bd49%7]:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 8 br-lan [fd3d::1]:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 9 br-lan [fe80::2276:93ff:fe53:bd47%11]:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 10 phy1-ap0 [fe80::2276:93ff:fe53:bd48%12]:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listen normally on 11 phy0-ap0 [fe80::2276:93ff:fe53:bd46%13]:123 Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: Listening on routing socket on fd immortalwrt/immortalwrt#60 for interface updates Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized Sat Sep 28 01:02:21 2024 daemon.info ntpd[3547]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized

ImmortalWrt version

r28061-399f9a1db3

ImmortalWrt release

23.05.4

ImmortalWrt target/subtarget

ramips/mt7621

Device

D-Team Newifi D2

Image kind

Official downloaded image

Steps to reproduce

  1. download the 23.05.4 bin file for D-Team Newifi D2
  2. enter breed and flash bin
  3. reboot device
  4. opkg update and install ntpd.
  5. the error occurs.

Actual behaviour

Expected behaviour

No response

Additional info

No response

Diffconfig

No response

Terms

1715173329 commented 5 days ago

ntpd is shipped by busybox by default and you don't need to install any package. The ntpd package is from ISC ntpd which is maintained by upstream OpenWrt. You should check if upstream OpenWrt has the same issue and create an issue there.

hrbustgithub commented 2 days ago

Thank you very much. But it is true that ntpd does not exist in the list of applications in the default firmware bin. when I get back from my trip I'll test the upstream Openwrt.

1715173329 commented 2 days ago

Opkg list? It won't show up there as it's from busybox.