systemd-timesyncd service is running in idle and doesn't synchronize time












0















I'm trying to synchronize time on my Intel NUC that is running Ubuntu 16.04.3 LTS with an NTP server that is running on a Windows PC.



I already checked that the NTP server is running correctly.



It seems to me as if the service doesn't read from the config file /etc/systemd/timesyncd.conf



Output of timedatectl status



      Local time: Wed 2019-01-16 21:32:01 CET
Universal time: Wed 2019-01-16 20:32:01 UTC
RTC time: Wed 2019-01-16 20:32:01
Time zone: Europe/Vienna (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no


Output of systemctl status systemd-timesyncd right after systemctl restart systemd-timesyncd



● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor pr
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: active (running) since Wed 2019-01-16 21:36:08 CET; 11s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 2316 (systemd-timesyn)
Status: "Idle."
CGroup: /system.slice/systemd-timesyncd.service
└─2316 /lib/systemd/systemd-timesyncd

Jan 16 21:36:08 coretv systemd[1]: Starting Network Time Synchronization...
Jan 16 21:36:08 coretv systemd[1]: Started Network Time Synchronization.


My config file in /etc/systemd/timesyncd.conf



#  This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.

[Time]
NTP=192.168.20.1
#FallbackNTP=ntp.ubuntu.com


If it changes anything, all commands are run as root over an ssh connection.



Is there something I'm missing?





Edit:



I don't have time to play around with this issue anymore. I will use a workaround on my end so I don't have to rely on the system time.



Answers are still appreciated since fixing this would be a much cleaner solution.










share|improve this question









New contributor




Matthias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • You can try ntpd instead of timedatectl: askubuntu.com/a/1046217/231142 In the ntp.conf file you would put server 192.168.20.1

    – Terrance
    Jan 16 at 14:17













  • @Terrance I could if I had a way to download the package. This is my only Ubuntu machine and it doesn't have access to the internet.

    – Matthias
    Jan 16 at 15:08











  • Try the second answer below mine in the linked answer I put there. If not, you probably will have to find a temporary way to get internet on it, or try many number of offline ways to get other applications installed into your Ubuntu. askubuntu.com/questions/974/…

    – Terrance
    Jan 16 at 15:38
















0















I'm trying to synchronize time on my Intel NUC that is running Ubuntu 16.04.3 LTS with an NTP server that is running on a Windows PC.



I already checked that the NTP server is running correctly.



It seems to me as if the service doesn't read from the config file /etc/systemd/timesyncd.conf



Output of timedatectl status



      Local time: Wed 2019-01-16 21:32:01 CET
Universal time: Wed 2019-01-16 20:32:01 UTC
RTC time: Wed 2019-01-16 20:32:01
Time zone: Europe/Vienna (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no


Output of systemctl status systemd-timesyncd right after systemctl restart systemd-timesyncd



● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor pr
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: active (running) since Wed 2019-01-16 21:36:08 CET; 11s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 2316 (systemd-timesyn)
Status: "Idle."
CGroup: /system.slice/systemd-timesyncd.service
└─2316 /lib/systemd/systemd-timesyncd

Jan 16 21:36:08 coretv systemd[1]: Starting Network Time Synchronization...
Jan 16 21:36:08 coretv systemd[1]: Started Network Time Synchronization.


My config file in /etc/systemd/timesyncd.conf



#  This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.

[Time]
NTP=192.168.20.1
#FallbackNTP=ntp.ubuntu.com


If it changes anything, all commands are run as root over an ssh connection.



Is there something I'm missing?





Edit:



I don't have time to play around with this issue anymore. I will use a workaround on my end so I don't have to rely on the system time.



Answers are still appreciated since fixing this would be a much cleaner solution.










share|improve this question









New contributor




Matthias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • You can try ntpd instead of timedatectl: askubuntu.com/a/1046217/231142 In the ntp.conf file you would put server 192.168.20.1

    – Terrance
    Jan 16 at 14:17













  • @Terrance I could if I had a way to download the package. This is my only Ubuntu machine and it doesn't have access to the internet.

    – Matthias
    Jan 16 at 15:08











  • Try the second answer below mine in the linked answer I put there. If not, you probably will have to find a temporary way to get internet on it, or try many number of offline ways to get other applications installed into your Ubuntu. askubuntu.com/questions/974/…

    – Terrance
    Jan 16 at 15:38














0












0








0








I'm trying to synchronize time on my Intel NUC that is running Ubuntu 16.04.3 LTS with an NTP server that is running on a Windows PC.



I already checked that the NTP server is running correctly.



It seems to me as if the service doesn't read from the config file /etc/systemd/timesyncd.conf



Output of timedatectl status



      Local time: Wed 2019-01-16 21:32:01 CET
Universal time: Wed 2019-01-16 20:32:01 UTC
RTC time: Wed 2019-01-16 20:32:01
Time zone: Europe/Vienna (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no


Output of systemctl status systemd-timesyncd right after systemctl restart systemd-timesyncd



● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor pr
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: active (running) since Wed 2019-01-16 21:36:08 CET; 11s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 2316 (systemd-timesyn)
Status: "Idle."
CGroup: /system.slice/systemd-timesyncd.service
└─2316 /lib/systemd/systemd-timesyncd

Jan 16 21:36:08 coretv systemd[1]: Starting Network Time Synchronization...
Jan 16 21:36:08 coretv systemd[1]: Started Network Time Synchronization.


My config file in /etc/systemd/timesyncd.conf



#  This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.

[Time]
NTP=192.168.20.1
#FallbackNTP=ntp.ubuntu.com


If it changes anything, all commands are run as root over an ssh connection.



Is there something I'm missing?





Edit:



I don't have time to play around with this issue anymore. I will use a workaround on my end so I don't have to rely on the system time.



Answers are still appreciated since fixing this would be a much cleaner solution.










share|improve this question









New contributor




Matthias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I'm trying to synchronize time on my Intel NUC that is running Ubuntu 16.04.3 LTS with an NTP server that is running on a Windows PC.



I already checked that the NTP server is running correctly.



It seems to me as if the service doesn't read from the config file /etc/systemd/timesyncd.conf



Output of timedatectl status



      Local time: Wed 2019-01-16 21:32:01 CET
Universal time: Wed 2019-01-16 20:32:01 UTC
RTC time: Wed 2019-01-16 20:32:01
Time zone: Europe/Vienna (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no


Output of systemctl status systemd-timesyncd right after systemctl restart systemd-timesyncd



● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor pr
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: active (running) since Wed 2019-01-16 21:36:08 CET; 11s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 2316 (systemd-timesyn)
Status: "Idle."
CGroup: /system.slice/systemd-timesyncd.service
└─2316 /lib/systemd/systemd-timesyncd

Jan 16 21:36:08 coretv systemd[1]: Starting Network Time Synchronization...
Jan 16 21:36:08 coretv systemd[1]: Started Network Time Synchronization.


My config file in /etc/systemd/timesyncd.conf



#  This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.

[Time]
NTP=192.168.20.1
#FallbackNTP=ntp.ubuntu.com


If it changes anything, all commands are run as root over an ssh connection.



Is there something I'm missing?





Edit:



I don't have time to play around with this issue anymore. I will use a workaround on my end so I don't have to rely on the system time.



Answers are still appreciated since fixing this would be a much cleaner solution.







16.04 services sync time ntp






share|improve this question









New contributor




Matthias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Matthias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago







Matthias













New contributor




Matthias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Jan 16 at 14:10









MatthiasMatthias

12




12




New contributor




Matthias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Matthias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Matthias is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • You can try ntpd instead of timedatectl: askubuntu.com/a/1046217/231142 In the ntp.conf file you would put server 192.168.20.1

    – Terrance
    Jan 16 at 14:17













  • @Terrance I could if I had a way to download the package. This is my only Ubuntu machine and it doesn't have access to the internet.

    – Matthias
    Jan 16 at 15:08











  • Try the second answer below mine in the linked answer I put there. If not, you probably will have to find a temporary way to get internet on it, or try many number of offline ways to get other applications installed into your Ubuntu. askubuntu.com/questions/974/…

    – Terrance
    Jan 16 at 15:38



















  • You can try ntpd instead of timedatectl: askubuntu.com/a/1046217/231142 In the ntp.conf file you would put server 192.168.20.1

    – Terrance
    Jan 16 at 14:17













  • @Terrance I could if I had a way to download the package. This is my only Ubuntu machine and it doesn't have access to the internet.

    – Matthias
    Jan 16 at 15:08











  • Try the second answer below mine in the linked answer I put there. If not, you probably will have to find a temporary way to get internet on it, or try many number of offline ways to get other applications installed into your Ubuntu. askubuntu.com/questions/974/…

    – Terrance
    Jan 16 at 15:38

















You can try ntpd instead of timedatectl: askubuntu.com/a/1046217/231142 In the ntp.conf file you would put server 192.168.20.1

– Terrance
Jan 16 at 14:17







You can try ntpd instead of timedatectl: askubuntu.com/a/1046217/231142 In the ntp.conf file you would put server 192.168.20.1

– Terrance
Jan 16 at 14:17















@Terrance I could if I had a way to download the package. This is my only Ubuntu machine and it doesn't have access to the internet.

– Matthias
Jan 16 at 15:08





@Terrance I could if I had a way to download the package. This is my only Ubuntu machine and it doesn't have access to the internet.

– Matthias
Jan 16 at 15:08













Try the second answer below mine in the linked answer I put there. If not, you probably will have to find a temporary way to get internet on it, or try many number of offline ways to get other applications installed into your Ubuntu. askubuntu.com/questions/974/…

– Terrance
Jan 16 at 15:38





Try the second answer below mine in the linked answer I put there. If not, you probably will have to find a temporary way to get internet on it, or try many number of offline ways to get other applications installed into your Ubuntu. askubuntu.com/questions/974/…

– Terrance
Jan 16 at 15:38










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Matthias is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110282%2fsystemd-timesyncd-service-is-running-in-idle-and-doesnt-synchronize-time%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Matthias is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Matthias is a new contributor. Be nice, and check out our Code of Conduct.













Matthias is a new contributor. Be nice, and check out our Code of Conduct.












Matthias is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110282%2fsystemd-timesyncd-service-is-running-in-idle-and-doesnt-synchronize-time%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

格利澤436b

When can things happen in Etherscan, such as the picture below?