pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ntpq: No association ID's returned (while ntp/ntpq from Debian binaries works fine)



Warning! Long post.

$ uname -a
Linux e130 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 GNU/Linux


Thanks Sijmen et al for fixing the net/ntp4 which now build and installs fine.

However, I'm running into trouble launching ntpd, both as deamon and from the command line.

I have to say I have used all sorts of sample ntp.con files and I have enabled all sort of of flags in /etc/rc.conf. It turns out that ntpd insists in using /etc/ntp.conf rather than /usr/pkg/etc/ntp.conf, but that was easy to fix.

What I could not fix was having ntpt/ntpq to connect to servers.

I have eventually launched ntpd from the command line:

$ sudo ntpd -c /usr/pkg/etc/ntp.conf -p /var/run/ntpd.pid -f /var/lib/ntp/ntp.drift -l /tmp/ntp-log


Where /usr/pkg/etc/ntp.conf is:

##### BEGIN ########################################################

# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example

# pool.ntp.org maps to about 1000 low-stratum NTP servers.  Your server will
# pick a different set every time it starts up.  Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
pool 0.debian.pool.ntp.org iburst
pool 1.debian.pool.ntp.org iburst
pool 2.debian.pool.ntp.org iburst
pool 3.debian.pool.ntp.org iburst


# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration # that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

# Needed for adding pool entries
restrict source notrap nomodify noquery

# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust


# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines.  Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient

##### END #########################################################

I have tried the ntp.conf that was provided in net/ntp4files/ and the one I have on NetBSD 9.0 and they still don't sort the issue.


$ ntpq -p
No association ID's returned

Log:

###### BEGIN ###################################################

$ cat /tmp/ntp-log
8 Oct 14:11:28 ntpd[32253]: ntpd 4.2.8p15@1.3728-o Thu Oct 8 13:08:28 UTC 2020 (1): Starting 8 Oct 14:11:28 ntpd[32253]: Command line: ntpd -c /usr/pkg/etc/ntp.conf -p /var/run/ntpd.pid -f /var/lib/ntp/ntp.drift -l /tmp/ntp-log 8 Oct 14:11:28 ntpd[32253]: ---------------------------------------------------- 8 Oct 14:11:28 ntpd[32253]: ntp-4 is maintained by Network Time Foundation, 8 Oct 14:11:28 ntpd[32253]: Inc. (NTF), a non-profit 501(c)(3) public-benefit 8 Oct 14:11:28 ntpd[32253]: corporation. Support and training for ntp-4 are
 8 Oct 14:11:28 ntpd[32253]: available at https://www.nwtime.org/support
8 Oct 14:11:28 ntpd[32253]: ----------------------------------------------------
 8 Oct 14:11:28 ntpd[32255]: proto: precision = 0.102 usec (-23)
8 Oct 14:11:28 ntpd[32255]: line 3 column 0 syntax error, unexpected T_Double, expecting $end 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 3, column 0 8 Oct 14:11:28 ntpd[32255]: line 8 column 0 syntax error, unexpected T_Stacksize, expecting $end 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 8, column 0 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 8, column 0 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 8, column 0 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 8, column 0 8 Oct 14:11:28 ntpd[32255]: line 20 column 5 syntax error, unexpected T_String, expecting T_EOC 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 20, column 5 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 20, column 5 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 20, column 5 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 20, column 5 8 Oct 14:11:28 ntpd[32255]: line 35 column 9 syntax error, unexpected T_Ipv4 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 35, column 9 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 35, column 9 8 Oct 14:11:28 ntpd[32255]: line 39 column 9 syntax error, unexpected T_String 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 39, column 9 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 39, column 9 8 Oct 14:11:28 ntpd[32255]: line 43 column 9 syntax error, unexpected T_Setvar 8 Oct 14:11:28 ntpd[32255]: syntax error in /usr/pkg/etc/ntp.conf line 43, column 9
 8 Oct 14:11:28 ntpd[32255]: basedate set to 2020-09-26
 8 Oct 14:11:28 ntpd[32255]: gps base set to 2020-09-27 (week 2125)
 8 Oct 14:11:28 ntpd[32255]: Listen and drop on 0 v6wildcard [::]:123
 8 Oct 14:11:28 ntpd[32255]: Listen and drop on 1 v4wildcard 0.0.0.0:123
 8 Oct 14:11:28 ntpd[32255]: Listen normally on 2 lo 127.0.0.1:123
 8 Oct 14:11:28 ntpd[32255]: Listen normally on 3 wlp3s0 192.168.2.201:123
 8 Oct 14:11:28 ntpd[32255]: Listen normally on 4 lo [::1]:123
