Hello,
after the snapchot installation I restarted the PC and received a start error for ntp
I have uninstalled ntp package and reinstalled after removing all files/directories related to ntp in /etc /var/lib. I reconfigured the ntp server in Yast but on exit I received an error.
trying to start ntpd via "systemctl start ntpd" gives still the error
I tried to solve the permission error about /var/log/ntp
I restarted ntp via "systemctl start ntpd" but the same error occurred only the problem about /var/log/ntp seems solved
Any Idea?
Many thanks in advance
Philippe
after the snapchot installation I restarted the PC and received a start error for ntp
Code:
# systemctl status ntpd.service
● ntpd.service - NTP Server Daemon
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
Drop-In: /run/systemd/generator/ntpd.service.d
└─50-insserv.conf-$time.conf
Active: failed (Result: start-limit) since Thu 2016-09-08 17:51:11 CEST; 30s ago
Docs: man:ntpd(1)
Process: 3368 ExecStart=/usr/sbin/start-ntpd start (code=exited, status=0/SUCCESS)
Sep 08 17:51:11 hpprol2 systemd[1]: Failed to start NTP Server Daemon.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Unit entered failed state.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Failed with result 'resources'.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Service hold-off time over, scheduling restart.
Sep 08 17:51:11 hpprol2 systemd[1]: Stopped NTP Server Daemon.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Start request repeated too quickly.
Sep 08 17:51:11 hpprol2 systemd[1]: Failed to start NTP Server Daemon.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Unit entered failed state.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Failed with result 'start-limit'.
I have uninstalled ntp package and reinstalled after removing all files/directories related to ntp in /etc /var/lib. I reconfigured the ntp server in Yast but on exit I received an error.
trying to start ntpd via "systemctl start ntpd" gives still the error
Code:
journalctl -xe
Sep 08 17:51:11 hpprol2 ntpd[3379]: ntpd 4.2.8p8@1.3265-o Mon Sep 5 20:41:38 UTC 2016 (1): Starting
Sep 08 17:51:11 hpprol2 ntpd[3379]: Command line: /usr/sbin/ntpd -p /var/run/ntp/ntpd.pid -g -u ntp:ntp -i /var/lib/ntp -c /etc/ntp.conf
Sep 08 17:51:11 hpprol2 ntpd[3380]: proto: precision = 0.140 usec (-23)
Sep 08 17:51:11 hpprol2 ntpd[3380]: switching logging to file /var/log/ntp
Sep 08 17:51:11 hpprol2 ntp_intres[3381]: Cannot reopen log file /var/log/ntp, Permission denied
Sep 08 17:51:11 hpprol2 ntp_intres[3381]: blocking_getaddrinfo can not queue response
Sep 08 17:51:11 hpprol2 start-ntpd[3368]: Starting network time protocol daemon (NTPD)
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: PID 3380 read from file /var/run/ntp/ntpd.pid does not exist or is a zombie.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Daemon never wrote its PID file. Failing.
Sep 08 17:51:11 hpprol2 systemd[1]: Failed to start NTP Server Daemon.
-- Subject: Unit ntpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ntpd.service has failed.
--
-- The result is failed.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Unit entered failed state.
Sep 08 17:51:11 hpprol2 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Failed with result 'resources'.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Service hold-off time over, scheduling restart.
Sep 08 17:51:11 hpprol2 systemd[1]: Stopped NTP Server Daemon.
-- Subject: Unit ntpd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ntpd.service has finished shutting down.
Sep 08 17:51:11 hpprol2 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Start request repeated too quickly.
Sep 08 17:51:11 hpprol2 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=s
Sep 08 17:51:11 hpprol2 systemd[1]: Failed to start NTP Server Daemon.
-- Subject: Unit ntpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ntpd.service has failed.
--
-- The result is failed.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Unit entered failed state.
Sep 08 17:51:11 hpprol2 systemd[1]: ntpd.service: Failed with result 'start-limit'.
Code:
cd /var/log
hpprol2:/var/log # ls -ld ntp
-rw-r--r-- 1 root root 6630 8 sep 17:56 ntp
hpprol2:/var/log # chown ntp:ntp ntp
Code:
# journalctl -xe
Sep 08 18:10:38 hpprol2 systemd[1]: Stopped NTP Server Daemon.
-- Subject: Unit ntpd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ntpd.service has finished shutting down.
Sep 08 18:10:38 hpprol2 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=
Sep 08 18:10:38 hpprol2 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=s
Sep 08 18:10:38 hpprol2 systemd[1]: Starting NTP Server Daemon...
-- Subject: Unit ntpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ntpd.service has begun starting up.
Sep 08 18:10:38 hpprol2 ntpd[4277]: ntpd 4.2.8p8@1.3265-o Mon Sep 5 20:41:38 UTC 2016 (1): Starting
Sep 08 18:10:38 hpprol2 ntpd[4277]: Command line: /usr/sbin/ntpd -p /var/run/ntp/ntpd.pid -g -u ntp:ntp -i /var/lib/ntp -c /etc/ntp.conf
Sep 08 18:10:38 hpprol2 ntpd[4278]: proto: precision = 0.140 usec (-23)
Sep 08 18:10:38 hpprol2 ntpd[4278]: switching logging to file /var/log/ntp
Sep 08 18:10:38 hpprol2 start-ntpd[4266]: Starting network time protocol daemon (NTPD)
Sep 08 18:10:38 hpprol2 systemd[1]: ntpd.service: PID 4278 read from file /var/run/ntp/ntpd.pid does not exist or is a zombie.
Sep 08 18:10:38 hpprol2 systemd[1]: ntpd.service: Daemon never wrote its PID file. Failing.
Sep 08 18:10:38 hpprol2 systemd[1]: Failed to start NTP Server Daemon.
-- Subject: Unit ntpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ntpd.service has failed.
--
-- The result is failed.
Sep 08 18:10:38 hpprol2 systemd[1]: ntpd.service: Unit entered failed state.
Sep 08 18:10:38 hpprol2 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=
Sep 08 18:10:38 hpprol2 systemd[1]: ntpd.service: Failed with result 'resources'.
Sep 08 18:10:38 hpprol2 systemd[1]: ntpd.service: Service hold-off time over, scheduling restart.
Sep 08 18:10:38 hpprol2 systemd[1]: Stopped NTP Server Daemon.
-- Subject: Unit ntpd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ntpd.service has finished shutting down.
Sep 08 18:10:38 hpprol2 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=
Sep 08 18:10:38 hpprol2 systemd[1]: ntpd.service: Start request repeated too quickly.
Sep 08 18:10:38 hpprol2 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=s
Sep 08 18:10:38 hpprol2 systemd[1]: Failed to start NTP Server Daemon.
-- Subject: Unit ntpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ntpd.service has failed.
--
-- The result is failed.
Sep 08 18:10:38 hpprol2 systemd[1]: ntpd.service: Unit entered failed state.
Many thanks in advance
Philippe