[Error] systemd-timesyncd

During the fresh installation of Hestia CP on Debian 12, I encountered this error.

[ * ] Configuring system settings...
**sed: can't read /etc/systemd/timesyncd.conf: No such file or directory**
**Failed to enable unit: Unit file systemd-timesyncd.service does not exist.**
**Failed to start systemd-timesyncd.service: Unit systemd-timesyncd.service not found.**
[ * ] Configuring Hestia Control Panel...
[ * ] Configuring OpenSSL to improve TLS performance...
[ * ] Generating default self-signed SSL certificate...
[ * ] Adding SSL certificate to Hestia Control Panel...
[ * ] Enabling SFTP jail...
[ * ] Creating default admin account...
[ * ] Configuring NGINX...
[ * ] Updating Cloudflare IP Ranges for Nginx...
[ * ] Installing PHP 8.2...
[ * ] Configuring PHP-FPM 8.2...
[ * ] Configuring PHP...
[ * ] Configuring MariaDB database server...
[ * ] Installing phpMyAdmin version v5.2.1...
[ * ] Configuring File Manager...
[ * ] Configuring PHP dependencies...
[ * ] Installing Rclone...
[ * ] Configuring System IP...
sed: can't read /usr/local/hestia/data/firewall/chains.conf: No such file or directory

I am using NTP Package called NTPsec for debian 12.

ntpsec package

ntpsec is a security hardened fork of the reference implementation. On Debian Bookworm (and later) NTP is a transitional package to ntpsec.

Reference:
https://wiki.debian.org/DateTime

NPTsec is running and sync.

Hestia doesn’t expect ntpsec (NTP Server) to be installed but it takes care if ntpsec-ntpdate (NTP client) is installed.

# Configuring NTP
if [ ! -f "/etc/default/ntpsec-ntpdate " ]; then
        sed -i 's/#NTP=/NTP=pool.ntp.org/' /etc/systemd/timesyncd.conf
        systemctl enable systemd-timesyncd
        systemctl start systemd-timesyncd
fi

Anyway, you can ignore that error.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.