LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-18-2006, 03:00 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
power outage messed up clock


I use ntpdate to keep my clock up to date, its just a cron job that runs once a day. We had a power outage, and for some strange reason the clock is behind 1 hour now, even though the power outage has nothing to do with the clock as the job would not of even ran in that time frame.

And in FC4 you cant just type ntpdate, as no matter what, it just says no servers are found, even though they're configured. So I tried ntpdate 0.pool.ntp.org but I get this error:

18 Oct 15:02:44 ntpdate[2646]: the NTP socket is in use, exiting

What exactly is going on? And how can I get my time set right?
 
Old 10-18-2006, 03:59 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
It's still running (but it's lost its little mind).

Make sure you're connected to the internet, be root, run ps -ef | grep ntp, kill -9 whatever PIDs show up (check that they die). Then run ntpdate with a couple of pool servers in the argument, something like this:
Code:
/usr/sbin/ntpdate -v 0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.ntp.org
It should be able to slew the clock to the correct time.
 
Old 10-18-2006, 04:00 PM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
It's still running (but it's lost its little mind).

Make sure you're connected to the internet, be root, run ps -ef | grep ntp, kill -9 whatever PIDs show up (check that they die). Then run ntpdate with a couple of pool servers in the argument, something like this:
Code:
/usr/sbin/ntpdate -v 0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.ntp.org
It should be able to slew the clock to the correct time.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
10.1 some errors after power outage future assassin Slackware 3 11-04-2005 05:33 PM
RAID 5 after Power outage RabidSquirrel Linux - Hardware 3 08-02-2005 06:46 PM
power outage jbzy3000 Linux - General 2 02-24-2005 09:11 PM
Power Outage horror Hampster Mandriva 5 01-13-2005 08:38 PM
Power Outage notslim General 30 08-28-2003 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration