Bobcares

Time Synchronization Issues with EC2 – How to fix it

by | Jul 23, 2021

Time Synchronization Issues with EC2? We can help you.

With Coordinated Universal Time for the instances, we can avoid human error.

Here, at Bobcares, we assist our customers with several AWS queries as part of our AWS Support Services.

Today, let us see how our Support Techs fix the Synchronization issue.

 

Time Synchronization Issues with EC2

UTC on the instances facilitates synchronization across the AWS CloudWatch logs, metrics, local logs, and other services.

If necessary, we can use a different time zone to suit the requirements.

 

How to resolve this?

Moving ahead, let us see how our Support Techs go about this query.

 

Unable to change the time using Systems Settings or the Control Panel

We can access the Amazon Time Sync Service from all EC2 instances.

First and foremost, we need to disable the Prohibit access to Control Panel and PC settings policy.

  1. To do so, we open the Local Group Policy Editor.
  2. Then we select User Configuration > Administrative Templates > Control Panel.
  3. We highlight Prohibit access to Control Panel and PC Settings and then select Edit policy setting.
  4. Finally, we select Disabled.
Change it via Command Prompt:
  1. We run a Command Prompt window as Administrator.
  2. Then we enter time or date in the Command Prompt window.
  3. Eventually, we select OK.
  4. Enter the new time or date at the prompt:
    Time in HH:MM:SS AM/PM format.
    Date in mm-dd-yyyy format.

The changes will take effect immediately.

Alternatively, we can use external network time protocol (NTP) sources.

 

The time change doesn’t persist after the system reboots

In the case of Windows Server 2008 or later, we add a RealTimeIsUniversal registry key to make the new time persist after reboot.

If the instance is domain joined to an AWS Managed Microsoft AD directory, we change the time settings to use the domain controller as the time source to avoid a time skew.

Skewing the time breaks authentication. To prevent this, we need to enable the RealTimeIsUniversal registry key before rebooting the instance.

 

The Amazon Time Sync Service is behind other atomic clocks by X minutes

To resync the Amazon Time Sync Service to the instance, our Support Techs suggest:

1. Initially, to reset the NTP server to point to the Amazon Time Sync Service server:

w32tm /config /manualpeerlist:”169.254.169.123,0x9” /syncfromflags:manual /update

2. Then run the following commands:

net stop w32time
w32tm /unregister

3. From the Start menu, we select Run and enter services.msc. Later, we verify that Windows Time is deleted.

4. After that, we run:

W32tm /register
Net start w32time
w32tm /query /configuration /verbose
w32tm /resync /rediscover and w32tm /resync /force
w32tm /query /status /verbose
w32tm /stripchart /computer:169.254.169.123 /period:5
w32tm /query /source

Suppose we see the local CMOS clock. Then we need to wait a few minutes and run the w32tm /query /source command again to verify the source.

[Need help with the process? We are here for you]

 

Conclusion

In short, we saw how our Support Techs fix the time issue for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF