Chrony connectivity is lost after 10 to 15 mints

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have used for logging sensor data while not connected to the Internet.I want to use a GPS receiver for the time. I would like to use gpsd and chrony to achieve this.
here is my chrony.conf file.
# add servers of your timezone for time synchronization
#server 0.asia.pool.ntp.org iburst
# This directive sets the key ID used for authenticating user commands via the
# 'chronyc' program at run time.
# commandkey 1
# I moved the driftfile to /var/lib/chrony to comply with the Debian
# filesystem standard.
driftfile /var/lib/chrony/drift
makestep 1 10
keyfile /etc/chrony/chrony.keys
commandkey 1
# set larger delay to allow the NMEA source to overlap with
# the other sources and avoid the falseticker status
refclock SHM 0 refid GPS precision 1e-1 offset 0.9999 delay 0.5
refclock SOCK /var/run/chrony.ttyS0.sock refid PPS
# Comment this line out to turn off logging.
log tracking measurements statistics
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# Dump measurements when daemon exits.
dumponexit
# Specify directory for dumping measurements.
dumpdir /var/lib/chrony
# This directive lets 'chronyd' to serve time even if unsynchronised to any
# NTP server.
#local stratum 10
# This directive designates subnets (or nodes) from which NTP clients are allowed
# to access to 'chronyd'.
allow 10.0.0.0/24
# This directive forces `chronyd' to send a message to syslog if it
# makes a system clock adjustment larger than a threshold value in seconds.
logchange 0.5
# This directive defines an email address to which mail should be sent
# if chronyd applies a correction exceeding a particular threshold to the
# system clock.
# mailonchange root@localhost 0.5
# This directive tells 'chronyd' to parse the 'adjtime' file to find out if the
# real-time clock keeps local time or UTC. It overrides the 'rtconutc' directive.
hwclockfile /etc/adjtime
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it canâÂÂt be used along with the 'rtcfile' directive.
rtcsync
When I run chronyc tracking and chronyc sources it looks like the my machine is connecting to GPS.
here my Chronyc tracking command output:
Reference ID : 116.122.250.120 (116.122.250.120)
Stratum : 1
Ref time (UTC) : wed sep 18 19:05:11 2018
System time : 0.000564536 seconds fast of NTP time
Last offset : +0.000280794 seconds
RMS offset : 0.000322653 seconds
Frequency : 19.616 ppm fast
Residual freq : +0.003 ppm
Skew : 0.053 ppm
Root delay : 0.039604 seconds
Root dispersion : 0.000406 seconds
Update interval : 1042.6 seconds
Leap status : Normal
chronyc sources command output:
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#* GPS 0 4 0 10y +1823us[+2104us] +/- 21ms
#? PPS 0 4 0 10y -415us[ -143us] +/- 31ms
Problem:
Every thing is working fine but after 10 to 15 mints chronyc sources command showing GPS is not synchronized and my timedatectl command shows NTP not synchronized.
timedatectl command.
Local time: Wed 2018-09-19 11:50:38 PKT
Universal time: Wed 2018-09-19 06:50:38 UTC
RTC time: Wed 2018-09-19 06:50:38
Time zone: Asia/Karachi (PKT, +0500)
Network time on: no
NTP synchronized: no
RTC in local TZ: no
AND
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#? GPS 0 4 0 10y +0ns[ +0ns] +/- 0ns
#? PPS
I followed all the troubleshooting procedures and I am totally stuck figuring out how to fix that ?
ubuntu gpsd chrony
add a comment |Â
up vote
1
down vote
favorite
I have used for logging sensor data while not connected to the Internet.I want to use a GPS receiver for the time. I would like to use gpsd and chrony to achieve this.
here is my chrony.conf file.
# add servers of your timezone for time synchronization
#server 0.asia.pool.ntp.org iburst
# This directive sets the key ID used for authenticating user commands via the
# 'chronyc' program at run time.
# commandkey 1
# I moved the driftfile to /var/lib/chrony to comply with the Debian
# filesystem standard.
driftfile /var/lib/chrony/drift
makestep 1 10
keyfile /etc/chrony/chrony.keys
commandkey 1
# set larger delay to allow the NMEA source to overlap with
# the other sources and avoid the falseticker status
refclock SHM 0 refid GPS precision 1e-1 offset 0.9999 delay 0.5
refclock SOCK /var/run/chrony.ttyS0.sock refid PPS
# Comment this line out to turn off logging.
log tracking measurements statistics
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# Dump measurements when daemon exits.
dumponexit
# Specify directory for dumping measurements.
dumpdir /var/lib/chrony
# This directive lets 'chronyd' to serve time even if unsynchronised to any
# NTP server.
#local stratum 10
# This directive designates subnets (or nodes) from which NTP clients are allowed
# to access to 'chronyd'.
allow 10.0.0.0/24
# This directive forces `chronyd' to send a message to syslog if it
# makes a system clock adjustment larger than a threshold value in seconds.
logchange 0.5
# This directive defines an email address to which mail should be sent
# if chronyd applies a correction exceeding a particular threshold to the
# system clock.
# mailonchange root@localhost 0.5
# This directive tells 'chronyd' to parse the 'adjtime' file to find out if the
# real-time clock keeps local time or UTC. It overrides the 'rtconutc' directive.
hwclockfile /etc/adjtime
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it canâÂÂt be used along with the 'rtcfile' directive.
rtcsync
When I run chronyc tracking and chronyc sources it looks like the my machine is connecting to GPS.
here my Chronyc tracking command output:
Reference ID : 116.122.250.120 (116.122.250.120)
Stratum : 1
Ref time (UTC) : wed sep 18 19:05:11 2018
System time : 0.000564536 seconds fast of NTP time
Last offset : +0.000280794 seconds
RMS offset : 0.000322653 seconds
Frequency : 19.616 ppm fast
Residual freq : +0.003 ppm
Skew : 0.053 ppm
Root delay : 0.039604 seconds
Root dispersion : 0.000406 seconds
Update interval : 1042.6 seconds
Leap status : Normal
chronyc sources command output:
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#* GPS 0 4 0 10y +1823us[+2104us] +/- 21ms
#? PPS 0 4 0 10y -415us[ -143us] +/- 31ms
Problem:
Every thing is working fine but after 10 to 15 mints chronyc sources command showing GPS is not synchronized and my timedatectl command shows NTP not synchronized.
timedatectl command.
Local time: Wed 2018-09-19 11:50:38 PKT
Universal time: Wed 2018-09-19 06:50:38 UTC
RTC time: Wed 2018-09-19 06:50:38
Time zone: Asia/Karachi (PKT, +0500)
Network time on: no
NTP synchronized: no
RTC in local TZ: no
AND
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#? GPS 0 4 0 10y +0ns[ +0ns] +/- 0ns
#? PPS
I followed all the troubleshooting procedures and I am totally stuck figuring out how to fix that ?
ubuntu gpsd chrony
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have used for logging sensor data while not connected to the Internet.I want to use a GPS receiver for the time. I would like to use gpsd and chrony to achieve this.
here is my chrony.conf file.
# add servers of your timezone for time synchronization
#server 0.asia.pool.ntp.org iburst
# This directive sets the key ID used for authenticating user commands via the
# 'chronyc' program at run time.
# commandkey 1
# I moved the driftfile to /var/lib/chrony to comply with the Debian
# filesystem standard.
driftfile /var/lib/chrony/drift
makestep 1 10
keyfile /etc/chrony/chrony.keys
commandkey 1
# set larger delay to allow the NMEA source to overlap with
# the other sources and avoid the falseticker status
refclock SHM 0 refid GPS precision 1e-1 offset 0.9999 delay 0.5
refclock SOCK /var/run/chrony.ttyS0.sock refid PPS
# Comment this line out to turn off logging.
log tracking measurements statistics
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# Dump measurements when daemon exits.
dumponexit
# Specify directory for dumping measurements.
dumpdir /var/lib/chrony
# This directive lets 'chronyd' to serve time even if unsynchronised to any
# NTP server.
#local stratum 10
# This directive designates subnets (or nodes) from which NTP clients are allowed
# to access to 'chronyd'.
allow 10.0.0.0/24
# This directive forces `chronyd' to send a message to syslog if it
# makes a system clock adjustment larger than a threshold value in seconds.
logchange 0.5
# This directive defines an email address to which mail should be sent
# if chronyd applies a correction exceeding a particular threshold to the
# system clock.
# mailonchange root@localhost 0.5
# This directive tells 'chronyd' to parse the 'adjtime' file to find out if the
# real-time clock keeps local time or UTC. It overrides the 'rtconutc' directive.
hwclockfile /etc/adjtime
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it canâÂÂt be used along with the 'rtcfile' directive.
rtcsync
When I run chronyc tracking and chronyc sources it looks like the my machine is connecting to GPS.
here my Chronyc tracking command output:
Reference ID : 116.122.250.120 (116.122.250.120)
Stratum : 1
Ref time (UTC) : wed sep 18 19:05:11 2018
System time : 0.000564536 seconds fast of NTP time
Last offset : +0.000280794 seconds
RMS offset : 0.000322653 seconds
Frequency : 19.616 ppm fast
Residual freq : +0.003 ppm
Skew : 0.053 ppm
Root delay : 0.039604 seconds
Root dispersion : 0.000406 seconds
Update interval : 1042.6 seconds
Leap status : Normal
chronyc sources command output:
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#* GPS 0 4 0 10y +1823us[+2104us] +/- 21ms
#? PPS 0 4 0 10y -415us[ -143us] +/- 31ms
Problem:
Every thing is working fine but after 10 to 15 mints chronyc sources command showing GPS is not synchronized and my timedatectl command shows NTP not synchronized.
timedatectl command.
Local time: Wed 2018-09-19 11:50:38 PKT
Universal time: Wed 2018-09-19 06:50:38 UTC
RTC time: Wed 2018-09-19 06:50:38
Time zone: Asia/Karachi (PKT, +0500)
Network time on: no
NTP synchronized: no
RTC in local TZ: no
AND
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#? GPS 0 4 0 10y +0ns[ +0ns] +/- 0ns
#? PPS
I followed all the troubleshooting procedures and I am totally stuck figuring out how to fix that ?
ubuntu gpsd chrony
I have used for logging sensor data while not connected to the Internet.I want to use a GPS receiver for the time. I would like to use gpsd and chrony to achieve this.
here is my chrony.conf file.
# add servers of your timezone for time synchronization
#server 0.asia.pool.ntp.org iburst
# This directive sets the key ID used for authenticating user commands via the
# 'chronyc' program at run time.
# commandkey 1
# I moved the driftfile to /var/lib/chrony to comply with the Debian
# filesystem standard.
driftfile /var/lib/chrony/drift
makestep 1 10
keyfile /etc/chrony/chrony.keys
commandkey 1
# set larger delay to allow the NMEA source to overlap with
# the other sources and avoid the falseticker status
refclock SHM 0 refid GPS precision 1e-1 offset 0.9999 delay 0.5
refclock SOCK /var/run/chrony.ttyS0.sock refid PPS
# Comment this line out to turn off logging.
log tracking measurements statistics
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# Dump measurements when daemon exits.
dumponexit
# Specify directory for dumping measurements.
dumpdir /var/lib/chrony
# This directive lets 'chronyd' to serve time even if unsynchronised to any
# NTP server.
#local stratum 10
# This directive designates subnets (or nodes) from which NTP clients are allowed
# to access to 'chronyd'.
allow 10.0.0.0/24
# This directive forces `chronyd' to send a message to syslog if it
# makes a system clock adjustment larger than a threshold value in seconds.
logchange 0.5
# This directive defines an email address to which mail should be sent
# if chronyd applies a correction exceeding a particular threshold to the
# system clock.
# mailonchange root@localhost 0.5
# This directive tells 'chronyd' to parse the 'adjtime' file to find out if the
# real-time clock keeps local time or UTC. It overrides the 'rtconutc' directive.
hwclockfile /etc/adjtime
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it canâÂÂt be used along with the 'rtcfile' directive.
rtcsync
When I run chronyc tracking and chronyc sources it looks like the my machine is connecting to GPS.
here my Chronyc tracking command output:
Reference ID : 116.122.250.120 (116.122.250.120)
Stratum : 1
Ref time (UTC) : wed sep 18 19:05:11 2018
System time : 0.000564536 seconds fast of NTP time
Last offset : +0.000280794 seconds
RMS offset : 0.000322653 seconds
Frequency : 19.616 ppm fast
Residual freq : +0.003 ppm
Skew : 0.053 ppm
Root delay : 0.039604 seconds
Root dispersion : 0.000406 seconds
Update interval : 1042.6 seconds
Leap status : Normal
chronyc sources command output:
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#* GPS 0 4 0 10y +1823us[+2104us] +/- 21ms
#? PPS 0 4 0 10y -415us[ -143us] +/- 31ms
Problem:
Every thing is working fine but after 10 to 15 mints chronyc sources command showing GPS is not synchronized and my timedatectl command shows NTP not synchronized.
timedatectl command.
Local time: Wed 2018-09-19 11:50:38 PKT
Universal time: Wed 2018-09-19 06:50:38 UTC
RTC time: Wed 2018-09-19 06:50:38
Time zone: Asia/Karachi (PKT, +0500)
Network time on: no
NTP synchronized: no
RTC in local TZ: no
AND
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#? GPS 0 4 0 10y +0ns[ +0ns] +/- 0ns
#? PPS
I followed all the troubleshooting procedures and I am totally stuck figuring out how to fix that ?
ubuntu gpsd chrony
ubuntu gpsd chrony
asked Sep 19 at 6:56
user311590
61
61
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469940%2fchrony-connectivity-is-lost-after-10-to-15-mints%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password