# network time sync problem

**URL:** <https://dietpi.com/forum/t/network-time-sync-problem/413>\
**Category:** Troubleshooting\
**Created:** [23 June 2016 11:19 UTC](https://dietpi.com/forum/t/network-time-sync-problem/413 "2016-06-23T11:19:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aidan\_Hedley](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@Aidan\_Hedley](https://dietpi.com/forum/u/Aidan_Hedley)\
**Post date:** [23 June 2016 11:19 UTC](https://dietpi.com/forum/t/network-time-sync-problem/413/1 "2016-06-23T11:19:41Z")

</div>

Hi,  
I am running a new build (yesterday) with option 4 (daemon) for network time sync  
The network time servers do not appear to be updating - hope you can help.

> # root@Diet\_WiPi:~# ntpq -p remote refid st t when poll reach delay offset jitter
> 
> service0-eth4.d .INIT. 16 u - 64 0 0.000 0.000 0.000  
> beastie.deuza.n .INIT. 16 u - 64 0 0.000 0.000 0.000  
> ntp.wide-net.pl .INIT. 16 u - 64 0 0.000 0.000 0.000  
> sircabirus.von- .INIT. 16 u - 64 0 0.000 0.000 0.000  
> root@Diet\_WiPi:~# ^C  
> root@Diet\_WiPi:~# date  
> Sat 16 Apr 16:11:02 BST 2016  
> root@Diet\_WiPi:~#

I don’t need to open ports in my router do I ?

---

<div class="post-metadata">

**Author:** ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)\
**Post date:** [23 June 2016 19:36 UTC](https://dietpi.com/forum/t/network-time-sync-problem/413/2 "2016-06-23T19:36:12Z")

</div>

Hi,

Might be worth trying the built in systemD ntp:

```nohighlight
systemctl unmask systemd-timesyncd
systemctl enable systemd-timesyncd
apt-get purge ntp -y
apt-get autoremove --purge -y
reboot

```

You can then check the status of timesyncd with:

```nohighlight
timedatectl status

```

Give it some time to sync, then it should return this:

```nohighlight
root@DietPi-XU4:~# timedatectl status
      Local time: Thu 2016-06-23 20:35:23 BST
  Universal time: Thu 2016-06-23 19:35:23 UTC
        RTC time: Thu 2016-06-23 19:35:23
       Time zone: Europe/London (BST, +0100)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: yes
 Last DST change: DST began at
                  Sun 2016-03-27 00:59:59 GMT
                  Sun 2016-03-27 02:00:00 BST
 Next DST change: DST ends (the clock jumps one hour backwards) at
                  Sun 2016-10-30 01:59:59 BST
                  Sun 2016-10-30 01:00:00 GMT

```

---

<div class="post-metadata">

**Author:** ![Aidan\_Hedley](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@Aidan\_Hedley](https://dietpi.com/forum/u/Aidan_Hedley)\
**Post date:** [28 June 2016 15:42 UTC](https://dietpi.com/forum/t/network-time-sync-problem/413/3 "2016-06-28T15:42:44Z")

</div>

Took me a while to return to this problem.  
Thanks, a good solution All sorted. 🙂  
Why would it affect 3/3 of my recent builds?

---

<div class="post-metadata">

**Author:** ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)\
**Post date:** [28 June 2016 17:29 UTC](https://dietpi.com/forum/t/network-time-sync-problem/413/4 "2016-06-28T17:29:22Z")

</div>

> [@Aidan Hedley](#):
>
> Why would it affect 3/3 of my recent builds?

Not sure, but most likely an issue with your internal network.

The only thing i can suggest is check the log file for any errors (probably should of done this 1st, but nevermind 🙂 ):

```plaintext
killall -w ntpd
ntpd
sleep 5
cat /var/log/ntpd.log

```
