fisher
September 19, 2022, 9:18am
1
CMK version:
2.1.0p9
OS version:
Debian 10
In some cases when I install the agent it generates a failed systemd service (cmk-agent-ctl-daemon) I really don’t know why this fails, on many other servers it works fine, even though this service seems to fail the agent does report as usual.
Does anyone know what might causes this?
tosch
(Tobias Schönau)
September 19, 2022, 2:13pm
2
Hi @fisher ,
what does the service itself tells about the fail? Have you checked the output of systemctl status cmk-agent-ctl-daemon.service
or journalctl -u cmk-agent-ctl-daemon.service
?
fisher
September 19, 2022, 3:05pm
3
hey @tosch ,
systemctl status cmk-agent-ctl-daemon.service
output is
● cmk-agent-ctl-daemon.service - Checkmk agent controller daemon
Loaded: loaded (/lib/systemd/system/cmk-agent-ctl-daemon.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2022-09-19 12:14:40 CEST; 4h 43min ago
Process: 31628 ExecStart=/usr/bin/cmk-agent-ctl daemon (code=exited, status=1/FAILURE)
Main PID: 31628 (code=exited, status=1/FAILURE)
Sep 19 12:14:40 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Service RestartSec=100ms expired, scheduling restart.
Sep 19 12:14:40 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Scheduled restart job, restart counter is at 6.
Sep 19 12:14:40 <hostname> systemd[1]: Stopped Checkmk agent controller daemon.
Sep 19 12:14:40 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Start request repeated too quickly.
Sep 19 12:14:40 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Failed with result 'exit-code'.
Sep 19 12:14:40 <hostname> systemd[1]: Failed to start Checkmk agent controller daemon.
and
journalctl -u cmk-agent-ctl-daemon.service
output
-- Logs begin at Sat 2022-09-03 09:27:02 CEST, end at Mon 2022-09-19 17:00:02 CEST. --
Sep 19 10:58:31 <hostname> systemd[1]: Started Checkmk agent controller daemon.
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5355]: ERROR [cmk_agent_ctl] Failed to listen on TCP socket for incoming pull connections.
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5355]: Error with IPV6:
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5355]: Address in use (os error 98)
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5355]: Error with IPV4:
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5355]: Address in use (os error 98)
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Failed with result 'exit-code'.
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Service RestartSec=100ms expired, scheduling restart.
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Scheduled restart job, restart counter is at 1.
Sep 19 10:58:31 <hostname> systemd[1]: Stopped Checkmk agent controller daemon.
Sep 19 10:58:31 <hostname> systemd[1]: Started Checkmk agent controller daemon.
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5421]: ERROR [cmk_agent_ctl] Failed to listen on TCP socket for incoming pull connections.
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5421]: Error with IPV6:
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5421]: Address in use (os error 98)
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5421]: Error with IPV4:
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5421]: Address in use (os error 98)
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Failed with result 'exit-code'.
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Service RestartSec=100ms expired, scheduling restart.
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Scheduled restart job, restart counter is at 2.
Sep 19 10:58:31 <hostname> systemd[1]: Stopped Checkmk agent controller daemon.
Sep 19 10:58:31 <hostname> systemd[1]: Started Checkmk agent controller daemon.
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5469]: ERROR [cmk_agent_ctl] Failed to listen on TCP socket for incoming pull connections.
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5469]: Error with IPV6:
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5469]: Address in use (os error 98)
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5469]: Error with IPV4:
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5469]: Address in use (os error 98)
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Failed with result 'exit-code'.
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Service RestartSec=100ms expired, scheduling restart.
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Scheduled restart job, restart counter is at 3.
Sep 19 10:58:31 <hostname> systemd[1]: Stopped Checkmk agent controller daemon.
Sep 19 10:58:31 <hostname> systemd[1]: Started Checkmk agent controller daemon.
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5495]: ERROR [cmk_agent_ctl] Failed to listen on TCP socket for incoming pull connections.
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5495]: Error with IPV6:
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5495]: Address in use (os error 98)
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5495]: Error with IPV4:
Sep 19 10:58:31 <hostname> cmk-agent-ctl[5495]: Address in use (os error 98)
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 10:58:31 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Failed with result 'exit-code'.
Sep 19 10:58:32 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Service RestartSec=100ms expired, scheduling restart.
Sep 19 10:58:32 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Scheduled restart job, restart counter is at 4.
Sep 19 10:58:32 <hostname> systemd[1]: Stopped Checkmk agent controller daemon.
Sep 19 10:58:32 <hostname> systemd[1]: Started Checkmk agent controller daemon.
Sep 19 10:58:32 <hostname> cmk-agent-ctl[5509]: ERROR [cmk_agent_ctl] Failed to listen on TCP socket for incoming pull connections.
Sep 19 10:58:32 <hostname> cmk-agent-ctl[5509]: Error with IPV6:
Sep 19 10:58:32 <hostname> cmk-agent-ctl[5509]: Address in use (os error 98)
Sep 19 10:58:32 <hostname> cmk-agent-ctl[5509]: Error with IPV4:
Sep 19 10:58:32 <hostname> cmk-agent-ctl[5509]: Address in use (os error 98)
Sep 19 10:58:32 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 10:58:32 <hostname> systemd[1]: cmk-agent-ctl-daemon.service: Failed with result 'exit-code'.
tosch
(Tobias Schönau)
September 19, 2022, 3:15pm
4
There is something already listening on the port.
1 Like
system
(system)
Closed
September 19, 2023, 3:16pm
5
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.