You are not logged in.

#1 2014-03-02 01:55:01

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

[SOLVED] I am unable to connect to the Public Time Server

When I attempt to use software time on my computer, I get an error and UTC is set to 7 hours in the future.  If I do not use the software clock's network synchronization, then I have a time discrepancy between the internet and my computer.  Any help would be much appreciated, and thank you in advance.

Last edited by KARNVORbeefRAGE (2014-03-02 18:34:56)


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#2 2014-03-02 02:00:38

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] I am unable to connect to the Public Time Server

Is this a dual boot with Windows?  Also, is /etc/timezone set properly?

Offline

#3 2014-03-02 02:03:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] I am unable to connect to the Public Time Server

What's the output of

timedatectl

Offline

#4 2014-03-02 02:25:27

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

Thanks for the replies!  Yes I do have a dual boot with windows 7, it was installed first and Arch second.
Here is the output:

     

 Local time: Sun 2014-03-02 02:22:04 UTC
  Universal time: Sun 2014-03-02 02:22:04 UTC
        RTC time: Sun 2014-03-02 02:22:04
        Timezone: n/a (UTC, +0000)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: yes
      DST active: n/a

Warning: The RTC is configured to maintain time in the local timezone. This
         mode is not fully supported and will create various problems with time
         zone changes and daylight saving adjustments. If at all possible use
         RTC in UTC, by calling 'timedatectl set-local-rtc 0'.  

I see that it says RTC is configured in the local timezone, and as the Archwiki states: Windows defaults to local.  Does this mean that I will have to reconfigure Windows to UTC?

Last edited by KARNVORbeefRAGE (2014-03-02 02:26:51)


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#5 2014-03-02 02:27:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] I am unable to connect to the Public Time Server

Yes, making Windows use UTC could fix this.

Last edited by karol (2014-03-02 02:27:30)

Offline

#6 2014-03-02 02:29:39

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

Alright, I will try that and report back.  Thank you very much.


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#7 2014-03-02 02:59:25

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] I am unable to connect to the Public Time Server

Don't forget to turn off window's ntp functionality.  Back when I last played with windows, you could make a registry entry to have it use UTC, but I couldn't figure out how to make the time sync actually sync the clock to UTC.  So the time just got totally crazy.

Offline

#8 2014-03-02 03:10:23

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

Ok, I now have the correct output after a little fiddling:

      Local time: Sat 2014-03-01 19:06:22 UTC
  Universal time: Sat 2014-03-01 19:06:22 UTC
        RTC time: Sat 2014-03-01 19:06:22
        Timezone: n/a (UTC, +0000)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: n/a 

Unfortunately, when accessing sites that display the time of posting like google+ I still see the times in the future 2AM on March 2nd.  Thank you WonderWoofy, I will check that.
I am also still unable to use the Public Time Server through KDE 4's date and time auto adjust feature in the settings, although that may be fixed after turning it off in Windows as WonderWoofy suggested.

Last edited by KARNVORbeefRAGE (2014-03-02 03:12:34)


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#9 2014-03-02 03:34:51

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

Alright I have just deactivated the ntp on Windows, but I have another piece that may help.  Whenever I run

ntpd

my time returns to the improper time, but is matches the network time of websites such as google+.
My time now looks as such:

      Local time: Sun 2014-03-02 03:30:00 UTC
  Universal time: Sun 2014-03-02 03:30:00 UTC
        RTC time: Sat 2014-03-01 19:29:57
        Timezone: n/a (UTC, +0000)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: n/a

Last edited by KARNVORbeefRAGE (2014-03-02 03:35:52)


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#10 2014-03-02 03:54:37

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] I am unable to connect to the Public Time Server

Did you actually set up /etc/localtime to point to your proper timezone?

Offline

#11 2014-03-02 04:36:06

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

Yeah, during the install I set it to /US/Pacific, and I had recently set it to that to be sure... interestingly it now reads as UTC as the timezone.


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#12 2014-03-02 04:54:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] I am unable to connect to the Public Time Server

what is the output of `ls -l /etc/localtime`?

Offline

#13 2014-03-02 05:07:47

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

-rw-r--r-- 4 root root 2819 Dec 20 11:36 /etc/localtime

"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#14 2014-03-02 05:22:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] I am unable to connect to the Public Time Server

That's not even a symlink, let alone one pointing to a correct time zone. Reread this: https://wiki.archlinux.org/index.php/Beginners'_Guide#Time_zone

Offline

#15 2014-03-02 05:34:20

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,219

Re: [SOLVED] I am unable to connect to the Public Time Server

Follow the link Scimmia posted.  Read it carefully because you thought you did it but didn't.  I think you should focus on the "Create a symbolic link /etc/localtime/ ...."  If you had done so, your output should be something like

ls -l /etc/localtime                                                                                                                    
lrwxrwxrwx 1 root root 34 Jan 12 21:14 /etc/localtime -> /usr/share/zoneinfo/Canada/Pacific

  Good luck!

Offline

#16 2014-03-02 05:39:14

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

I just reset it using

timedatectl set-timezone US/Pacific

It wouldn't let me recreate the link from the initial install via

ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime

My new output is:

lrwxrwxrwx 1 root root 32 Mar  2 21:45 /etc/localtime -> ../usr/share/zoneinfo/US/Pacific

Last edited by KARNVORbeefRAGE (2014-03-02 05:46:15)


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#17 2014-03-02 05:50:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] I am unable to connect to the Public Time Server