8 Oct 14:11:28 ntpd[32255]: Listen normally on 5 wlp3s0 [fe80::c5bd:65b2:fe0c:2417%3]:123 8 Oct 14:11:28 ntpd[32255]: Listening on routing socket on fd #22 for interface updates 8 Oct 14:11:28 ntpd[32255]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized 8 Oct 14:11:28 ntpd[32255]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized

### END ####################################




Strace:


###### BEGIN ###################################################
execve("/usr/pkg/sbin/ntpq", ["ntpq", "-p"], [/* 17 vars */]) = 0
brk(NULL)                               = 0x55b3b9223000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/usr/pkg/lib/tls/x86_64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/pkg/lib/tls/x86_64", 0x7ffc2efe9fe0) = -1 ENOENT (No such file or directory) open("/usr/pkg/lib/tls/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/pkg/lib/tls", 0x7ffc2efe9fe0) = -1 ENOENT (No such file or directory) open("/usr/pkg/lib/x86_64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/pkg/lib/x86_64", 0x7ffc2efe9fe0) = -1 ENOENT (No such file or directory) open("/usr/pkg/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/pkg/lib", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=103615, ...}) = 0
mmap(NULL, 103615, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f61ace2a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200V\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1063328, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f61ace28000 mmap(NULL, 3158248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f61ac91d000
mprotect(0x7f61aca20000, 2093056, PROT_NONE) = 0
mmap(0x7f61acc1f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x102000) = 0x7f61acc1f000
close(3)                                = 0
open("/usr/pkg/lib/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\200\7\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=3243040, ...}) = 0
mmap(NULL, 4981824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f61ac45c000
mprotect(0x7f61ac6eb000, 2097152, PROT_NONE) = 0
mmap(0x7f61ac8eb000, 184320, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28f000) = 0x7f61ac8eb000 mmap(0x7f61ac918000, 17472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f61ac918000
close(3)                                = 0
open("/usr/pkg/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0Pa\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=135440, ...}) = 0
mmap(NULL, 2212936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f61ac23f000
mprotect(0x7f61ac257000, 2093056, PROT_NONE) = 0
mmap(0x7f61ac456000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f61ac456000 mmap(0x7f61ac458000, 13384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f61ac458000
close(3)                                = 0
open("/usr/pkg/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\4\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1689360, ...}) = 0
mmap(NULL, 3795296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f61abea0000
mprotect(0x7f61ac035000, 2097152, PROT_NONE) = 0
mmap(0x7f61ac235000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x195000) = 0x7f61ac235000 mmap(0x7f61ac23b000, 14688, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f61ac23b000
close(3)                                = 0
open("/usr/pkg/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14640, ...}) = 0
mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f61abc9c000
mprotect(0x7f61abc9f000, 2093056, PROT_NONE) = 0
mmap(0x7f61abe9e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f61abe9e000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f61ace26000
arch_prctl(ARCH_SET_FS, 0x7f61ace27100) = 0
mprotect(0x7f61ac235000, 16384, PROT_READ) = 0
mprotect(0x7f61abe9e000, 4096, PROT_READ) = 0
mprotect(0x7f61ac456000, 4096, PROT_READ) = 0
mprotect(0x7f61ac8eb000, 176128, PROT_READ) = 0
mprotect(0x7f61acc1f000, 4096, PROT_READ) = 0
mprotect(0x55b3b7903000, 8192, PROT_READ) = 0
mprotect(0x7f61ace44000, 4096, PROT_READ) = 0
munmap(0x7f61ace2a000, 103615)          = 0
set_tid_address(0x7f61ace273d0)         = 671
set_robust_list(0x7f61ace273e0, 24)     = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7f61ac244bd0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f61ac2500e0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7f61ac244c60, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f61ac2500e0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 3
close(3)                                = 0
socket(AF_INET6, SOCK_STREAM, IPPROTO_IP) = 3
getsockname(3, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, [28]) = 0
close(3)                                = 0
futex(0x55b3b790a860, FUTEX_WAKE_PRIVATE, 2147483647) = 0
brk(NULL)                               = 0x55b3b9223000
brk(0x55b3b9244000)                     = 0x55b3b9244000
futex(0x7f61ac91ac98, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f61ac91ac8c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f61ac91ac84, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f61ac91ad78, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f61ac91ac68, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/usr/pkg/bin", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0
getdents(3, /* 406 entries */, 32768)   = 13632
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
open("/usr/pkg/sbin", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents(3, /* 36 entries */, 32768)    = 1160
access("/usr/pkg/sbin/ntpq", R_OK|X_OK) = 0
close(3)                                = 0
getcwd("/home/oc", 4096)                = 9
stat("/home/oc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/oc/.ntprc", O_RDONLY|O_EXCL) = -1 ENOENT (No such file or directory)
lstat("/root", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
stat("/root", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/root/.ntprc", O_RDONLY|O_EXCL) = -1 ENOENT (No such file or directory)
lstat("/root", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
stat("/root", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/root/.ntprc", O_RDONLY|O_EXCL) = -1 ENOENT (No such file or directory)
getcwd("/home/oc", 4096)                = 9
stat("/home/oc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/oc/.ntprc", O_RDONLY|O_EXCL) = -1 ENOENT (No such file or directory) rt_sigaction(SIGINT, {sa_handler=0x55b3b76ef4a0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f61ac2500e0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=556, ...}) = 0
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 556
read(3, "", 4096)                       = 0
close(3)                                = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=103615, ...}) = 0
mmap(NULL, 103615, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f61ace2a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/tls/x86_64/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/tls/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/lib/x86_64-linux-gnu/tls", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/x86_64/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/lib/x86_64-linux-gnu/x86_64", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0 open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/usr/lib/x86_64-linux-gnu/tls/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/x86_64-linux-gnu/tls", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/usr/lib/x86_64-linux-gnu/x86_64/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/x86_64-linux-gnu/x86_64", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/usr/lib/x86_64-linux-gnu/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0 open("/lib/tls/x86_64/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/lib/tls/x86_64", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/lib/tls/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/lib/tls", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/lib/x86_64/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/lib/x86_64", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/lib/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/tls/x86_64/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/tls/x86_64", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/usr/lib/tls/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/tls", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/usr/lib/x86_64/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/x86_64", 0x7ffc2efe94c0) = -1 ENOENT (No such file or directory) open("/usr/lib/libnss_db.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
munmap(0x7f61ace2a000, 103615)          = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=103615, ...}) = 0
mmap(NULL, 103615, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f61ace2a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=47632, ...}) = 0
mmap(NULL, 2168600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f61aba8a000
mprotect(0x7f61aba94000, 2097152, PROT_NONE) = 0
mmap(0x7f61abc94000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f61abc94000 mmap(0x7f61abc96000, 22296, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f61abc96000
close(3)                                = 0
mprotect(0x7f61abc94000, 4096, PROT_READ) = 0
munmap(0x7f61ace2a000, 103615)          = 0
open("/etc/services", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=19183, ...}) = 0
read(3, "# Network services, Internet sty"..., 4096) = 4096
close(3)                                = 0
socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) = 3
bind(3, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, nl_pid=671, nl_groups=00000000}, [12]) = 0 sendto(3, {{len=20, type=0x16 /* NLMSG_??? */, flags=NLM_F_REQUEST|0x300, seq=1602164019, pid=0}, "\0\0\0\0"}, 20, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 20 recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=76, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1602164019, pid=671}, "\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1\10\0\2\0\177\0\0\1\7\0\3\0lo\0\0"...}, {{len=88, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1602164019, pid=671}, "\2\30\200\0\3\0\0\0\10\0\1\0\300\250\2\311\10\0\2\0\300\250\2\311\10\0\4\0\300\250\2\377"...}, {{len=0, type=0 /* NLMSG_??? */, flags=0, seq=0, pid=91}}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 164 recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=72, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1602164019, pid=671}, "\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\24\0\6\0"...}, {{len=72, type=0x14 /* NLMSG_??? */, flags=NLM_F_MULTI, seq=1602164019, pid=671}, "\n@\200\375\3\0\0\0\24\0\1\0\376\200\0\0\0\0\0\0\305\275e\262\376\f$\27\24\0\6\0"...}, {{len=393236, type=0xffff /* NLMSG_??? */, flags=NLM_F_REQUEST|NLM_F_MULTI|NLM_F_ACK|NLM_F_ECHO|NLM_F_DUMP_INTR|NLM_F_DUMP_FILTERED|0xffc0, seq=4294967295, pid=36446814}, "^\",\2\0\0\0\0\0\0\0\0\0\0\0\0[\0\0\0n\0\0\0\0\0\0\0\0\0\0\0"...}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 144 recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=20, type=NLMSG_DONE, flags=NLM_F_MULTI, seq=1602164019, pid=671}, "\0\0\0\0"}, {{len=1, type=0x14 /* NLMSG_??? */, flags=NLM_F_REQUEST, seq=0, pid=0}}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 20
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4)                                = 0
close(3)                                = 0
open("/etc/services", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=19183, ...}) = 0
read(3, "# Network services, Internet sty"..., 4096) = 4096
close(3)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/host.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0
read(3, "multi on\n", 4096)             = 9
read(3, "", 4096)                       = 0
close(3)                                = 0
futex(0x7f61ac23da64, FUTEX_WAKE_PRIVATE, 2147483647) = 0
getpid()                                = 671
open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=82, ...}) = 0
read(3, "# Generated by NetworkManager\nna"..., 4096) = 82
read(3, "", 4096)                       = 0
close(3)                                = 0
uname({sysname="Linux", nodename="e130", ...}) = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=249, ...}) = 0
read(3, "127.0.0.1\tlocalhost\n127.0.1.1\te1"..., 4096) = 249
read(3, "", 4096)                       = 0
close(3)                                = 0
open("/etc/gai.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2584, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=2584, ...}) = 0
read(3, "# Configuration for getaddrinfo("..., 4096) = 2584
read(3, "", 4096)                       = 0
close(3)                                = 0
futex(0x7f61ac23bee4, FUTEX_WAKE_PRIVATE, 2147483647) = 0
socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(123), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 getsockname(3, {sa_family=AF_INET, sin_port=htons(55033), sin_addr=inet_addr("127.0.0.1")}, [28->16]) = 0
close(3)                                = 0
socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET6, sin6_port=htons(123), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = 0 getsockname(3, {sa_family=AF_INET6, sin6_port=htons(60879), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, [28]) = 0
close(3)                                = 0
socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP) = 3
connect(3, {sa_family=AF_INET6, sin6_port=htons(123), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = 0
sendto(3, "\26\1\0\1\0\0\0\0\0\0\0\0", 12, 0, NULL, 0) = 12
select(4, [3], NULL, NULL, {tv_sec=5, tv_usec=0}) = 1 (in [3], left {tv_sec=4, tv_usec=999996})
recvfrom(3, "\326\201\0\1\300\26\0\0\0\0\0\0", 516, 0, NULL, NULL) = 12
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
write(1, "No association ID's returned\n", 29No association ID's returned
) = 29
exit_group(0)                           = ?
+++ exited with 0 +++


################ END #####################################

It is beyond me why this is happening. Maybe somebody will want to test it on a Linux box?

The ntp package from Debian instead works as expected, so I assume it's not a connectivity issue.

Thanks.

--
Ottavio Caruso



Home | Main Index | Thread Index | Old Index