You are not logged in.

#1 2008-03-29 02:10:23

gav616
Member
Registered: 2008-01-16
Posts: 182

[SOLVED] ntp just funked my system

ok i realise ntp has synced my clock to 1970, i try to sync it back to normal with ntupdate then reboot

sudo then says its out of sync, or something, so i search for a solution, google came up with a "sudo -K" which makes sudo work, but now i can't build anything ("==> ERROR: Build Failed." Aborting... "Error: Makepkg was unable to build amule-cvs package." ect..)
and loads of root files are created or modified at 1970

do i need to flush my whole system some how?

Last edited by gav616 (2008-03-31 00:37:29)

Offline

#2 2008-03-29 10:29:03

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] ntp just funked my system

What's the big deal with using sudo? Just use su. Then set the correct time:

rdate -s ntp.demon.co.uk

Or use the date command.

See ntp config.

I suppose you'll have to search for a utility, to fix the bad file timestamps.

Offline

#3 2008-03-29 14:25:29

gav616
Member
Registered: 2008-01-16
Posts: 182

Re: [SOLVED] ntp just funked my system

sorry i didn't post very good, my time has been sorted the question was why does having had the time at 1970 now not allow me to build anything?
or I'm assuming that's what's causing the not descriptive error

Offline

#4 2008-03-29 16:43:38

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED] ntp just funked my system

It seems to me that you could use something like
find . -mtime +3650

that should find only the files with 1970 dates.  And then take the output of that command, clean it up, and 'touch' all those files and bring them up to today.

There is probably some really elegant one-line way to do it, but I'm a beginner; I'd do it in 3 steps.

Offline

#5 2008-03-29 16:56:28

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] ntp just funked my system

At the end of the find command:

-exec touch '{}' \;

Offline

#6 2008-03-30 21:00:07

gav616
Member
Registered: 2008-01-16
Posts: 182

Re: [SOLVED] ntp just funked my system

ok i did;

$ find . -mtime +3650 -exec touch '{}' \;

...now i can build amule-cvs ect....

well, thank you very much guys.

Offline

#7 2008-03-30 22:05:45

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED] ntp just funked my system

Great!  big_smile

Please mark this thread as solved, so others who have the same problem can see that it's solvable...

Offline

#8 2008-03-30 23:15:25

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [SOLVED] ntp just funked my system

tigrmesh wrote:

Great!  big_smile

Please mark this thread as solved, so others who have the same problem can see that it's solvable...

You gotta do it yourself wink
Go KISS! big_smile

Anyway, just edit the title of your first post, and that's it.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

Board footer

Powered by FluxBB