Skip to content
Contents
GuidesOpenWrt

Chrony ignores new NTP sources after saving and applying changes

After LuCI saves a new NTP source, configuration is written, the daemon is loaded, and the time source is selected—three distinct phases. The fact that the source isn't selected does not mean it wasn't loaded.

Applies to · OpenWrt SNAPSHOT · mediatek/filogic · Chrony

What to check

Compare the new server in UCI, generated configuration, and chronyc's actual active sources.

Connect over Ethernet and run the following commands in an SSH session on the router.

chronyc sources -v
chronyc tracking

How to interpret the result

First, check the chronyc sources for new sources. If the entry does not exist, verify the service's configuration file. If the entry exists but has a Reach value of 0, investigate connectivity. If samples are available, examine the selection flag and the current reference source in the tracking section.

Verify and recover

Allow time for samples to accumulate. Verify that the new source becomes reachable and eligible or selected, then inspect the time offset. Restore the previous source list if needed.

Related guide · Identify a new device from OpenWrt lease and access logs

Why is maxsources missing from a generated chrony pool line?

A pool limit saved in UCI on OpenWrt 25.12.2 can be missing from the configuration that chronyd reads. Check three separate values: the section type pool, its section name and the hostname used for time queries.

Compare the saved limit with the generated pool line

Run these read-only checks over SSH on the router. The two lab pools both request a limit of 2 and have distinct loopback addresses so their generated lines can be identified. Match the hostname of each pool on your router.

uci show chrony | grep -E 'pool=|hostname|maxsources'
grep '^pool ' /var/etc/chrony.d/10-uci.conf
grep -n '&& echo maxsources' /etc/init.d/chronyd

Only one generated pool line retains maxsources 2

The isolated x86/64 guest ran OpenWrt 25.12.6 and chrony 4.8-r3. The lab_pool section generated a line without the limit. The section named pool generated maxsources 2. This installed script compares the section name with pool. If your version checks the section type instead, inspect its generated file.

Check source selection before changing anything

The limit caps the number of sources from that pool. DNS answers and NTP reachability still affect how many are usable. Run chronyc sources -v and chronyc tracking on the router. Allow time for samples and check Reach, the selection mark and the reference source. The loopback addresses pictured are lab fixtures.

Back up /etc/config/chrony and check whether the name pool is already taken. If this is your only pool, the name is free and the script checks that name, you can name the existing section pool during maintenance, preserving its hostname and other options. Restart chronyd and read the generated line again. Keep separate pools distinct. If the original time source is lost, restore the backup and restart the service. Edits to the generated file are overwritten when it is regenerated.

Identify a new device from OpenWrt lease and access logs

Explore hardware

Comments