The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

rdate.cpanel.net

Discussion in 'General Discussion' started by bs01, Aug 25, 2008.

  1. bs01

    bs01 Member

    Joined:
    Aug 12, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Using rdate -s rdate.cpanel.net results in the server time bein set approximately 2 minutes out. If I run the command using a different time server the time is set correctly. So either rdate.cpanel.net is sending the wrong time or the server is taking off two minutes (which I can't imagine).

    Is it possible to change the time server that whm uses to update the clock, and if so where? I have looked everywhere I could think of and can only find the entry in the update script, but this gets overwritten if changed and every night the clock resets itself and is two minutes slow. I would also want to change the time server used when updating server time manually in whm.

    Any help would be most appreciated.
     

    Attached Files:

  2. deieno

    deieno Well-Known Member

    Joined:
    Nov 16, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Floripa - Brazil
    For me the diference is 9 minutes...
    anyone knows how to fix?
     
  3. RyanHost

    RyanHost Member

    Joined:
    Jun 3, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm also getting time issues, my server is 2 minutes out each day.
     
  4. bs01

    bs01 Member

    Joined:
    Aug 12, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Seems to be a general problem then. I'll open a support ticket. It would be OK if I knew where to change the time server, though this doesn't really solve the problem permanently.
     
  5. Rooter

    Rooter Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    146
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    Root Administrator
    The only place I know of that explicitly defines the cPanel time server is in rc.local as seen here:
    # grep -i rdate /etc/rc.d/rc.local
    rdate -s rdate.cpanel.net&

    I would setup ntpd to maintain correct time. If you need any hints on how to go about doing this feel free to ask me via IM.
     
  6. rkm11

    rkm11 Active Member

    Joined:
    May 30, 2007
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    There must be a space/time anomaly hovering over the cPanel time server :P
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    A system administrator has informed me that the issues with rdate.cpanel.net should be resolved now.
     
  8. methamp

    methamp Member

    Joined:
    Apr 1, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, FL
    Not fixed here. I have 3 or 4 servers out of time sync and no matter what server I feed rdate, they're all timing out, even time.nist.gov! What's going on here?
     
  9. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    I'd like to add to this thread.

    We monitor our servers using a check in system. Each server checks in with the monitoring system every minute. If a server hasnt checked in for 3 minutes, we get a warning.

    The problem is that randomly every day at least one of our servers is set by rdate three minutes slow. As a result this is triggering the alarm as the monitoring software thinks the server hasnt checked in.

    I've tested this manually by running the rdate command on multiple servers at once - when I did this, four out of thirty servers were set three minutes slow. Yesterday after the automated updates, two servers were three minutes slow and today just one. I update them again by running the rdate command manually and it invariably sets them to the correct time.

    My servers are not losing time on their own. Servers that were previously correct are becoming three minutes slow as a direct result of the rdate schedule.

    I can only presume that cpanel have multiple time servers on a round robin and one of them is three minutes out. Seems pointless synchronsing the time if it is being set wrong.

    Would be great if anyone at cpanel who reads this thread could check on this. If it hasnt resolved itself within a week I will raise a support request.
     
  10. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Ok, after testing this for several weeks I've found the cpanel date servers to be VERY unreliable. Every day we get different servers with the time anything from 3 to 6 minutes out.

    This might not be a problem for most people but we have strict monitoring in place and if a server doesnt check in within 3 minutes it is considered unavailable.

    Frankly, if we allowed the system clocks to keep time instead of using cpanels servers it would be more accurate.

    As I understand it, /etc/rc.d/rc.local only sets the time/date on server reboot - is this right?

    Can anyone tell me how to change the time server from cpanels to a different one? I cant see a cron job anywhere, but this is happening once a day. It is becoming a real pain in the ass to keep changing them manually.

    Any help appreciated.
     
  11. eagle

    eagle Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    just run ntpd?
     
  12. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    If I were to do that, how could I stop cpanel's schedule from overriding it without knowing how cpanel updates the time?

    Besides, there is nothing wrong with the way cpanel has implemented this on the hosting server - its just that their time servers are not accurate, or synchronized - rendering the service pretty useless really.
     
    #12 4u123, Mar 21, 2009
    Last edited: Mar 23, 2009
  13. jack10k

    jack10k Member

    Joined:
    Mar 29, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    one of our servers is 33min faster. any fix for this yet?
     
Loading...

Share This Page