[ntp:questions] 2nd try: error: sendto(x.x.x.x): Bad file descriptor ?
snews at lordynet.org
Mon Jul 11 09:15:50 UTC 2011
> Help, please.
> When I try to start 'ntpd' on a netbsd system, I get
> 'sendto(188.8.131.52): Bad file descriptor' error message
> and the ntpd daemon does not start.
> A search on the internet tells that this kind of error message
> is seen if there is an existing ntpd daemon is running and the
> use is starting another daemon. But I did not have any daemon running prior to my execution of the ntpd command.
> I have the following entry in my /etc/ntp.conf
> server 184.108.40.206
> restrict 127.0.0.1
> The command I used is:
> # ./ntpd -c /etc/ntp.conf
> # Jul 9 07:18:28 Ericsson ntpd: sendto(220.127.116.11): Bad file descriptor
> Here is the debug log of the 'ntpd' I tried to run.
> Debug log of ntpd
> Jul 9 07:18:27 ntpd: ntpd 4.2.0-r Fri Jun 17 14:21:33 PDT 2011 (1)
> Jul 9 07:18:27 ntpd: precision = 1.000 usec
> Jul 9 07:18:27 ntpd: kernel time sync status 0040
> Jul 9 07:18:28 Ericsson ntpd: sendto(18.104.22.168): Bad file descriptor
I've never seen that error but sometimes my /var/run entry
for ntpd doesn't get deleted and ntpd refuses to run with
an error that ntpd is already running. In that case removal
of the file in /var/run is all that's needed.
More information about the questions