-
Windows 7 VirtIO Drivers will not install
I had this problem and just solved refers your solution, thank you
-
eeemt started following NTPD Always stuck in .INIT. and won't sync time
-
NTPD Always stuck in .INIT. and won't sync time
In my case, I also experience the `ntpd` state stuck in `INIT`. And I fix it by hack into built-in script. I hava TWO physical internet interfaces on my motherboard, and bridge is trun on by default, named `br0`. When I SSH into unraid, execute `ntpq -p`, the result is just as @Slappy mentioned. And then, kill ntpd, execute `ntpd -gq`, It result in something like this: ``` root@WhiteTower:~# ntpd -gq 20 Jun 22:11:24 ntpd[11706]: ntpd [email protected] Fri Jun 3 04:17:10 UTC 2022 (1): Starting 20 Jun 22:11:24 ntpd[11706]: Command line: ntpd -gq 20 Jun 22:11:24 ntpd[11706]: ---------------------------------------------------- 20 Jun 22:11:24 ntpd[11706]: ntp-4 is maintained by Network Time Foundation, 20 Jun 22:11:24 ntpd[11706]: Inc. (NTF), a non-profit 501(c)(3) public-benefit 20 Jun 22:11:24 ntpd[11706]: corporation. Support and training for ntp-4 are 20 Jun 22:11:24 ntpd[11706]: available at https://www.nwtime.org/support 20 Jun 22:11:24 ntpd[11706]: ---------------------------------------------------- 20 Jun 22:11:24 ntpd[11706]: proto: precision = 0.067 usec (-24) 20 Jun 22:11:24 ntpd[11706]: line 84 column 10 syntax error, unexpected T_String, expecting T_Drop or T_Ignore or T_Listen 20 Jun 22:11:24 ntpd[11706]: syntax error in /etc/ntp.conf line 84, column 10 20 Jun 22:11:24 ntpd[11706]: basedate set to 2022-05-22 20 Jun 22:11:24 ntpd[11706]: gps base set to 2022-05-22 (week 2211) 20 Jun 22:11:24 ntpd[11706]: Listen and drop on 0 v4wildcard 0.0.0.0:123 20 Jun 22:11:24 ntpd[11706]: Listen normally on 1 lo 127.0.0.1:123 20 Jun 22:11:24 ntpd[11706]: Listening on routing socket on fd #18 for interface updates ``` It stucked and even not send a packet (I also run a tcpdump on another SSH session). Here comes the important part. I modified `/etc/rc.d/rc.ntpd` from ``` ...... echo "# Generated entries follow:" >>$CONF echo "interface ignore wildcard" >>$CONF ...... ``` into ``` ...... echo "# Generated entries follow:" >>$CONF echo "interface listen br0" >>$CONF # explicitly specify listen on br0 echo "interface ignore wildcard" >>$CONF ...... ``` After that, by execute `/etc/rc.d/rc.ntpd reload` to re-generate the /etc/ntp.conf file. The conf file will look like this: ``` ...... # Generated entries follow: interface listen br0 interface ignore wildcard interface ignore ipv6 server some.ntp.server.com iburst ``` Finally, rerun `ntpd -gq` to test if it works, it could be something like this: ``` 21 Jun 13:03:47 ntpd[2288]: ntpd [email protected] Fri Jun 3 04:17:10 UTC 2022 (1): Starting 21 Jun 13:03:47 ntpd[2288]: Command line: ntpd -gq 21 Jun 13:03:47 ntpd[2288]: ---------------------------------------------------- 21 Jun 13:03:47 ntpd[2288]: ntp-4 is maintained by Network Time Foundation, 21 Jun 13:03:47 ntpd[2288]: Inc. (NTF), a non-profit 501(c)(3) public-benefit 21 Jun 13:03:47 ntpd[2288]: corporation. Support and training for ntp-4 are 21 Jun 13:03:47 ntpd[2288]: available at https://www.nwtime.org/support 21 Jun 13:03:47 ntpd[2288]: ---------------------------------------------------- 21 Jun 13:03:47 ntpd[2288]: proto: precision = 0.067 usec (-24) 21 Jun 13:03:47 ntpd[2288]: basedate set to 2022-05-22 21 Jun 13:03:47 ntpd[2288]: gps base set to 2022-05-22 (week 2211) 21 Jun 13:03:47 ntpd[2288]: Listen normally on 0 lo 127.0.0.1:123 21 Jun 13:03:47 ntpd[2288]: Listen normally on 1 br0 192.168.50.160:123 21 Jun 13:03:47 ntpd[2288]: Listening on routing socket on fd #18 for interface updates 21 Jun 13:03:54 ntpd[2288]: ntpd: time slew +0.000075 s ntpd: time slew +0.000075s ``` Then restart the ntpd by `/etc/rc.d/rc.ntpd restart` or use the web-gui (recommended). At the end, this solution isn't graceful, but it's the only way I found. If any one got a better solution, remind me please.
eeemt
Members
-
Joined
-
Last visited