LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ntpdate - no servers can be used, exiting (https://www.linuxquestions.org/questions/linux-newbie-8/ntpdate-no-servers-can-be-used-exiting-620795/)

Jedimastersa 02-13-2008 06:32 AM

ntpdate - no servers can be used, exiting
 
Hi,

This is my 1st post here. I have searched this error online for most of the day and am unable to come up with a fix for my problem. Even within the forum

I have Installed Debian Etch, I have updated all my software using apt

I wanted to the add the Linux machine to my Windows 2003 AD domain, for various reasons.

I followed a howto on configuring the machine to be added to the domain. Everything has worked fine. The machine is on the domain. Excpet I cannot log onto the machine using on of my domain users accounts. I suspected the time setting to be the problem because my time is wrong.

The timezone settings are correct. I have manually set the time using the "date --set" command

I have edited my "/etc/default/rcS" file and turned UTC off as well.

I have manually synced the time with my DC using the "ntpdate servername" command.

I have checked the time in my BIOS, I have checked my BIOS Battery. They are all ok.

Yet after rebooting the machine the time changes to almost 2 hours ahead of what it should be.

When I run ntpdate -q I get the error "ntpdate[2671]: no servers can be used, exiting"

In my ntp.conf file I have my DC set as the ntp server, I have checked on a XP machine and it is working fine as an NTP server, plus if it was not working correctly I would have logon issues with the XP machines as well.

I must be missing something somewhere can anyone help?

Matir 02-13-2008 07:00 AM

ntpdate does not use ntp.conf -- that file is used by ntpd.

vectro 08-10-2008 07:15 PM

Include the time server in the command:

ntpdate 0.us.pool.ntp.org

If it says the ntp socket is already in use then turn off ntpd before running ntpdate.

glasshut 08-13-2009 04:26 PM

tail /var/log/messages
 
If you run
tail /var/log/messages
You may see something that you can easily fix that will be messing with the time on your server. For instance I had one server that didn't have any other reason to go to the internet (phone server)... so then I was able to see 'Network is unreachable' and then realize I needed to configure a gateway. After this simple fix nfsd worked fine.

JamesAM 10-19-2018 07:16 AM

Quote:

Originally Posted by Jedimastersa (Post 3055539)
Yet after rebooting the machine the time changes to almost 2 hours ahead of what it should be.

I always ask the smh questions first. What time zone are you in? What time zone does your OS think you're in?


All times are GMT -5. The time now is 09:54 AM.