You are not logged in.

#1 2009-10-25 16:23:37

Surrender
Member
Registered: 2008-12-20
Posts: 10

[Solved] Can't Start OpenNTPD

Command:

/etc/rc.d/openntpd restart

Result:

:: Stopping OpenNTPD [FAIL] 
:: Starting OpenNTPD [BUSY]
fatal: stat: No such file or directory
dispatch_imsg in main: pipe closed
Terminating

hmm

Last edited by Surrender (2009-10-25 18:19:42)

Offline

#2 2009-10-25 16:28:52

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: [Solved] Can't Start OpenNTPD

How is your /etc/ntpd.conf looking?

Offline

#3 2009-10-25 16:32:51

Surrender
Member
Registered: 2008-12-20
Posts: 10

Re: [Solved] Can't Start OpenNTPD

MadTux wrote:

How is your /etc/ntpd.conf looking?

/etc/ntpd.conf:

# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)

# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1

# sync to a single server
#server ntp.example.org

# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
servers pool.ntp.org

Offline

#4 2009-10-25 16:39:49

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: [Solved] Can't Start OpenNTPD

Can you try to change the line

servers pool.ntp.org

into

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

Appropriate servers can be found at

http://www.pool.ntp.org/zone/@

Offline

#5 2009-10-25 16:52:57

Surrender
Member
Registered: 2008-12-20
Posts: 10

Re: [Solved] Can't Start OpenNTPD

As per http://www.pool.ntp.org/zone/us, changed ntpd.conf to:

# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)

# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1

# sync to a single server
#server ntp.example.org

# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

No luck.  Command:

/etc/rc.d/openntpd restart

Result:

:: Stopping OpenNTPD [FAIL] 
:: Starting OpenNTPD [BUSY]
fatal: stat: No such file or directory
dispatch_imsg in main: pipe closed
Terminating

Offline

#6 2009-10-25 16:59:51

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: [Solved] Can't Start OpenNTPD

What happens if you execute the following command in a console:

ntpd -s -d

Offline

#7 2009-10-25 17:04:25

Surrender
Member
Registered: 2008-12-20
Posts: 10

Re: [Solved] Can't Start OpenNTPD

MadTux wrote:

What happens if you execute the following command in a console:

ntpd -s -d

Same thing:

fatal: stat: No such file or directory
dispatch_imsg in main: pipe closed
Terminating

Offline

#8 2009-10-25 17:12:45

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: [Solved] Can't Start OpenNTPD

Seems as if it can't find its configuration file. Are you running this as root or as another user?
What are the privileges on the file /etc/ntp.conf?

My file looks as follows:

-rw-r--r-- 1 root root  615 2009-10-25 08:56 /etc/ntpd.conf

Offline

#9 2009-10-25 17:21:41

Surrender
Member
Registered: 2008-12-20
Posts: 10

Re: [Solved] Can't Start OpenNTPD

MadTux wrote:

Seems as if it can't find its configuration file. Are you running this as root or as another user?

I'm running these commands as root.

MadTux wrote:

What are the privileges on the file /etc/ntp.conf?

My file looks as follows:

-rw-r--r-- 1 root root  615 2009-10-25 08:56 /etc/ntpd.conf

# ls -l /etc/ntpd.conf
-rw-r--r-- 1 root root 488 2009-10-25 15:55 /etc/ntpd.conf

Offline

#10 2009-10-25 17:35:31

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: [Solved] Can't Start OpenNTPD

Is there any valuable information about this problem in your /var/log/messages.log?

Offline

#11 2009-10-25 18:00:29

SIGTERM
Member
Registered: 2009-09-19
Posts: 67
Website

Re: [Solved] Can't Start OpenNTPD

I had the same problem about an hour ago. Reinstalling openntpd solved the problem for me.

Offline

#12 2009-10-25 18:15:54

Surrender
Member
Registered: 2008-12-20
Posts: 10

Re: [Solved] Can't Start OpenNTPD

MadTux wrote:

Is there any valuable information about this problem in your /var/log/messages.log?

Not that I can tell.

SIGTERM wrote:

I had the same problem about an hour ago. Reinstalling openntpd solved the problem for me.

That appears to have worked. cool

Thank you both for the help. smile

Offline

#13 2009-10-28 19:50:31

haggy
Member
From: Wild southern germany
Registered: 2007-05-22
Posts: 229
Website

Re: [Solved] Can't Start OpenNTPD

Hey guys!

As i suffered from the same problems, but a reinstall of openntpd did not help (though starting openntpd
from console after bootup did work everytime), i found this:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402939

which basically says, change "Listen *" to "Listen 0.0.0.0" - that is if you use the daemon mode at all of course.
After changing, openntpd started fine on bootup again.

I will post a bugreport.

Offline

#14 2009-10-28 21:02:50

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [Solved] Can't Start OpenNTPD

haggy wrote:

Hey guys!

As i suffered from the same problems, but a reinstall of openntpd did not help (though starting openntpd
from console after bootup did work everytime), i found this:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402939

which basically says, change "Listen *" to "Listen 0.0.0.0" - that is if you use the daemon mode at all of course.
After changing, openntpd started fine on bootup again.

I will post a bugreport.

Excellent work.

Offline

Board footer

Powered by FluxBB