Icinga / icingaweb2-module-x509

Keeps track of certificates as they are deployed in a network environment.
https://icinga.com/docs/x509/latest/
GNU General Public License v2.0
107 stars 24 forks source link

Jobs schedules are not ran ("icingacli x509 jobs run" is stalled) #246

Open necarnot opened 1 month ago

necarnot commented 1 month ago

All is working well (setup, scans, integration with Director), except that jobs run is doing nothing.

  1. "icingacli x509 jobs run" command is launched, either manually, either via /etc/systemd/system/icinga-x509.service
  2. When launching it manually, the command never ends and is getting stuck.
  3. Yet I see that the schedules have been ran (the web gui is showing the dates of the recent retries I made)
  4. this behaviour is preventing us to keep this command in a systemd service that keeps failing silently.

Expected behavior

This command should succeed or fail, but at least tell us something.

I also would love to know in which additional log files I could check things. I tried to enable icinga2 debug mode and look at the log files, which I usually do for other icinga debug matters, but here, to no avail.

Screenshots

Here is a sample :

root@xxxxx:~# icingacli x509 jobs run --verbose --debug
Scheduling sched_10.32.0.0 of job 10.32.0.0 to run at 2024-10-08 11:21:09
Scheduling sched_10.32.11.0 of job 10.32.11.0 to run at 2024-10-08 11:22:58
Scheduling sched_10.100.1.0 of job 10.100.1.0 to run at 2024-10-08 11:23:58
Scheduling sched_10.32.255.0 of job 10.32.255.0 to run at 2024-10-08 11:24:35

[... never ending nor writing anything more]

Here, I have to ctrl-C it to interrupt it.

Your Environment

Icinga Web 2 Version 2.12.1 director 1.11.1 icingadb 1.1.3 x509 1.3.2