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

Do not clone jobs #222

Closed yhabteab closed 1 year ago

yhabteab commented 1 year ago

Fixes a daemon crash when reloading the configs after 5m.

Removing schedule lan Schedules of job lan, as it either no longer exists in the configuration or its config has been changed
PHP Fatal error:  Uncaught InvalidArgumentException: Task lan not scheduled in /usr/local/src/ipl-scheduler/src/Scheduler.php:158
Stack trace:
#0 /usr/share/icingaweb2-modules/x509/application/clicommands/JobsCommand.php(109): ipl\Scheduler\Scheduler->remove(Object(Icinga\Module\X509\Job))
#1 /usr/share/icinga-php/vendor/vendor/react/event-loop/src/ExtEvLoop.php(144): Icinga\Module\X509\Clicommands\JobsCommand->Icinga\Module\X509\Clicommands\{closure}(Object(React\EventLoop\Timer\Timer))
#2 [internal function]: React\EventLoop\ExtEvLoop->React\EventLoop\{closure}()
#3 /usr/share/icinga-php/vendor/vendor/react/event-loop/src/ExtEvLoop.php(208): EvLoop->run(2)
#4 /usr/share/icinga-php/vendor/vendor/react/event-loop/src/Loop.php(55): React\EventLoop\ExtEvLoop->run()
#5 [internal function]: React\EventLoop\Loop::React\EventLoop\{closure}()
#6 {main}
  thrown in /usr/local/src/ipl-scheduler/src/Scheduler.php on line 158