# Ntp syncing sometimes not working

**URL:** <https://community.ntppool.org/t/ntp-syncing-sometimes-not-working/1835>\
**Category:** Uncategorized\
**Created:** [November 11, 2020, 5:18am UTC](https://community.ntppool.org/t/ntp-syncing-sometimes-not-working/1835 "2020-11-11T05:18:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![moots](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@moots](https://community.ntppool.org/u/moots)\
**Post date:** [November 11, 2020, 5:18am UTC](https://community.ntppool.org/t/ntp-syncing-sometimes-not-working/1835/1 "2020-11-11T05:18:33Z")

</div>

## version:

4.2.6p2@1.2194-o Fri Dec 26 13:08:59 UTC 2014 (1)

## config:

```
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
# This configuration file is automatically generated by the Vyatta
# configuration subsystem. Please do not manually edit it.
#
# The first section of this file consists of static parameters
# that can not be changed via the Vyatta configuration subsystem.
#
driftfile /var/lib/ntp/ntp.drift
# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
# Local users may interrogate the ntp server more closely.

restrict 127.0.0.1
restrict ::1

#
# The remainder of this file is for parameters that are set up via
# the Vyatta configuration subsystem.
#

server 192.168.250.70

```

## excute:

/usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:107

## operate:

date -s to modify time (behind the current time more than 1000 secs)

## discover:

1.sometimes it can sync time  
2.when i restart ntp, it always sync time right

---

<div class="post-metadata">

**Author:** ![elljay](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@elljay](https://community.ntppool.org/u/elljay)\
**Post date:** [November 11, 2020, 9:13am UTC](https://community.ntppool.org/t/ntp-syncing-sometimes-not-working/1835/2 "2020-11-11T09:13:11Z")

</div>

Hello @moots

It’s not quite clear from your post, but I guess this is running Vyatta routing software, ntp runs for a while then the time drifts?

My questions would be:  
Is that the only “server” line in the config file?  
Are there any useful ntpd messages in /var/log/syslog?  
192.168. is a local LAN address - is that machine running correctly?

---

<div class="post-metadata">

**Author:** ![moots](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@moots](https://community.ntppool.org/u/moots)\
**Post date:** [November 11, 2020, 11:10am UTC](https://community.ntppool.org/t/ntp-syncing-sometimes-not-working/1835/3 "2020-11-11T11:10:27Z")

</div>

1.yes  
2.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ntppool/original/1X/f110ea6083aaf00e4e24278c56ab2cb86ce2e303.png)  
3.sometimes ntp can sync time

---

<div class="post-metadata">

**Author:** ![moots](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@moots](https://community.ntppool.org/u/moots)\
**Post date:** [November 11, 2020, 11:11am UTC](https://community.ntppool.org/t/ntp-syncing-sometimes-not-working/1835/4 "2020-11-11T11:11:16Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/ntppool/original/1X/7098b02d0452348802ba0a839ce13ba47b8ad7df.png)

---

<div class="post-metadata">

**Author:** ![moots](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@moots](https://community.ntppool.org/u/moots)\
**Post date:** [November 11, 2020, 11:14am UTC](https://community.ntppool.org/t/ntp-syncing-sometimes-not-working/1835/5 "2020-11-11T11:14:20Z")

</div>

time server:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ntppool/original/1X/73da69fd3d6341978d90955b190517a23caeaec3.png)
