#1 (permalink)  
Old 11-03-2006, 04:36 AM
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 48
westhost-neil is on a distinguished road
Server Time jumped forward 12 hours.

I had a lot of complaints this morning from customers saying that emails & orders are being sent with the wrong date.

When I looked the servers time was set 12 hours in advance. Further investigation showed that the change occured at 2.15am which is exactly the same time that /scripts/upcp gets run.

So I've synced the server time and also synced it to the hardware clock (which was an hour out) but how can I be sure this won't happen again?

I've checked the timezone but it's impossible to know what it was set on as it just shows the first entry in the dropdown. Anyway I've updated this with the correct time zone now but would like to know what the cause might be.

Does upcp do a timesync when it runs, could it be that the timezone was set incorrectly, if so why did this only happen today. Is it something to do with the clocks going back at the weekend?

Any help would be appreciated.

Neil
__________________
It's just me and my server now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-03-2006, 04:47 AM
Registered User
 
Join Date: Jan 2006
Posts: 19
nbento is on a distinguished road
Im having the same problem.
Care to explauin what you did because no matter what I always end up with 10 hours in advance.
I also did a sync tiem on the server everything gets ok but 1 minute later it drives back to 10 hours.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-03-2006, 04:56 AM
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 48
westhost-neil is on a distinguished road
Hi,

I didn't do much to sort my problem out as it wasn't as bad as the problem your having.

I had a feeling the system clock was out so I ran:

Quote:
/sbin/hwclock --hctosys
This changed the system time to one hour ahead. So in cPanel I resynced the time and made sure it was correct then I ran

Quote:
/sbin/hwclock --systohc
This set the hardware clock to the correct time.

Have you checked to see if you have a cronjob that runs every minute that may be altering the time. Also change the timezone to the correct one, I don't know a way of checking the current timezone so I just set it what it should be.

Hope that helps
__________________
It's just me and my server now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-03-2006, 04:59 AM
Registered User
 
Join Date: Nov 2002
Posts: 83
mooony
I had the same problem this morning.

To fix it I did this:

login into WHM. Server Configuration -> Server Time

Now select your time zone and update it. Once you did this you go back and do sync time. Now you server is synced.

The only big problem is that all the log files are messed up. Is there a way to clean them up?

Thanks Ronald
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-03-2006, 05:08 AM
Registered User
 
Join Date: Jan 2006
Posts: 19
nbento is on a distinguished road
Quote:
Originally Posted by mooony View Post
I had the same problem this morning.

To fix it I did this:

login into WHM. Server Configuration -> Server Time

Now select your time zone and update it. Once you did this you go back and do sync time. Now you server is synced.

The only big problem is that all the log files are messed up. Is there a way to clean them up?

Thanks Ronald
Thats what I tried in the first place but it doesnt work.
I change the timezone to my time, it reloads fine, but when I check again Im again on Africa time zone.
If I sync the time it sync well, but when you check again Im again on africa time zone.
This is weird.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-03-2006, 05:23 AM
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 48
westhost-neil is on a distinguished road
Quote:
I change the timezone to my time, it reloads fine, but when I check again Im again on Africa time zone.
I don't think that means it's set to Africa, mine says the same. I'm sure the dropdown selection is done, but it doesn't select it when you reload the page.
__________________
It's just me and my server now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-03-2006, 05:29 AM
Registered User
 
Join Date: Jan 2006
Posts: 19
nbento is on a distinguished road
I found the problem on another thread here

Run this on the shell prompt
rdate -s rdate.cpanel.net

But now my logs are all messed up and I have 5 sites that are dependent fromthe stats.

Any idea on how to fix this?
I mean awstats still show 12 hours ahead, alhtough the server is ok now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-03-2006, 06:39 AM
Registered User
 
Join Date: Oct 2006
Location: france
Posts: 2
gantz is on a distinguished road
All the same for me.

And it's really disturbing for my vB where all messages are messed up, since last posts are shown as posted TONIGHT, so actual posts with real time are thrown away in the middle of the topics instead of beeing considered as last ones.

How did that happen ?!
What could be done ?!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-03-2006, 06:55 AM
Registered User
 
Join Date: Nov 2003
Posts: 36
gemininetcom is an unknown quantity at this point
Found this morning same problem. I did update/sync in WHM Server Time, as Moony also did. The screwup of logfiles does not have an easy solution, unless you want to correct all manually. I figured just to leave it. /var/log/messages and /var/log/secure are sequentially written to anyway, so if you read thru them, you quickly notice the 12hr jump and jump back when I sync-ed time. However, it does not solve the problem that /scripts/upcp screwed it up and can do it again unless cPanel staff figures out what went wrong
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-03-2006, 07:06 AM
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 48
westhost-neil is on a distinguished road
This only happened on one of my servers. Running WHM 10.8.0 cPanel 10.9.0-C56.

Have another server in the same location running the same version that was unaffected.

Only difference, the one that was affected is running Red Hat ES 3 and the unaffected one is running Fedora Core 4.
__________________
It's just me and my server now.

Last edited by westhost-neil; 11-03-2006 at 07:08 AM. Reason: Add more information.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 11-03-2006, 07:08 AM
Registered User
 
Join Date: Nov 2003
Posts: 36
gemininetcom is an unknown quantity at this point
Here running 10.9.0-RELEASE_57
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 11-03-2006, 07:28 AM
Registered User
 
Join Date: Jan 2004
Posts: 79
minotauro
Thumbs down rdate.cpanel.net

Hello,

The same problem here.

Regards,
Minotauro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 11-03-2006, 07:58 AM
Registered User
 
Join Date: Dec 2003
Posts: 6
Pyrix
cPanel really need to look into this - it screwed up the site on our server so we had to turn it off and is a pointless waste of my time when i have to good hour or two running queries to try and get all the posts in our vBulletin forum and gallery back to where they should be!

For those with vB forums or Photopost galleries that were affected - if you can find the ids of the last and first posts affected you can run the following queries:

vB Posts:
UPDATE post SET dateline = dateline - 43200 WHERE postid <= ID OF LAST AFFECTED POST and postid >= ID OF FIRST AFFECTED POST

Then you'll need to update your thread and forum counters in the vBulletin Admin CP

Photopost Photos:
UPDATE photos SET date = date - 43200 WHERE id <= ID OF LAST AFFECTED POST and id >= ID OF FIRST AFFECTED POST

Photopost Comments:
UPDATE comments SET date = date - 43200 WHERE id <= ID OF LAST AFFECTED POST and id >= ID OF FIRST AFFECTED POST

I post these with no guarantee that they won't blow your server up, ruin your forum, steal your girlfriend, kill your fish etc! I recommend you do a backup and do a SELECT first to make sure you're affecting the right entries the database!

EG: SELECT * FROM post WHERE postid <= ID OF LAST AFFECTED POST and postid >= ID OF FIRST AFFECTED POST

Having said that, hope this helps someone!

Edit: You can check the times of the timestamps in the database by using this convertor; http://www.onlineconversion.com/unix_time.htm

Last edited by Pyrix; 11-03-2006 at 08:00 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 11-03-2006, 08:46 AM
K-G K-G is offline
Registered User
 
Join Date: Feb 2005
Posts: 12
K-G is on a distinguished road
or waiting 12 hours will correct the thread marking system? i dont care about the wrong dates on posts/threads rightnow but what i do care is threda marking system on my vbulletin forums.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 11-03-2006, 09:03 AM
Registered User
 
Join Date: Dec 2003
Posts: 6
Pyrix
It should do, yes - i'm assuming you're using cookie based marking rather than database-based?

Best place to ask would be vbulletin.com me thinks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:56 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc