[Fixed] Cannot resolve NTP server address: Unrecognized service

Hi,

I have read the other thread with the same title, didn't manage to resolve the issue.
I'm getting error of Cannot resolve NTP server address: Unrecognized service.
Output of pihole-FTL --config ntp

ntp.ipv4.active = true
ntp.ipv4.address = 
ntp.ipv6.active = true
ntp.ipv6.address = 
ntp.sync.active = true
ntp.sync.server = pool.ntp.org
ntp.sync.interval = 3600
ntp.sync.count = 8
ntp.sync.rtc.set = true
ntp.sync.rtc.device = 
ntp.sync.rtc.utc = true

and output of pihole -v:

Core
    Version is v5.18.2-432-ga16e053b (Latest: null)
    Branch is development-v6
    Hash is a16e053b (Latest: a16e053b)
Web
    Version is v5.19-836-g7950f87b (Latest: null)
    Branch is development-v6
    Hash is 7950f87b (Latest: 7950f87b)
FTL
    Version is vDev-cce2c21 (Latest: null)
    Branch is development-v6
    Hash is cce2c210 (Latest: cce2c210)

I'm aware that I can disable the NTP service, but I'd prefer to try resolve the issue.

Thanks for the great work.

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

Hello, thank you

https://tricorder.pi-hole.net/vOV3jOni/

Something is wrong, essential logfiles are missing

*** [ DIAGNOSING ]: contents of /var/log/pihole

-rw-r----- 1 pihole pihole 2 Aug 10 00:00 /var/log/pihole/FTL.log
   -----head of FTL.log------
    

   -----tail of FTL.log------
    

-rw-r----- 1 pihole pihole 0 Aug  8 10:17 /var/log/pihole/webserver.log
   -----head of webserver.log------

   -----tail of webserver.log------

Thanks! This is great and helps us improve Pi-hole overall.

this error comes from gai_strerror and means your system did not know what kind of service "ntp" is.


Could you please run

less /etc/services | grep "^ntp"

and see what this returns? On all my systems, it returns

ntp		123/udp				# Network Time Protocol

In addition to above, please try

pihole checkout ftl fix/ntp_service_unknown

if it resolves the error. Having checked the particular implementation details of getaddrinfo() (and the therein used lookup_serv()) in musl, it seems this should allow NTP to work even on systems which don't know the service beforehand.

Hello,

So less /etc/services | grep "^ntp" didn't return anything, having ran pihole checkout ftl fix/ntp_service_unknown I will give this a try for a little while and see if I get any errors.

If it helps, Raspberry Pi 2 Model B - Old I know

Cheers for your help, massively!

If I remember rightly I used to get the warning every hour, it's been 3hours since appling change and seems to have resolved the problem!

Thanks for confirming - the change has now been merged into the beta code. Please get back on track using

pihole checkout ftl development-v6

as this special branch you are currently on will stop to receive future updates.

Thanks for your hard work and dedication guys.