KARNVORbeefRAGE wrote:

It wouldn't let me recreate the link from the initial install via

ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime

Next time, please post the error, for completeness sake.

Offline

#18 2014-03-02 05:52:46

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

Sorry

ln: failed to create symbolic link ‘/etc/localtime’: File exists

"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#19 2014-03-02 05:55:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] I am unable to connect to the Public Time Server

Are you sure it was this error?

Offline

#20 2014-03-02 05:59:40

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

Yes, and everything was set to UTC.  Unfortunately it no longer displays that so I cannot show the old output, the new output is currently:

  Local time: Sat 2014-03-01 21:58:10 PST
  Universal time: Sun 2014-03-02 05:58:10 UTC
        RTC time: Mon 2014-03-03 05:58:09
        Timezone: US/Pacific (PST, -0800)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2013-11-03 01:59:59 PDT
                  Sun 2013-11-03 01:00:00 PST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2014-03-09 01:59:59 PST
                  Sun 2014-03-09 03:00:00 PDT

"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#21 2014-03-02 06:01:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] I am unable to connect to the Public Time Server

Well, it does exist.  One needs to delete the file that is there before creating a soft link.

The real question is, from whence came that file?  Did you create it? If so, Why?  If not, are you sure this is an Arch Linux installation?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#22 2014-03-02 06:13:07

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

I just removed the file:

rm -r /etc/localtime

and relinked it:

ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime

the output of

ls -l /etc/localtime

is as follows:

lrwxrwxrwx 1 root root 30 Mar  1 22:04 /etc/localtime -> /usr/share/zoneinfo/US/Pacific

The command:

timedatectl

gives me the output

      Local time: Sat 2014-03-01 22:04:41 PST
  Universal time: Sun 2014-03-02 06:04:41 UTC
        RTC time: Mon 2014-03-03 06:04:40
        Timezone: US/Pacific (PST, -0800)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2013-11-03 01:59:59 PDT
                  Sun 2013-11-03 01:00:00 PST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2014-03-09 01:59:59 PST
                  Sun 2014-03-09 03:00:00 PDT

For screenfetch:

                   -`
                  .o+`                 
                 `ooo/                 OS: Unknown rolling
                `+oooo:                Kernel: x86_64 Linux 3.13.5-1-ARCH
               `+oooooo:               Uptime: 1h 16m
               -+oooooo+:              Packages: 1070
             `/:-:++oooo+:             Shell: bash 4.2.45
            `/++++/+++++++:            Resolution: 1920x1080
           `/++++++++++++++:           DE: KDE 4.12.2
          `/+++ooooooooooooo/`         WM: KWin
         ./ooosssso++osssssso+`        WM Theme: Aurorae
        .oossssso-````/ossssss+`       GTK Theme: 
       -osssssso.      :ssssssso.      CPU: AMD FX-8350 Eight-Core @ 4GHz
      :osssssss/        osssso+++.     GPU: GeForce GTX 650 Ti
     /ossssssss/        +ssssooo/-     RAM: 1298MB / 7888MB
   `/ossssso+/:-        -:/+osssso+-  
  `+sso+:-`                 `.-/+oso: 
 `++:.                           `-/+/
 .`                                 `/ 

For proof that this is Arch Linux, I apologize for my troubles I am just trying to understand this.


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#23 2014-03-02 07:02:38

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

I have now come up with the following output:

      Local time: Sun 2014-03-02 06:58:40 UTC
  Universal time: Sun 2014-03-02 06:58:40 UTC
        RTC time: Sun 2014-03-02 06:58:39
        Timezone: n/a (UTC, +0000)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a

Please let me know if this is a step forward or a step back from the previous result.  Again thank you all for your time, and I sincerely apologize for all the trouble.
I also still have for my symlink:

lrwxrwxrwx 1 root root 21 Mar  2 06:53 /etc/localtime -> /usr/share/US/Pacific

Last edited by KARNVORbeefRAGE (2014-03-02 07:03:57)


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#24 2014-03-02 16:08:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] I am unable to connect to the Public Time Server

Well....
Your RTC is set to UTC.  That is good. 
Your timezone link is still hosed.  The link should be to /usr/share/zoneinfo/US/Pacific   (Note the emphasis)
NTP is not synchronized.  That could take several minutes.  If it never synchronizes. we need to look at what is happening with tools like ntpq, ntpdc, or ntptrace

Edit: Also I note that your systems perception of UTC is about correct based upon the time that you posted.

Last edited by ewaller (2014-03-02 16:10:03)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#25 2014-03-02 17:26:05

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] I am unable to connect to the Public Time Server

Doh, that was a bonehead move it's fixed:

      Local time: Sun 2014-03-02 09:20:38 PST
  Universal time: Sun 2014-03-02 17:20:38 UTC
        RTC time: Sun 2014-03-02 17:20:38
        Timezone: US/Pacific (PST, -0800)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no                                                                                                                                                                                                                           
      DST active: no
 Last DST change: DST ended at
                  Sun 2013-11-03 01:59:59 PDT
                  Sun 2013-11-03 01:00:00 PST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2014-03-09 01:59:59 PST
                  Sun 2014-03-09 03:00:00 PDT

After using ntpd, ntp is labeled synchronized but I don't believe it is really connecting as the command "ntpdtrace" results in:

localhost.localdomain: stratum 3, offset 0.000000, synch distance 0.057828
74.120.8.2: timed out, nothing received
***Request timed out

"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

Board footer

Powered by FluxBB