Skip to content

systemd-tImesyncd fails to connect to time server due to failed DNSSEC lookup #15607

Closed

Description

@gearhead

systemd version the issue has been seen with

245

Used distribution

ArchArm RaspberryPi4 - ArchLinuxARM-rpi-4-latest.tar.gz
Also seen on the regular arch arm RPi1 and RPi2/3 images. The initial install works, but systemd-resolved installs the standard resolved.conf file which enables DNSSEC. If this image is then used on another RPi, it fails to get the time and all DNSSEC requests fail which stops most networking.

Expected behaviour you didn't see

successful timesyncd on first boot

Unexpected behaviour you saw

systemd-timesyncd did not run successfully to set the time due to local clock being offset too far from current. All DNSSEC requests then fail. Resolved is set as default to DNSSEC=yes. DNSSEC failures directly relate to no timesync and the local clock being offset from real time.

Steps to reproduce the problem

Create an image and boot it on another RPi. At first boot it cannot resolve any hostnames but can ping/connect to IP addresses just fine.
Resolution (from a booted image that does not have the correct time) is to turn off DNSSEC in /etc/systemd/resolved.conf, restart systemd-resolved, then restart systemd-timesyncd, then reboot. After this you can turn DNSSEC back on and restart systemd-resolved. It seems that as long as you just reboot the RPi, and do not power it off for extended periods, it seems to work fine.

It seems that this will be a problem for first boot of a system before the RTC is set correctly if the system has an RTC and and consistent issues booting of systems without RTCs which a number (most?) SBCs do not have. This has been noted in many places on the web including my comment here:
https://archlinuxarm.org/forum/viewtopic.php?f=9&t=14443

Activity

  1. patrolez commented on May 19, 2020

    @patrolez

    This is also related to #10579 and #5873 if not just to call it that it is the same.

    For now a solution is to distribute pre-configured packages with stable and static-fixed-IP NTP servers within a configuration.

  2. poettering commented on Nov 5, 2020

    @poettering
    Member

    Duplicate of #5873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions