Wind River Support Network

HomeDefectsLIN10-4517
Fixed

LIN10-4517 : SNTP:Failed to start Simple Network Time Service Client in the target boot process

Created: Aug 14, 2018    Updated: Jan 15, 2019
Resolved Date: Sep 13, 2018
Found In Version: 10.17.41.11
Fix Version: 10.17.41.11
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Userspace

Description

7. Symptom Details
1.target startup log:
         Starting Simple NetworkIPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
 Management Protocol (SNMP) Trap Daemon....
NET: Registered protocol family 15
         Starting Postfix Mail Transport Agent...
         Starting OSPF routing daemon for IPv6...
         Starting BGP routing daemon...
         Starting OSPF routing daemon...
         Starting RIP routing daemon for IPv6...
[  OK  ] Started System Logger Daemon "default" instance.
[  OK  ] Started IS-IS routing daemon.
[  OK  ] Started RIP routing daemon.
[  OK  ] Started Network Time Service.
[  OK  ] Started Install MySQL Community Server Database.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Lightning Fast Webserver With Light System Requirements.
[FAILED] Failed to start Simple Network Time Service Client.
See 'systemctl status sntp.service' for details.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Simple Network Management Protocol (SNMP) Trap Daemon..
Initializing XFRM netlink socket
[  OK  ] Started Racoon IKEv1 key management daemon for IPSEC.
[  OK  ] Started Target Communication Framework agent.
[  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
[  OK  ] Started OSPF routing daemon for IPv6.
[  OK  ] Started BGP routing daemon.
[  OK  ] Started OSPF routing daemon.
[  OK  ] Started RIP routing daemon for IPv6.
[  OK  ] Started LXDE Display Manager.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Samba NMB Daemon.
         Starting Samba SMB Daemon...
[  OK  ] Started Berkeley Internet Name Domain (DNS).
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started The Apache HTTP Server.
[  OK  ] Started NFS status monitor for NFSv2/3 locking..
[  OK  ] Started Samba SMB Daemon.
[  OK  ] Started FreeRADIUS high performance RADIUS server..

2.systemctl status sntp.service
root@intel-x86-64:~# systemctl status sntp.service
● sntp.service - Simple Network Time Service Client
   Loaded: loaded (/lib/systemd/system/sntp.service; enabled; vendor preset: en>
   Active: failed (Result: exit-code) since Tue 2018-08-14 01:10:55 UTC; 24min >
  Process: 486 ExecStart=/usr/sbin/sntp -s $NTPSERVER (code=exited, status=1/FA>
 Main PID: 486 (code=exited, status=1/FAILURE)

Aug 14 01:10:55 intel-x86-64 systemd[1]: Starting Simple Network Time Service C>
Aug 14 01:10:55 intel-x86-64 sntp[486]: sntp 4.2.8p11@1.3728-o Fri Aug 10 07:22>
Aug 14 01:10:55 intel-x86-64 sntp[486]: sntp 4.2.8p11@1.3728-o Fri Aug 10 07:22>
Aug 14 01:10:55 intel-x86-64 sntp[486]: kod_init_kod_db(): Cannot open KoD db f>
Aug 14 01:10:55 intel-x86-64 sntp[486]: kod_init_kod_db(): Cannot open KoD db f>
Aug 14 01:10:55 intel-x86-64 sntp[486]: ntpserver.example.org lookup error Name>
Aug 14 01:10:55 intel-x86-64 systemd[1]: sntp.service: Main process exited, cod>
Aug 14 01:10:55 intel-x86-64 systemd[1]: sntp.service: Failed with result 'exit>
Aug 14 01:10:55 intel-x86-64 systemd[1]: Failed to start Simple Network Time Se>
root@intel-x86-64:~#

Workaround

N/A

Steps to Reproduce

1) setup.sh
--machine intel-x86-64 --templates feature/LAMP feature/gcc-sanitizers feature/gdb feature/ipv6 feature/libhugetlbfs feature/lttng feature/mariadb feature/nfsd feature/ntp feature/system-stats feature/target-toolchain feature/test feature/valgrind feature/xfce --dl-layers --layers meta-filesystems meta-virtualization meta-xfce --distro wrlinux-cgl


2) . environment-setup-x86_64-wrlinuxsdk-linux
. oe-init-build-env 

3) vim conf/local.conf

PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
IMAGE_INSTALL_append = " sntp"
IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
DEBUG_BUILD = "1"
EXTRA_IMAGE_FEATURES_append += " dbg-pkgs"
BB_NO_NETWORK_pn-lmbench = '0'
IMAGE_FSTYPES_remove += " wic wic.bmap live"

4) bitbake wrlinux-image-glibc-cgl
5) boot the target

Other Downloads


Live chat
Online