<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>178968</bug_id>
          
          <creation_ts>2008-12-28 15:16:45 +0000</creation_ts>
          <short_desc>Unable to contact time server when the ntp daemon is running.</short_desc>
          <delta_ts>2021-11-02 12:09:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_clock</component>
          <version>4.9.3</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>triaged</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ljfnord</reporter>
          <assigned_to name="Paul Campbell">paul</assigned_to>
          <cc>adaptee</cc>
    
    <cc>alessandro.ufms</cc>
    
    <cc>ali.sherif10</cc>
    
    <cc>criguada</cc>
    
    <cc>donchar</cc>
    
    <cc>doug</cc>
    
    <cc>giacof</cc>
    
    <cc>gideon</cc>
    
    <cc>kde.bugs</cc>
    
    <cc>kde.org</cc>
    
    <cc>kelytharun</cc>
    
    <cc>leoni.massimiliano1</cc>
    
    <cc>lueck</cc>
    
    <cc>manutortosa</cc>
    
    <cc>MurzNN</cc>
    
    <cc>nortexoid</cc>
    
    <cc>pavel_mendl</cc>
    
    <cc>ruchir.brahmbhatt</cc>
          
          <cf_commitlink>http://commits.kde.org/plasma-desktop/b6ae01ca8ea776c97cc57836401ca9696e2529e8</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>688299</commentid>
    <comment_count>0</comment_count>
    <who name="">ljfnord</who>
    <bug_when>2008-12-28 15:16:45 +0000</bug_when>
    <thetext>Version:            (using KDE 4.1.3)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Unlisted Binary Package

Attempting to enter systemsettings and setting the timezone leads to an error,
&quot;Unable to contact time server: Public Time Server (pool.ntp.org).&quot;  Running the following command...

sudo /usr/lib/kde4/libexec/kcmdatetimehelper &apos;ntp&apos; &apos;5&apos; &apos;Public Time Server (pool.ntp.org)&apos; &apos;asia.pool.ntp.org&apos; &apos;europe.pool.ntp.org&apos; &apos;north-america.pool.ntp.org&apos; &apos;oceania.pool.ntp.org&apos; &apos;enabled&apos; &apos;tz&apos; &apos;America/Chicago&apos;

...results in errors like this...

rdate: connect to address 67.159.26.162: Connection refused
rdate: connect to address 65.254.214.170: Connection refused
rdate: connect to address 64.247.17.255: Connection refused
rdate: connect to address 64.247.17.248: Connection refused
rdate: timed out connecting to 67.59.168.233 after 10 seconds.

OpenNTPD is installed and running properly under ArchLinux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>736267</commentid>
    <comment_count>1</comment_count>
    <who name="Murz">MurzNN</who>
    <bug_when>2009-03-29 11:44:27 +0000</bug_when>
    <thetext>Confirm on Kubuntu 8.10 with KDE 4.2.1.
When I try to turn on &quot;Set date and time automatically&quot; and press &quot;Apply&quot;, I see three error windows:
1. Unable to contact time server: Public Time Server (pool.ntp.org).
2. Can not set date.
3. Error setting new time zone.

On coomand line as user:
$ ntpdate pool.ntp.org
29 Mar 13:42:58 ntpdate[18129]: bind() fails: Permission denied

as root:
~$ kdesudo ntpdate pool.ntp.org
29 Mar 13:44:09 ntpdate[18227]: adjust time server 83.222.4.154 offset 0.000025 sec</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>927337</commentid>
    <comment_count>2</comment_count>
    <who name="Doug Roberts">doug</who>
    <bug_when>2010-03-02 21:04:49 +0000</bug_when>
    <thetext>Same problem with Kubuntu 9.10, KDE 4.4.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>941401</commentid>
    <comment_count>3</comment_count>
    <who name="Kelytha">kelytharun</who>
    <bug_when>2010-03-28 09:50:28 +0000</bug_when>
    <thetext>The bug still exists in KDE 4.4.1 on both Kubuntu and Arch Linux</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>946838</commentid>
    <comment_count>4</comment_count>
    <who name="François Rey">kde.org</who>
    <bug_when>2010-04-08 14:17:12 +0000</bug_when>
    <thetext>Confirmed arch linux 64 bit kde 4.4.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1090117</commentid>
    <comment_count>5</comment_count>
    <who name="Pavel Mendl">pavel_mendl</who>
    <bug_when>2011-02-21 21:21:23 +0000</bug_when>
    <thetext>Confirmed on Debian testing (Squeeze) KDE 4.4.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1090119</commentid>
    <comment_count>6</comment_count>
    <who name="Pavel Mendl">pavel_mendl</who>
    <bug_when>2011-02-21 21:24:34 +0000</bug_when>
    <thetext>*** This bug has been confirmed by popular vote. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1107240</commentid>
    <comment_count>7</comment_count>
    <who name="Burkhard Lück">lueck</who>
    <bug_when>2011-04-12 17:42:07 +0000</bug_when>
    <thetext>Kubuntu 10.10:
$ KDE_LANG=en_US systemsettings --version
Qt: 4.7.0
KDE Development Platform: 4.6.2 (4.6.2)
System Settings: 1.0

Works for me. 
When I turn on &quot;Set date and time automatically&quot; and press &quot;Apply&quot; an authentication dialog pops up asking for my password and the setting is accepted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1116937</commentid>
    <comment_count>8</comment_count>
    <who name="Alessandro Nakamuta">alessandro.ufms</who>
    <bug_when>2011-05-09 05:38:21 +0000</bug_when>
    <thetext>This is happening to me too. KDE 4.6.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1121048</commentid>
    <comment_count>9</comment_count>
    <who name="Alessandro Nakamuta">alessandro.ufms</who>
    <bug_when>2011-05-19 19:06:20 +0000</bug_when>
    <thetext>I disabled ntp daemon and it works. Check if you have ntpd running on the system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1121143</commentid>
    <comment_count>10</comment_count>
    <who name="Burkhard Lück">lueck</who>
    <bug_when>2011-05-20 08:03:26 +0000</bug_when>
    <thetext>Ican confirm:

Without ntp daemon-&gt; works

With ntp daemon -&gt; error &quot;Unable to contact time server: Public Time Server (pool.ntp.org).&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1141511</commentid>
    <comment_count>11</comment_count>
    <who name="Manuel Tortosa">manutortosa</who>
    <bug_when>2011-07-13 21:13:25 +0000</bug_when>
    <thetext>Same problem here using Chakra GNU/Linux with both kde 4.6.5 and 4.7rc2, 

no errors running:

sudo /usr/lib/kde4/libexec/kcmdatetimehelper &apos;ntp&apos; &apos;5&apos; &apos;Public Time Server
(pool.ntp.org)&apos; &apos;asia.pool.ntp.org&apos; &apos;europe.pool.ntp.org&apos;
&apos;north-america.pool.ntp.org&apos; &apos;oceania.pool.ntp.org&apos; &apos;enabled&apos; &apos;tz&apos;
&apos;America/Chicago&apos;

but systemsettings shoots a error &quot;Unable to contact time server: Public Time Server...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321014</commentid>
    <comment_count>12</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-12-04 12:03:47 +0000</bug_when>
    <thetext>Conditions and steps for reproducing.

1. Install the full ntp suite to have both ntpd and ntpdate binaries installed.
2. start the ntpd daemon
3. run &quot;kcmshell4 clock&quot;, enable the &quot;Set date the time automatically&quot; option, and change the timezone, then click apply
4. error</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321108</commentid>
    <comment_count>13</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-12-04 20:56:31 +0000</bug_when>
    <thetext>*** Bug 219035 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1330151</commentid>
    <comment_count>14</comment_count>
    <who name="Massimiliano">leoni.massimiliano1</who>
    <bug_when>2013-01-09 09:08:23 +0000</bug_when>
    <thetext>Still present on Archlinux with KDE 4.9.5.
