perexg / satip-axe

A custom firmware with minisatip for Inverto IDL-400s/Grundig GSS.BOX/Telestar Digibit R1
131 stars 42 forks source link

ntpd does not sync the time after boot (DNS problem?) #109

Closed ecdlguy closed 6 years ago

ecdlguy commented 6 years ago

Hi,

ntpd is running, however the arguments ('-n', '-I') seem to be outdated for this version of ntpd so ntpd does nothing. I've touched /tmp/nontpd in order to prevent /etc/init.d/ntpd to respawn it. After that, starting ntpd with the '-p' option only like

ntpd -p 0.pool.ntp.org

immediately sets the correct time.

cheers, Thorsten

perexg commented 6 years ago
# cat /etc/motd 

Welcome to SATIP-AXE server 201801301900-15

# ntpd --help
BusyBox v1.26.2 (2018-01-25 08:55:26 CET) multi-call binary.

Usage: ntpd [-dnqNwl -I IFACE] [-S PROG] [-p PEER]...

NTP client/server

    -d  Verbose
    -n  Do not daemonize
    -q  Quit after clock is set
    -N  Run at high priority
    -w  Do not set time (only query peers), implies -n
    -S PROG Run PROG after stepping time, stratum change, and every 11 mins
    -p PEER Obtain time from PEER (may be repeated)
        If -p is not given, 'server HOST' lines
        from /etc/ntp.conf are used
    -l  Also run as server on port 123
    -I IFACE Bind server to IFACE, implies -l
# ps ax | grep ntpd
  722 root       0:00 {ntpd} /bin/sh /etc/init.d/ntpd
  727 root       0:00 /usr/sbin/ntpd -n -I eth0 -p 192.168.100.1
  947 root       0:00 grep ntpd

No issue here..

ecdlguy commented 6 years ago

Hi perexg,

# cat /etc/motd 
Welcome to SATIP-AXE server 201801301900-15

After reboot, ntpd is running

# ps ax | grep ntpd
  721 root       0:00 {ntpd} /bin/sh /etc/init.d/ntpd
  730 root       0:00 /usr/sbin/ntpd -n -I eth0 -p 0.pool.ntp.org
  787 root       0:00 grep ntpd

However, date and time are wrong:

 # date
Thu Jan  1 13:00:18 CET 2015

So I do

touch /tmp/nontpd
kill 730

Check if there's no ntpd running:

# ps ax | grep ntpd
  794 root       0:00 grep ntpd

And manually start ntpd:

ntpd -p 0.pool.ntp.org

Finally, the date and time are correct.

 # date
Wed Feb 14 18:04:26 CET 2018

Maybe it's a problem with '-n' vs. '-N' or '-I' (implies '-l' ?). I don't know, it only works without these options.

cheers, Thorsten

perexg commented 6 years ago

Is sufficient to kill ntpd after start? It might be a network boot timing issue.

ecdlguy commented 6 years ago

Is sufficient to kill ntpd after start? It might be a network boot timing issue.

Now I'm flabbergasted. I thought I'd tried just killing it. That's why I started to play with the options. Be that as it may, it's sufficient to kill ntpd after start.

Notwithstanding the above, I suggest to change

/usr/sbin/ntpd -n -I eth0 $NTPD_OPTS

in /etc/init.d/ntpd to

/usr/sbin/ntpd $NTPD_OPTS

and add the options to the config.

cheers, Thorsten

perexg commented 6 years ago

The '-n' is mandatory - otherwise the /etc/init.d/ntpd script will be in an endless loop.

The '-I eth0' is harmless.

Could you run 'strace -p ' when things does not work?

ecdlguy commented 6 years ago
~ # strace -p 728
Process 728 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>) = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=728, groups=00000000}, [12]) = 0
time(NULL)                              = 1420113767
sendto(4, "\24\0\0\0\26\0\1\3g7\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0g7\245T\330\2\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0g7\245T\330\2\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0g7\245T\330\2\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420113767, 385819}, NULL) = 0
gettimeofday({1420113767, 386353}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420113767, 387541}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\230\335\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\311_\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420113767, 392468}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\230\335\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\311_\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420113767, 394886}, NULL) = 0
gettimeofday({1420113767, 395434}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420113767, 396468}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "O\301\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\3710\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420113767, 399865}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "O\301\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\3710\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0}, ^C <unfinished ...>
perexg commented 6 years ago

It seems that your /etc/sysconfig/resolv.conf (or /etc/resolv.conf) is wrong. It points to 127.0.0.1 (localhost) at the boot time. Do you use DHCP? But there's killall -9 ntpd command in /etc/init.d/dhcpc-event , so it should be handled correctly.

ecdlguy commented 6 years ago

I'm using a static IP setup:

#
# IPV4 config
#
#IPV4="dhcp"
# or
IPV4="192.168.2.30"
IPV4_NETMASK="255.255.255.0"
IPV4_BROADCAST="192.168.2.255"
IPV4_GATEWAY="192.168.2.1"

Here's my resolv.conf: nameserver 192.168.2.1

perexg commented 6 years ago

Ok, so the question is where ntpd gets the 127.0.0.1 address for the DNS resolution.

ecdlguy commented 6 years ago

/etc/resolv.conf is a link to /mnt/data/satip-axe/sysconfig/resolv.conf. Maybe 'data' is not yet mounted when ntpd is started?

perexg commented 6 years ago

Could you try to add 'killall -9 ntpd' to /etc/sysconfig/localboot ? (Make this script as executable).

ecdlguy commented 6 years ago

Ok I did

touch /etc/sysconfig/localboot
chmod 755 /etc/sysconfig/localboot
nano /etc/sysconfig/localboot

and added the line 'killall -9 ntpd' after a reboot, ntpd is running but the date / time is not correct.

PS: If I call the script manually, ntpd as well as the "watchdog script" gets killed, so ntpd is not automatically restarted after 'localboot' has been executed.

PPS: Do I have to enable this:

# custom daemon/service/setup executed from sysinit
#CUSTOMD="/etc/sysconfig/myboot"

and rename the script accordingly?

perexg commented 6 years ago

The first line for the executable script should be '#!/bin/sh' . But I think that ntpd is not started at this point yet. The /etc/init.d/rcS script which mounts the config partition is executed before spawned tasks. CUSTOMD is another way to run own code.

In my environment, the date is wrong after boot, but it's quickly set to the real date (static IP config). I don't know why ntpd in your environment is using only 127.0.0.1 DNS address.

ecdlguy commented 6 years ago

I've added '#!/bin/sh' to the script just to be sure but after a reboot the problem remains. :-(

