ntpd not starting / system time wrong

Started by memic, July 11, 2018, 07:36:40 PM

Previous topic - Next topic
Hi,

im on:

OPNsense 18.1.10-amd64
FreeBSD 11.1-RELEASE-p10
OpenSSL 1.0.2o 27 Mar 2018

Starting ntpd manually gives me:

# /usr/local/sbin/ntpd -n no -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid
7 Mar 09:59:38 ntpd[55858]: ntpd 4.2.8p11@1.3728-o Fri Apr  6 00:59:02 UTC 2018 (1): Starting
7 Mar 09:59:38 ntpd[55858]: Command line: /usr/local/sbin/ntpd -n no -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid
7 Mar 09:59:38 ntpd[55858]: proto: precision = 0.533 usec (-21)
7 Mar 09:59:38 ntpd[55858]: getconfig: Couldn't open </etc/ntp.conf>: No such file or directory
7 Mar 09:59:38 ntpd[55858]: Listen and drop on 0 v6wildcard [::]:123
7 Mar 09:59:38 ntpd[55858]: Listen and drop on 1 v4wildcard 0.0.0.0:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 2 igb0 [fe80::20d:b9ff:fe4c:c244%1]:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 3 igb0 172.16.10.1:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 4 igb1 [fe80::20d:b9ff:fe4c:c245%2]:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 5 igb1 192.168.2.2:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 6 igb1 [2003:a:123a:fb00:20d:b9ff:fe4c:c245]:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 7 igb2 172.16.11.1:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 8 igb2 [fe80::20d:b9ff:fe4c:c246%3]:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 9 lo0 [::1]:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 10 lo0 [fe80::1%4]:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 11 lo0 127.0.0.1:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 12 ovpns1 [fe80::20d:b9ff:fe4c:c244%8]:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 13 ovpns1 172.16.13.1:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 14 igb0_vlan1 [fe80::20d:b9ff:fe4c:c244%9]:123
7 Mar 09:59:38 ntpd[55858]: Listen normally on 15 igb0_vlan2 [fe80::20d:b9ff:fe4c:c244%10]:123
7 Mar 09:59:38 ntpd[55858]: Listening on routing socket on fd #36 for interface updates
7 Mar 09:59:38 ntpd[55858]: mlockall(): Cannot allocate memory
7 Mar 09:59:39 ntpd[55858]: ntpd exiting on signal 15 (Terminated)

System time is wrong, year 2017, so my vpn connections wont work.

Any ideas howto solve this?

Regards,
memic

Post a screenshot of Services: Network Time: General to show settings?

Your time needs to be close to the current time, so set it approximately in the console e.g.

# date 181107183500

Bart...

Crashes may happen with PPS / GPS configs?


Cheers,
Franco


On Interfaces you could set the LAN .. and as suggested by bart and in IRC, set the time manually by hand for one time.

ok did it, but no change, still the same.