Disabling ntpd auto-start on boot [~$ systemctl disable ntpd.service] seems to be a workaround though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433140</commentid>
    <comment_count>15</comment_count>
    <who name="Philipp A.">kde.bugs</who>
    <bug_when>2014-02-28 12:40:59 +0000</bug_when>
    <thetext>i also don’t see the setting doing anything.

my hwclock was wrong by 5 minutes, and KDE didn’t set set the correct time within days. (likely not ever). it will only set the time when i manually change the time server and click “apply” (which forces it to sync), but even then it doesn’t set the hwclock, so the clock will be 5 minutes wrong after rebooting.

KDE’s time management is plain broken for me (Archlinux). So the only sane thing is to enable ntp and disable KDE’s time syncing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1458539</commentid>
    <comment_count>16</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-06-29 20:18:20 +0000</bug_when>
    <thetext>*** Bug 336873 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1470839</commentid>
    <comment_count>17</comment_count>
    <who name="giacof">giacof</who>
    <bug_when>2014-09-12 11:25:58 +0000</bug_when>
    <thetext>I confirm this bug on Kubuntu 14.04:

Application: kcmshell4 (4.13.3)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.13.0-36-generic x86_64
Distribution: Ubuntu 14.04.1 LTS

On first attempt the application crashed, then I retried and got the error message reported by OP</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1483917</commentid>
    <comment_count>18</comment_count>
    <who name="Michael D">nortexoid</who>
    <bug_when>2014-12-03 09:01:40 +0000</bug_when>
    <thetext>Still broken in KDE 4.14.1, Kubuntu 14.10, though I have been updating from previous versions so maybe a fresh install would fix it?

Is there a modern-day fix/workaround for this? Is it still broken in Plasma 5/Frameworks 5?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1485331</commentid>
    <comment_count>19</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-12-12 20:32:15 +0000</bug_when>
    <thetext>Probably. We have no maintainer for kcm-clock. Also, with distributions switching to systemd, the complete clock setting stuff should be rewritten anyway. If you know someone who would be able to do it, please point them here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1502590</commentid>
    <comment_count>20</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2015-02-27 19:02:38 +0000</bug_when>
    <thetext>Git commit b6ae01ca8ea776c97cc57836401ca9696e2529e8 by David Edmundson.
Committed on 14/02/2015 at 13:50.
Pushed by davidedmundson into branch &apos;master&apos;.

Add systemd support into the clock KCM as an optional dependency

The current time setting helper is incredibly broken.

It manually tries to run a range of NTP utilities, all of which are
deprecated.

We can just call timedated directly and cut out the middleman as it has
uses polkit anyway.

This is currently an optional dependency, and the original helper still
exists. It makes the code messy, but we have users to support for now.

Detection is done at runtime
Related: bug 196316, bug 311286, bug 317784, bug 319072, bug 337012, bug 339582, bug 241817, bug 320456, bug 317999, bug 337659
REVIEW: 122400

M  +5    -1    kcms/dateandtime/CMakeLists.txt
M  +22   -12   kcms/dateandtime/dateandtime.ui
M  +44   -30   kcms/dateandtime/dtime.cpp
M  +2    -1    kcms/dateandtime/dtime.h
M  +80   -7    kcms/dateandtime/main.cpp
M  +5    -1    kcms/dateandtime/main.h
A  +43   -0    kcms/dateandtime/timedated1.xml

http://commits.kde.org/plasma-desktop/b6ae01ca8ea776c97cc57836401ca9696e2529e8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2074197</commentid>
    <comment_count>21</comment_count>
    <who name="Alberto Salvia Novella">es20490446e</who>
    <bug_when>2021-11-02 12:09:33 +0000</bug_when>
    <thetext>Related: Enabling &quot;set date and time automatically&quot; shall start ntpd.service
https://bugs.kde.org/show_bug.cgi?id=444821</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>