Just in case, here's my dmesg after boot: ``` Linux version 2.6.32.42_stm24_0208-idl4k_7108 (perex@stlinux.perex-int.cz) (gcc version 4.5.3 20111123 (STMicroelectronics/Linux Base 4.5.3-99) (GCC) ) #116 PREEMPT Tue Jan 30 19:00:18 CET 2018 Boot params: ... MOUNT_ROOT_RDONLY - 00000001 ... RAMDISK_FLAGS - 00000000 ... ORIG_ROOT_DEV - 00000200 ... LOADER_TYPE - 00000000 ... INITRD_START - 00000000 ... INITRD_SIZE - 00000000 Booting machvec: idl4k Node 0: start_pfn = 0x70000, low = 0x8f000 Zone PFN ranges: Normal 0x00070000 -> 0x0008f000 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0x00070000 -> 0x0008f000 On node 0 totalpages: 126976 free_area_init_node: node 0, pgdat 8145feb8, node_mem_map 82b45000 Normal zone: 992 pages used for memmap Normal zone: 0 pages reserved Normal zone: 125984 pages, LIFO batch:31 Inverto idl4k board initialisation STx7108 version 2.x, HOST core Built 1 zonelists in Zone order, mobility grouping on. Total pages: 125984 Kernel command line: console= hw=16001000000000000000000000000000 sn=1S81T51303001145 uuid=1F9C0DF4B11E4B10816327096D7DB9FD revBoot=stm24_0056-B0_80-idl4k-rev47 console=ttyAS0,115200 bigphysarea=20000 bpa2: partition 'bigphysarea' created at 0x72f29000, size 80000 kB (0x04e20000 B) PID hash table entries: 2048 (order: 1, 8192 bytes) Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) PVR=04909300 CVR=60880000 PRR=0000a320 I-cache : n_ways=2 n_sets=512 way_incr=16384 I-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4 D-cache : n_ways=2 n_sets=512 way_incr=16384 D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4 Memory: 379008k/507904k available (3385k kernel code, 1095k data, 22312k init) Hierarchical RCU implementation. NR_IRQS:500 Failed to enable clk CLKA0_REF, ignoring Failed to enable clk CLKA0_PLL0LS, ignoring Failed to enable clk CLKA1_REF, ignoring Failed to enable clk CLKA1_PLL0LS, ignoring Console: colour dummy device 80x25 console [ttyAS0] enabled sh_tmu: TMU0 used for clock events sh_tmu: TMU0 used for periodic clock events sh_tmu: TMU1 used as clock source Calibrating delay loop... 595.96 BogoMIPS (lpj=297984) Mount-cache hash table entries: 512 CPU: STx7108 NET: Registered protocol family 16 bio: create slab at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Switching to clocksource TMU1 NET: Registered protocol family 2 IP route cache hash table entries: 4096 (order: 2, 16384 bytes) TCP established hash table entries: 16384 (order: 5, 131072 bytes) TCP bind hash table entries: 16384 (order: 4, 65536 bytes) TCP: Hash tables configured (established 16384 bind 16384) TCP reno registered NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. [STM]: [PM]: HoM support registered [STM]: [PM]: [HoM]: Early console @ 0xfd733000 Installing knfsd (copyright (C) 1996 okir@monad.swb.de). Slow work thread pool: Starting up Slow work thread pool: Ready JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. fuse init (API version 7.13) msgmni has been set to 740 alg: No test for stdrng (krng) io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered STMicroelectronics ASC driver initialized stm-asc.0: ttyAS0 at MMIO 0xfd733000 (irq = 108) is a stm-asc brd: module loaded NAND device: Manufacturer ID: 0x2c, Chip ID: 0xf1 (Micron NAND 128MiB 3,3V 8-bit) Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 cmdlinepart partition parsing not available Creating 5 MTD partitions on "stm-nand-flex.0": 0x000000000000-0x000000020000 : "nand-env" 0x000000020000-0x000000420000 : "nand-system" 0x000000420000-0x000002420000 : "nand-fw1" 0x000002420000-0x000004420000 : "nand-fw2" 0x000004420000-0x000008000000 : "nand-data" stmmac - user ID: 0x10, Synopsys ID: 0x33 No HW DMA feature register supported Enhanced/Alternate descriptors RX Checksum Offload Engine supported TX Checksum insertion supported Wake-Up On Lan supported STMMAC MII Bus: probed eth0: PHY ID 001cc915 at 0 IRQ 0 (1:00) eth0: PHY ID 001cc915 at 1 IRQ 25 (1:01) active ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver stm_usb_probe: usb_phy_clk clock not found for stm-usb.0 stm-ehci stm-ehci.0: STMicroelectronics EHCI Host Controller stm-ehci stm-ehci.0: new USB bus registered, assigned bus number 1 stm-ehci stm-ehci.0: irq 124, io mem 0xfe0ffe00 stm-ehci stm-ehci.0: USB 0.0 started, EHCI 1.00 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected stm-ohci stm-ohci.0: STMicroelectronics OHCI Host Controller stm-ohci stm-ohci.0: new USB bus registered, assigned bus number 2 stm-ohci stm-ohci.0: irq 127, io mem 0xfe0ffc00 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected stm_usb_probe: usb_phy_clk clock not found for stm-usb.1 stm-ehci stm-ehci.1: STMicroelectronics EHCI Host Controller stm-ehci stm-ehci.1: new USB bus registered, assigned bus number 3 stm-ehci stm-ehci.1: irq 125, io mem 0xfe1ffe00 stm-ehci stm-ehci.1: USB 0.0 started, EHCI 1.00 usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found hub 3-0:1.0: 1 port detected stm-ohci stm-ohci.1: STMicroelectronics OHCI Host Controller stm-ohci stm-ohci.1: new USB bus registered, assigned bus number 4 stm-ohci stm-ohci.1: irq 128, io mem 0xfe1ffc00 usb usb4: configuration #1 chosen from 1 choice hub 4-0:1.0: USB hub found hub 4-0:1.0: 1 port detected stm_usb_probe: usb_phy_clk clock not found for stm-usb.2 stm-ehci stm-ehci.2: STMicroelectronics EHCI Host Controller stm-ehci stm-ehci.2: new USB bus registered, assigned bus number 5 stm-ehci stm-ehci.2: irq 126, io mem 0xfe2ffe00 stm-ehci stm-ehci.2: USB 0.0 started, EHCI 1.00 usb usb5: configuration #1 chosen from 1 choice hub 5-0:1.0: USB hub found hub 5-0:1.0: 1 port detected stm-ohci stm-ohci.2: STMicroelectronics OHCI Host Controller stm-ohci stm-ohci.2: new USB bus registered, assigned bus number 6 stm-ohci stm-ohci.2: irq 129, io mem 0xfe2ffc00 usb usb6: configuration #1 chosen from 1 choice hub 6-0:1.0: USB hub found hub 6-0:1.0: 1 port detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver usbserial USB Serial support registered for generic usbcore: registered new interface driver usbserial_generic usbserial: USB Serial Driver core i2c /dev entries driver stm i2c clock = 100500000, ns_per_clk = 9 stm i2c modified clock = 50250000, ns_per_clk = 19 stm i2c clock = 100500000, ns_per_clk = 9 stm i2c modified clock = 50250000, ns_per_clk = 19 at24 1-0050: 8192 byte 24c64 EEPROM (writable) sh_tmu: TMU0 kept as earlytimer sh_tmu: TMU1 kept as earlytimer STMicroelectronics - Coprocessors st231 Init st-coprocessor-0: No RAM reserved st231.0 Coprocessor ------------------------------------------- not configured! --------------------------------------------------------------- st-coprocessor-1: No RAM reserved st231.1 Coprocessor ------------------------------------------- not configured! --------------------------------------------------------------- st-coprocessor-2: No RAM reserved st231.2 Coprocessor ------------------------------------------- not configured! --------------------------------------------------------------- TCP cubic registered NET: Registered protocol family 10 IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Ben Greear All bugs added by David S. Miller [STM]: [PM]: Suspend support registered drivers/rtc/hctosys.c: unable to open rtc device (rtc0) Freeing unused kernel memory: 22312k freed Empty flash at 0x001e1450 ends at 0x001e1800 Empty flash at 0x001e3184 ends at 0x001e3800 Empty flash at 0x001e529c ends at 0x001e5800 Empty flash at 0x001ea198 ends at 0x001ea800 Empty flash at 0x001ec86c ends at 0x001ed000 Empty flash at 0x001ee8f4 ends at 0x001ef000 Empty flash at 0x001f30c8 ends at 0x001f3800 Empty flash at 0x001f88f4 ends at 0x001f9000 jffs2_scan_inode_node(): CRC failed on node at 0x001f9fc4: Read 0xffffffff, calculated 0x24bdce31 Empty flash at 0x001fa01c ends at 0x001fa800 Empty flash at 0x001fb0ec ends at 0x001fb800 Empty flash at 0x001fc104 ends at 0x001fc800 Empty flash at 0x001fe044 ends at 0x001fe800 Empty flash at 0x010c4040 ends at 0x010c4800 Empty flash at 0x0130f204 ends at 0x0130f800 Empty flash at 0x013112cc ends at 0x01311800 Empty flash at 0x0131329c ends at 0x01313800 Empty flash at 0x0131529c ends at 0x01315800 Empty flash at 0x0131729c ends at 0x01317800 Empty flash at 0x0131929c ends at 0x01319800 Empty flash at 0x0131b29c ends at 0x0131b800 Empty flash at 0x0131d29c ends at 0x0131d800 Empty flash at 0x0131f29c ends at 0x0131f800 stapi_core: module license 'ST Microelectronics' taints kernel. Disabling lock debugging due to kernel taint Load module sttbx_early_core Load module stos_core [?] by insmod (pid 463) Load module stcommon_core [?] by insmod (pid 463) Load module sttbx_core [?] by insmod (pid 463) Load module stevt_core [?] by insmod (pid 463) Load module stavmem_core [?] by insmod (pid 463) Load module stbuffer_core [?] by insmod (pid 463) Load module stclock_core [252] by insmod (pid 463) Load module stpower_core [251] by insmod (pid 463) Load module stpio_core [?] by insmod (pid 463) Load module stfdma_core [250] by insmod (pid 463) Load module stinject_core [?] by insmod (pid 463) Load module stnet_core [?] by insmod (pid 463) Load module stpti5_core [?] by insmod (pid 463) Load module stcommon_ioctl [249] by insmod (pid 469) Load module sttbx_ioctl [248] by insmod (pid 469) Load module stevt_ioctl [247] by insmod (pid 469) Load module stavmem_ioctl [246] by insmod (pid 469) Load module stbuffer_ioctl [245] by insmod (pid 469) Load module stpower_ioctl [244] by insmod (pid 469) Load module stpio_ioctl [243] by insmod (pid 469) Load module stfdma_ioctl [240] by insmod (pid 469) Load module stinject_ioctl [239] by insmod (pid 469) Load module stnet_ioctl [238] by insmod (pid 469) Load module stsys_ioctl [237] by insmod (pid 469) Load module stpti5_ioctl [236] by insmod (pid 469) I2C-Bus AXE mangle module loaded [demod900] setup [num_demods 4] [pll6120] setup [num_plls:4] [clk:30000000] [bbgain:16] [fe] Checking lut 0xC1ACE64C [fe] Checking lut 0xC1ACE682 [fe] Checking lut 0xC1ACE64C [fe] Checking lut 0xC1ACE6B0 [dmx] ... init 0 [fta_fe] FE Initialization done, res 0 [dmx-ts] ... init 0 JFFS2 notice: (454) check_node_data: wrong data CRC in data node at 0x0131eacc: read 0x43621b72, calculated 0xea94b141. JFFS2 notice: (454) check_node_data: wrong data CRC in data node at 0x0131cacc: read 0x43621b72, calculated 0xea94b141. JFFS2 notice: (454) check_node_data: wrong data CRC in data node at 0x0131aacc: read 0x43621b72, calculated 0xea94b141. JFFS2 notice: (454) check_node_data: wrong data CRC in data node at 0x01318acc: read 0x43621b72, calculated 0xea94b141. JFFS2 notice: (454) check_node_data: wrong data CRC in data node at 0x01316acc: read 0x43621b72, calculated 0xea94b141. JFFS2 notice: (454) check_node_data: wrong data CRC in data node at 0x01314acc: read 0x43621b72, calculated 0xea94b141. JFFS2 notice: (454) check_node_data: wrong data CRC in data node at 0x01312acc: read 0x43621b72, calculated 0xea94b141. JFFS2 notice: (454) check_node_data: wrong data CRC in data node at 0x01310afc: read 0x43621b72, calculated 0xe4a3ec9a. USB Serial support registered for cp210x usbcore: registered new interface driver cp210x cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver USB Serial support registered for pl2303 usbcore: registered new interface driver pl2303 pl2303: Prolific PL2303 USB to serial adaptor driver USB Serial support registered for FTDI USB Serial Device usbcore: registered new interface driver ftdi_sio ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver eth0: device MAC address 00:24:a6:00:0e:59 STMMAC MII Bus: Can't get IRQ 25 (PHY) No MAC Management Counters available @@@@@@@@@@@@ fe_open 0 @@@@@@@@@@@@ fe_open 1 @@@@@@@@@@@@ fe_open 2 @@@@@@@@@@@@ fe_open 3 @@@@@@@@@@@@ fe_open 0 @@@@@@@@@@@@ fe_open 1 @@@@@@@@@@@@ fe_open 2 @@@@@@@@@@@@ fe_open 3 PHY: 1:01 - Link is Up - 1000/Full [dms-ts] stream stop ok [dms-ts] stream stop ok [dms-ts] stream stop ok [dms-ts] stream stop ok ```
makabar commented 6 years ago

same problem here

bylderup commented 6 years ago

I have the same problem. After restart of device the time/date is somewhere in 2015.

I always have to use the command "date MMDDHHMMYY" in putty to get the correct date and time.

As far as I have seen ntpd does not work on startup because the difference to hardware clock and/or system clock is to big.

hwclock --systohc did not work.

Can you please explain how to set the timezone to Europe/Berlin how to set hwclock after correcting date/time with date command in putty

I think problems with ntpd will have gone after that, but I don´t know how..

perexg commented 6 years ago

There is no RTC hardware, so hwclock won't work. Also, there are no time zones in the firmware to keep things simple. The initial date is set in /etc/init.d/rcS script:

date 010112002015

If 'ping 0.pool.ntp.org' works (the /etc/sysconfig/resolv.conf exists and is linked to /etc/resolv.conf), then ntpd should set the correct date. (You may change the NTP server in the config file.)

# ping 0.pool.ntp.org
PING 0.pool.ntp.org (78.46.37.9): 56 data bytes
64 bytes from 78.46.37.9: seq=0 ttl=42 time=51.204 ms
bylderup commented 6 years ago

Ping is ok but ntpd does not set correct time/date after device start.

will wait - maybe there is a solution in next release

your firmware is great btw. Thanks a lot for it !

bylderup commented 6 years ago

just some more feedback changed Installation to lastest fw 15 beta device is still coming up with 01.01.2015 12.00

hopsi commented 6 years ago

I'm using 201802211835-15, dhcp, usb-boot (not flashed yet). ntpd is not starting here as well. Have to killall ntpd to get the time.

estimadarocha commented 6 years ago

i was experiencing time to time unresponsive hw from one of my digibit's... so i think a good solution was to run a reboot on specific hour each days... when i tried to do this i also noticed that ntpd was also not working for me... tried with and without dhcp and it seens it also using 127.0.0.1 for dns in my case!

Thanks

phaze75 commented 6 years ago

I have the same issue with my Digibit R1: ntpd is running, but time is incorrect.

fw: 201705251043-14 config: NTPD_OPTS="-p 0.pool.ntp.org" resolve.conf points to correct dns, not 127.0.0.1.

Is there any solution yet? Thanks!

gitoriu commented 6 years ago

fw: 201705251043-14 ip dhcp no /etc/sysconfig/resolv.conf file. /etc/resolv.conf is pointing to my internal resolvers. i have a timeserver for my lan. not working: NTPD_OPTS="-p FQDNSNAMEOFTIMESERVER"
working: NTPD_OPTS="-p IPOFTIMESER"

bylderup commented 6 years ago

after changing NTPD_OPTS to the ip Adress of my router (giving time to lan) I do get UTC time now - but not the local time I took a file in /etc/sysconfig named localtime with Europe/Berlin in it. seems to be wrong Europe/Amsterdam didn´t work either

so time differs for 2 h now

What do I have to do to get correct local time ?

perexg commented 6 years ago

Copy the file from your linux distribution. It's zoneinfo file not a text file. Example:

$ scp /usr/share/zoneinfo/Europe/Prague root@satip1:/etc/sysconfig/localtime
$ ssh root@satip1
# cd /etc
# ln -s sysconfig/localtime
bylderup commented 6 years ago

YES ! Took the "Berlin" file from CoreELEC, rename and restart. Problem solved. I´m very happy with satip-axe/TvHeadend. Its running so much better than everything I tried before. Thank you!

phaze75 commented 6 years ago

@gitoriu @perexg Changing the time server's FQDN to the IP address worked also for me. So ntpd has obviously a resolve issue. So how can I/we solve this? I don't like to have IP addresses in config files. /etc/resolv.conf is correctly pointing to my local name server. Using ping in the command line also correctly resolves the FQDN of the name server. So what could be the issue?

perexg commented 6 years ago

It seems that /etc/init.d/dhcpc-event needs some more love to restart ntpd properly when the DNS parameters changes.

phaze75 commented 6 years ago

I will add my hugs while testing... ;-)

perexg commented 6 years ago

Please, test the new build 15 - issue #94 .

estimadarocha commented 6 years ago

Copy the file from your linux distribution. It's zoneinfo file not a text file. Example:

$ scp /usr/share/zoneinfo/Europe/Prague root@satip1:/etc/sysconfig/localtime $ ssh root@satip1

cd /etc

ln -s sysconfig/localtime

is this still needed?

because i tested with that and even with that the time isn't correct!

perexg commented 6 years ago

Yes, the zone file should be copied from a linux system to /etc/sysconfig/localtime (and reboot or symlink it to /etc).

estimadarocha commented 6 years ago

cat /etc/motd

Welcome to SATIP-AXE server 201809171812-15

~ # ntpd --help BusyBox v1.26.2 (2018-01-25 08:55:26 CET) multi-call binary.

Usage: ntpd [-dnqNwl -I IFACE] [-S PROG] [-p PEER]...

NTP client/server

    -d      Verbose
    -n      Do not daemonize
    -q      Quit after clock is set
    -N      Run at high priority
    -w      Do not set time (only query peers), implies -n
    -S PROG Run PROG after stepping time, stratum change, and every 11 mins
    -p PEER Obtain time from PEER (may be repeated)
            If -p is not given, 'server HOST' lines
            from /etc/ntp.conf are used
    -l      Also run as server on port 123
    -I IFACE Bind server to IFACE, implies -l

~ # ps ax | grep ntpd 814 root 0:00 grep ntpd

no ntpd daemon running after reboot!

and if i do:

~ # ntpd -p 0.pool.ntp.org ~ # date Mon Sep 17 18:19:45 WEST 2018 ~ # ps ax | grep ntpd 816 root 0:00 ntpd -p 0.pool.ntp.org 819 root 0:00 grep ntpd

it's there and with correct time!

after reboot no ntpd again!

perexg commented 6 years ago

You're right. The ntpd was killed including the shield script. Here is the fixed version of build 15: http://s000.tinyupload.com/?file_id=58656269804852319071

estimadarocha commented 6 years ago

is the link correct? it just return "download.php"

rkorn86 commented 6 years ago

Just remove trailing \

estimadarocha commented 6 years ago

thanks!

now i have:

ps ax | grep ntpd 721 root 0:00 {ntpd} /bin/sh /etc/init.d/ntpd 728 root 0:00 /usr/sbin/ntpd -n -I eth0 -p 0.pool.ntp.org 813 root 0:00 grep ntpd

but still:

~ # date Thu Jan 1 12:02:59 WET 2015

i have this on resolv.conf

search Home nameserver 192.168.1.254 nameserver 192.168.1.254

estimadarocha commented 6 years ago

still no luck @perexg ... see the outdated below comment... even with ntpd running i don0t get correct time...

however if i kill it and run it again it set time correctly!

perexg commented 6 years ago

Cannot confirm. Ntpd is killed correctly now with 201809171929-15 . Ntpd needs just some seconds to sync. I have correct time with the dhcp settings on my box. Anyway, it's generally bad idea to use DHCP for server IPs.

ecdlguy commented 6 years ago

Hi, it's still not working for me using 201809171929-15. I did never use dhcp with the box, I also don't know why the title of the issue was changed. ntpd is running after reboot, however date is not correct. After killing ntpd, date is correct.

perexg commented 6 years ago

@ecdlguy please test rc2: https://github.com/perexg/satip-axe/releases/tag/build15-rc2

estimadarocha commented 6 years ago

for me the problem still exist... but like @perexg i am using dhcp!

Welcome to SATIP-AXE server 201809211014-15

~ # date Thu Jan 1 12:10:38 WET 2015 ~ # killall -9 ntpd killall: ntpd: no process killed ~ # ntpd -n -I eth0 -p 0.pool.ntp.org ntpd: setting time to 2018-09-21 10:39:26.221842 (offset +117408326.748954s)

perexg commented 6 years ago

strace, pls

perexg commented 6 years ago

Anyway, ntpd should exists after boot.. It seems that you killed it from your own script?

estimadarocha commented 6 years ago

yes @perexg it exists after boot but time was not set!!!

however if i kill it and start again it works!

estimadarocha commented 6 years ago
strace -p 969
Process 969 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>) = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0
time(NULL)                              = 1420114273
sendto(4, "\24\0\0\0\26\0\1\3a9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0a9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0a9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0a9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420114273, 661891}, NULL) = 0
gettimeofday({1420114273, 662051}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114273, 663128}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\333\346\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\376a\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114273, 666914}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\333\346\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\376a\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420114273, 669280}, NULL) = 0
gettimeofday({1420114273, 669733}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114273, 670370}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "^\271\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\203\22\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114273, 673843}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "^\271\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\203\22\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0}, 0x7bcf0a00)           = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0
time(NULL)                              = 1420114278
sendto(4, "\24\0\0\0\26\0\1\3f9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0f9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0f9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0f9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420114278, 688337}, NULL) = 0
gettimeofday({1420114278, 688494}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114278, 689558}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "T\371\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\302\340\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114278, 693126}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "T\371\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\302\340\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420114278, 695410}, NULL) = 0
gettimeofday({1420114278, 695924}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114278, 696566}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "4\333\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\250\323\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114278, 699992}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "4\333\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\250\323\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0}, 0x7bcf0a00)           = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0
time(NULL)                              = 1420114283
sendto(4, "\24\0\0\0\26\0\1\3k9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0k9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0k9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0k9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420114283, 713416}, NULL) = 0
gettimeofday({1420114283, 713573}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114283, 714571}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "p]\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\325\345\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114283, 717631}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "p]\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\325\345\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420114283, 720373}, NULL) = 0
gettimeofday({1420114283, 720521}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114283, 721551}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\312|\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "S\22\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114283, 724607}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\312|\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "S\22\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0}, 0x7bcf0a00)           = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0
time(NULL)                              = 1420114288
sendto(4, "\24\0\0\0\26\0\1\3p9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0p9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0p9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0p9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420114288, 737891}, NULL) = 0
gettimeofday({1420114288, 738331}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114288, 738998}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\266D\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\321x\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114288, 741984}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\266D\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\321x\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420114288, 744463}, NULL) = 0
gettimeofday({1420114288, 744608}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114288, 745490}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\340\244\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\200\321\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114288, 748348}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\340\244\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\200\321\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0}, 0x7bcf0a00)           = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0
time(NULL)                              = 1420114293
sendto(4, "\24\0\0\0\26\0\1\3u9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0u9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0u9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0u9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420114293, 761835}, NULL) = 0
gettimeofday({1420114293, 761989}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114293, 763024}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "k\274\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\360\221\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114293, 766072}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "k\274\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\360\221\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420114293, 768453}, NULL) = 0
gettimeofday({1420114293, 768607}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114293, 769258}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\265^\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\24.\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114293, 771572}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\265^\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\24.\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0}, 0x7bcf0a00)           = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0
time(NULL)                              = 1420114298
sendto(4, "\24\0\0\0\26\0\1\3z9\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0z9\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0z9\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0z9\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420114298, 781467}, NULL) = 0
gettimeofday({1420114298, 781624}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114298, 782272}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\257\304\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\347[\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114298, 784648}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\257\304\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\347[\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420114298, 786288}, NULL) = 0
gettimeofday({1420114298, 786462}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114298, 787075}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "W\341\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "u[\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114298, 789164}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "W\341\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "u[\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0}, 0x7bcf0a00)           = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0
time(NULL)                              = 1420114303
sendto(4, "\24\0\0\0\26\0\1\3\1779\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\1779\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\1779\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\1779\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420114303, 798570}, NULL) = 0
gettimeofday({1420114303, 798762}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114303, 799415}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\337\253\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\t\373\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114303, 801704}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\337\253\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\t\373\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420114303, 803343}, NULL) = 0
gettimeofday({1420114303, 803486}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114303, 804125}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\0308\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\266u\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114303, 806207}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\0308\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\266u\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0}, 0x7bcf0a00)           = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0
time(NULL)                              = 1420114308
sendto(4, "\24\0\0\0\26\0\1\3\2049\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\2049\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\2049\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\2049\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420114313, 134817}, NULL) = 0
gettimeofday({1420114313, 134972}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114313, 135951}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "W\375\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\223\203\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114313, 139570}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "W\375\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\223\203\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420114313, 141909}, NULL) = 0
gettimeofday({1420114313, 142360}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114313, 143008}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\350&\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\0\314\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114313, 145910}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\350&\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\0\314\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0}, 0x7bcf0a00)           = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=969, groups=00000000}, [12]) = 0
time(NULL)                              = 1420114318
sendto(4, "\24\0\0\0\26\0\1\3\2169\245T\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\2169\245T\311\3\0\0\2\30\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\2169\245T\311\3\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\2169\245T\311\3\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(4)                                = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=82, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2975e000
read(4, "127.0.0.1\tlocalhost.localdomain\t"..., 4096) = 82
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2975e000, 4096)                = 0
gettimeofday({1420114318, 159766}, NULL) = 0
gettimeofday({1420114318, 159920}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114318, 160993}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\26\312\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\306\310\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114318, 164894}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\26\312\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\306\310\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
gettimeofday({1420114318, 167632}, NULL) = 0
gettimeofday({1420114318, 167780}, NULL) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114318, 168778}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\226\311\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\372\312\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1420114318, 171842}, NULL) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
send(4, "\226\311\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
poll([{fd=4, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT|POLLERR}])
send(4, "\372\312\1\0\0\1\0\0\0\0\0\0\0010\4pool\3ntp\3org\0\0\34\0\1", 32, MSG_NOSIGNAL) = -1 ECONNREFUSED (Connection refused)
close(4)                                = 0
write(2, "ntpd: bad address '0.pool.ntp.or"..., 35) = 35
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({5, 0},
estimadarocha commented 6 years ago

This is the config i am using now! i changed from dhcp to static!

#

IPV4 config

#

IPV4="dhcp"

or

IPV4="192.168.1.114" IPV4_NETMASK="255.255.255.0" IPV4_BROADCAST="192.168.1.255" IPV4_GATEWAY="192.168.1.254"

#

ntpd

# NTPD_OPTS="-p 0.pool.ntp.org"

is it normal that with static there's no resolv.conf?

perexg commented 6 years ago

You must write your own resolv.conf and place it to /etc/sysconfig.

I don't know at this point, what task is accepting connections on TCP port 53:

connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0

on my box:

# netstat -an | grep 53
#

weird... what's your 'netstat -an' ?

estimadarocha commented 6 years ago

/ # netstat -an | grep 53 / #

meanwhile i will create resolve.conf and put it there!

estimadarocha commented 6 years ago

with dhcp off... and resolv.conf created it works!