NTP worker_sleep: sem_timedwait: invalid argument

Post Reply

Topic author
pweaver
Newbie
Posts: 4
Joined: Wed May 13, 2020 1:37 pm
Reputation: 0
Status: Offline

NTP worker_sleep: sem_timedwait: invalid argument

Post by pweaver » Mon Mar 20, 2023 12:35 pm

I installed x86 E9.2-1 on a Ubuntu KVM instance. TCP SHOW VERSION shows

Code: Select all

  VSI TCP/IP Services for OpenVMS x86_64 Version X6.0
  on a QEMU Standard PC (Q35 + ICH9, 2009) running OpenVMS E9.2-1
I copied a ntp.conf file from an Alpha and started NTP. In SYS$SPECIFIC:[TCPIP$NTP]TCPIP$NTP_RUN.LOG I see the error "ntp.exe[2223]: worker_sleep: sem_timedwait: invalid argument" appear 31 times within the first minute of running.

I reduce ntp.conf down to the bare minimum so now I only have this.

Code: Select all

server 0.ca.pool.ntp.org
server 1.ca.pool.ntp.org
server 2.ca.pool.ntp.org
server 3.ca.pool.ntp.org

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org
The time logicals look correct for my time zone.

Code: Select all

  "SYS$LOCALTIME" = "SYS$SYSROOT:[SYS$ZONEINFO.SYSTEM.CANADA]EASTERN."
  "SYS$TIMEZONE_DAYLIGHT_SAVING" = "1"
  "SYS$TIMEZONE_DIFFERENTIAL" = "-14400"
  "SYS$TIMEZONE_NAME" = "EDT"
  "SYS$TIMEZONE_RULE" = "EST5EDT4,M3.2.0/02,M11.1.0/02"
And exe$gq_tdf is correct.

Code: Select all

SDA> exam/time exe$gq_tdf
   0 04:00:00.00
I'm still getting the "ntp.exe[2223]: worker_sleep: sem_timedwait: invalid argument"
I turned ntp off for the weekend and restarted it Monday morning. At the time I restarted it the time was 20 minutes off, so I reset it to be 3 minutes behind current time, 1 hour later the time is still 3 minutes behind current time.

User avatar

volkerhalle
Master
Posts: 196
Joined: Fri Aug 14, 2020 11:31 am
Reputation: 0
Status: Offline

Re: NTP worker_sleep: sem_timedwait: invalid argument

Post by volkerhalle » Mon Mar 20, 2023 1:01 pm

$ tcpip show vers

VSI TCP/IP Services for OpenVMS x86_64 Version X6.0
on a VMware, Inc. VMware7,1 running OpenVMS V9.2

$ ntpq -c peers
remote refid st t when poll reach delay offset jitter
==============================================================================
*ptbtime1.ptb.de .PTB. 1 u 29 64 37 19.942 -8.660 12.197

Everything commented out in TCPIP$NTP.CONF except one line:

server ptbtime1.ptb.de

No error messages in TCPIP$NTP_RUN.LOG

Volker.


sms
Master
Posts: 317
Joined: Fri Aug 21, 2020 5:18 pm
Reputation: 0
Status: Offline

Re: NTP worker_sleep: sem_timedwait: invalid argument

Post by sms » Mon Mar 20, 2023 3:12 pm

Code: Select all

> I copied a ntp.conf file from an Alpha [...]

   That's actually SYS$SPECIFIC:[TCPIP$NTP]TCPIP$NTP.CONF (logical name:
TCPIP$NTP_CONF)?


Topic author
pweaver
Newbie
Posts: 4
Joined: Wed May 13, 2020 1:37 pm
Reputation: 0
Status: Offline

Re: NTP worker_sleep: sem_timedwait: invalid argument

Post by pweaver » Mon Mar 20, 2023 8:37 pm

Turns out the issue is that I did not have the Bind Server running. I set this up as a DHCP Client and assumed that DHCP would provide the DNS addresses. When I realized names were not being resolved I fixed that and NTP started working.

Post Reply