Upgrading pihole from v5 to v6 causes NTP error

Hello together,

is it planned to fix the NTP error for LXC container in further updates?

ERROR: Error NTP client: Failed to adjust time during NTP sync: Insufficient permissions

I don't think there is anything to be fixed for Pi-hole, it depends on the permissions you give to the LXC container. However, I'm not very experienced with LXC, I cannot advise which settings needs to be changed.

Thank you for the feedback. I know that the lxc is using the time from the host machine.

I changed this settings in /etc/pihole/pihole.toml and the error is gone. If someone have the same error.

  [ntp.ipv4]
    # Should FTL act as network time protocol (NTP) server (IPv4)?
    active = false

  [ntp.ipv6]
    # Should FTL act as network time protocol (NTP) server (IPv6)?
    active = false

  [ntp.sync]
    # Should FTL try to synchronize the system time with an upstream NTP server?
    active = false
1 Like

If you plan on some check script for this then I would suggest disabling it by default for LXC environments since they usually run Unpriviliged and would not have enough rights to adjust the system time :slight_smile:

Detecting that you are running inside a container is far from being trivial, especially when you don't control the OS images being used.

To be honest : I expect users of LXC or VM's to be able to fix this themselves :slight_smile:

My comment was more meant as a FYI in case you feel like doing something about it, but it's totally fine with me if you don't :+1: