NTP service not starting

Started by hushcoden, April 13, 2025, 10:38:24 AM

Previous topic - Next topic
October 12, 2025, 09:53:05 PM #15 Last Edit: October 12, 2025, 10:13:19 PM by Melroy vd Berg Reason: Add NTP log
I also noticed the same issue in v25.7.5:

And yes I have set "Interfaces" of NTP to "All (recommended)". Which is the default value and correct.

Ps. /var/etc/ntpd.conf file is just a generated file, but the file is present.

2025-10-12T08:41:23    Notice    kernel     [131] 283.499506 [ 853] iflib_netmap_config       txr 8 rxr 8 txd 512 rxd 512 rbufsz 2048
2025-10-12T08:41:23    Notice    kernel     [131] 283.436679 [ 853] iflib_netmap_config       txr 8 rxr 8 txd 512 rxd 512 rbufsz 2048
2025-10-12T08:41:23    Notice    kernel     [131] 283.429322 [ 853] iflib_netmap_config       txr 8 rxr 8 txd 512 rxd 512 rbufsz 2048
2025-10-12T08:41:23    Notice    kernel     [131] 283.422089 [ 853] iflib_netmap_config       txr 8 rxr 8 txd 512 rxd 512 rbufsz 2048
2025-10-12T08:40:07    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : wireguard_sync())
2025-10-12T08:40:07    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : webgui_configure_do(,[opt1]))
2025-10-12T08:40:07    Notice    kernel     <6>[54] pid 50572 (ntpd), jid 0, uid 0: exited on signal 11 (no core dump - bad address)
2025-10-12T08:40:07    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : vxlan_configure_do())
2025-10-12T08:40:07    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : unbound_configure_do(,[opt1]))
2025-10-12T08:40:07    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : openssh_configure_do(,[opt1]))
2025-10-12T08:40:07    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : opendns_configure_do())
2025-10-12T08:40:07    Error    opnsense     /usr/local/etc/rc.newwanipv6: The command '/usr/local/sbin/ntpd -g -c '/var/etc/ntpd.conf'' returned exit code '70', the output was 'daemon control: got EOF'
2025-10-12T08:40:06    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : ntpd_configure_do())
2025-10-12T08:40:06    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure newwanip (execute task : dhcrelay_configure_if(,[opt1],inet6))
2025-10-12T08:40:06    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure newwanip (,[opt1],inet6)
2025-10-12T08:40:06    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure vpn (execute task : wireguard_configure_do())
2025-10-12T08:40:06    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure vpn (execute task : openvpn_configure_do(,[opt1]))
2025-10-12T08:40:06    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure vpn (execute task : ipsec_configure_do(,[opt1]))
2025-10-12T08:40:06    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure vpn (,[opt1],inet6)
2025-10-12T08:40:05    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure monitor (execute task : dpinger_configure_do(,[WAN_FTTH_DHCP6]))
2025-10-12T08:40:05    Notice    opnsense     /usr/local/etc/rc.newwanipv6: plugins_configure monitor (,[WAN_FTTH_DHCP6])
2025-10-12T08:40:05    Notice    opnsense     /usr/local/etc/rc.newwanipv6: ROUTING: keeping inet6 default route to fe80::726d:15ff:feea:f800%pppoe0
2025-10-12T08:40:05    Notice    opnsense     /usr/local/etc/rc.newwanipv6: ROUTING: configuring inet6 default gateway on opt1
2025-10-12T08:40:05    Notice    opnsense     /usr/local/etc/rc.newwanipv6: ROUTING: entering configure using opt1
2025-10-12T08:40:05    Notice    opnsense     /usr/local/etc/rc.newwanipv6: IP renewal starting (address: fe80::f690:eaff:fe01:2be0%pppoe0, interface: opt1, device: pppoe0)
2025-10-12T08:40:05    Notice    kernel     <118>[52]  SSH:   SHA256 n7ax3CA2BMRgq16CrHNPdXgrdxXqkHq2VSEJVQ4YRJY (RSA)
2025-10-12T08:40:05    Notice    kernel     <118>[52]  SSH:   SHA256 92s47heG5ihS5fzETP/iCTAnSng42anazcEKE8sw8qs (ED25519)
2025-10-12T08:40:05    Notice    kernel     <118>[52]  SSH:   SHA256 nKDcJMQ4iwjdJRyl0J8m2uKj52vQpergfcLuz1Eu8JM (ECDSA)
2025-10-12T08:40:05    Notice    kernel     <118>[52]                B8 03 4C D7 E0 59 14 34 91 96 34 95 FC 40 39 F7
2025-10-12T08:40:05    Notice    kernel     <118>[52]  HTTPS: sha256 FE D8 BE D2 C5 6F B1 15 0F C1 47 70 1B 57 C7 75
2025-10-12T08:40:05    Notice    kernel     <118>[52]
2025-10-12T08:40:05    Notice    kernel     <118>[52]  WAN_RAW (ax0)   ->
2025-10-12T08:40:05    Notice    kernel     <118>[52]                     v6/DHCP6: fe80::f690:eaff:fe01:2be0%pppoe0/64
2025-10-12T08:40:05    Notice    kernel     <118>[52]  WAN_FTTH (pppoe0) -> v4/PPPoE: 77.61.56.117/32
2025-10-12T08:40:05    Notice    kernel     <118>[52]  RouterWireguard (wg0) -> v4: 192.168.2.1/24
2025-10-12T08:40:05    Notice    kernel     <118>[52]                     v6: 2a02:22a0:bbba:f900::1/64
2025-10-12T08:40:05    Notice    kernel     <118>[52]  LAN_SFP (ax1)   -> v4: 192.168.1.1/24
2025-10-12T08:40:05    Notice    kernel     <118>[52]  LAN_MANAGEMENT (igc0) -> v4: 192.168.2.1/24
2025-10-12T08:40:05    Notice    kernel     <118>[52]  LAN_4 (igc3)    ->
2025-10-12T08:40:05    Notice    kernel     <118>[52]  LAN_3 (igc2)    ->
2025-10-12T08:40:05    Notice    kernel     <118>[52]  LAN_2 (igc1)    ->
2025-10-12T08:40:05    Notice    kernel     <118> LAN_1_BRIDGE (bridge0) -> v4: 192.168.3.1/24
2025-10-12T08:40:05    Notice    kernel     <118>[52]
2025-10-12T08:40:05    Notice    kernel     <118>*** OPNsense.home: OPNsense 25.7.5 (amd64) ***
2025-10-12T08:40:05    Notice    kernel     <118>[52]
2025-10-12T08:40:05    Notice    kernel     <118>[52] Sun Oct 12 08:40:05 CEST 2025
2025-10-12T08:40:05    Notice    kernel     <118>[52] Root file system: zroot/ROOT/default
2025-10-12T08:40:04    Notice    kernel     <6>[51] pid 19904 (ntpd), jid 0, uid 0: exited on signal 11 (no core dump - bad address)
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : wireguard_sync())
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : webgui_configure_do(,[opt1]))
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : vxlan_configure_do())
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : unbound_configure_do(,[opt1]))
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : openssh_configure_do(,[opt1]))
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : opendns_configure_do())
2025-10-12T08:40:03    Error    opnsense     /usr/local/etc/rc.newwanip: The command '/usr/local/sbin/ntpd -g -c '/var/etc/ntpd.conf'' returned exit code '70', the output was 'daemon control: got EOF'
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : ntpd_configure_do())
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : dhcrelay_configure_if(,[opt1],inet))
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure newwanip (,[opt1],inet)
2025-10-12T08:40:03    Notice    kernel     <118>[51] >>> Invoking start script 'beep'
2025-10-12T08:40:03    Notice    kernel     <118>[51] Service `sysctl' has been restarted.
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : wireguard_configure_do())
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : openvpn_configure_do(,[opt1]))
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure vpn (execute task : ipsec_configure_do(,[opt1]))
2025-10-12T08:40:03    Notice    opnsense     /usr/local/etc/rc.newwanip: plugins_configure vpn (,[opt1],inet)
2025-10-12T08:40:03    Notice    opnsense     /usr/local/sbin/pluginctl: plugins_configure crl (execute task : openvpn_refresh_crls(1))
2025-10-12T08:40:03    Notice    kernel     <118>[51] >>> Invoking start script 'sysctl'
2025-10-12T08:40:03    Notice    opnsense     /usr/local/sbin/pluginctl: plugins_configure crl (execute task : core_trust_crl(1))
2025-10-12T08:40:03    Notice    opnsense     /usr/local/sbin/pluginctl: plugins_configure crl (1)
2025-10-12T08:40:03    Notice    kernel     <118>[51] >>> Invoking start script 'openvpn'
2025-10-12T08:40:03    Notice    kernel     OK
2025-10-12T08:40:03    Notice    syslog-ng     Configuration reload finished;
2025-10-12T08:40:03    Notice    syslog-ng     Configuration reload request received, reloading configuration;
2025-10-12T08:40:03    Warning    syslog-ng     WARNING: Configuration file format is newer than the current version, please specify the current version number (4.8) in the @version directive. syslog-ng will operate at its highest supported version in this mode; config-version='4.10'

Logging of NTP service itself is pretty clear about the issue as well:

2025-10-12T22:00:45 Error ntpd daemon child died with signal 11
2025-10-12T22:00:45 Error ntpd unable to create socket on wg0 (10) for 192.168.2.1:123
2025-10-12T22:00:45 Error ntpd bind(30) AF_INET 192.168.2.1:123 flags 0x11 failed: Address already in use
2025-10-12T22:00:42 Error ntpd daemon child died with signal 11
2025-10-12T22:00:42 Error ntpd unable to create socket on wg0 (10) for 192.168.2.1:123
2025-10-12T22:00:42 Error ntpd bind(30) AF_INET 192.168.2.1:123 flags 0x11 failed: Address already in use
2025-10-12T22:00:36 Error ntpd daemon child died with signal 11
2025-10-12T22:00:36 Error ntpd unable to create socket on wg0 (10) for 192.168.2.1:123
2025-10-12T22:00:36 Error ntpd bind(30) AF_INET 192.168.2.1:123 flags 0x11 failed: Address already in use
2025-10-12T21:58:13 Error ntpd daemon child died with signal 11
2025-10-12T21:58:13 Error ntpd unable to create socket on wg0 (10) for 192.168.2.1:123
2025-10-12T21:58:13 Error ntpd bind(30) AF_INET 192.168.2.1:123 flags 0x11 failed: Address already in use
2025-10-12T21:58:06 Error ntpd daemon child died with signal 11
2025-10-12T21:58:06 Error ntpd unable to create socket on wg0 (10) for 192.168.2.1:123
2025-10-12T21:58:06 Error ntpd bind(30) AF_INET 192.168.2.1:123 flags 0x11 failed: Address already in use
2025-10-12T21:57:49 Error ntpd daemon child died with signal 11
2025-10-12T21:57:49 Error ntpd unable to create socket on wg0 (10) for 192.168.2.1:123
2025-10-12T21:57:49 Error ntpd bind(30) AF_INET 192.168.2.1:123 flags 0x11 failed: Address already in use
2025-10-12T08:40:07 Error ntpd daemon child died with signal 11
2025-10-12T08:40:07 Error ntpd unable to create socket on wg0 (10) for 192.168.2.1:123
2025-10-12T08:40:07 Error ntpd bind(30) AF_INET 192.168.2.1:123 flags 0x11 failed: Address already in use
2025-10-12T08:40:03 Error ntpd daemon child died with signal 11

In my case it was related to my Wireguard setup. Since  192.168.2.1 is my wireguard instance tunnel address.

Solution: Be sure all your subnets are unique! So I apparently was using this subnet already on another interface. So instead of "reinstalling", try to look if you have any conflicts on your interfaces..

So in my case the solution was to move Wireguard to 192.168.4.x subnet. As stated of course here under "Note": https://docs.opnsense.org/manual/how-tos/wireguard-client.html#step-1-configure-the-wireguard-instance
Hardware: DEC3852
Version: OPNsense 24.10 Business Edition