icingacli --version
Icinga Web 2 2.11.0
Git Commit 46998464ea9f9e3c2889d98f9fb6df639d972550
PHP Version 7.4.6
MODULE VERSION
director 1.8.1
doc 2.11.0
incubator 0.17.0
ipl v0.5.0
monitoring 2.11.0
reactbundle 0.9.0
translation 2.11.0
Icinga 2 version (icinga2 --version): icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.4-1)
Operating System and version: openSuse15.3
I am new to Icinga2, and seeking help to clear pending changes.
I think the mistake is to delete the user without removing the dependencies first like, assgined template for that user, and user groups.
So, After deleting the user at first, I can Store other changes but deployment will fail with following API error when clicking Deploy pending changes:
API request failed: Conflicting request, There is already an ongoing package update in progress … (RestApiResponse.php:113)
Hi, how long does it typically take to reload icinga2 when running systemctl reload icinga2? Recently, this behavior has been implemented so that you can no longer submit package updates (director deployment) while the previous one is still in progress. Meaning, when the first director deployment succeeds, it will trigger an Icinga2 reload afterwards to apply the new changes, and during this period (while the reload is ongoing), you will not be able to trigger any further deployments.
I couldn’t remember if it was faster with older release of icinga2.
Apparently, I got this problem of mine resolved by restarting icinga2.service and icinga-director.service.
After restart, i was able to re-deploy the config from the previous week, which created around 57 pending changes in the Activity Log section. After clicking Deploy, director was able to complete package update.
Hi, we are seeing this behavior very often sice Icinga@ version higher than 12.6 still not solved in Icinga2 r2.14.2.-1.
Here is the way how to simulate the issue anytime in our pretty big environment (having HA with one Primary and one Secondary + 6 Satelites): step 1) Start deployment at time T (it takes more that 2 minutes to apply changes on all servers)
step 2) Change anything and do another deployment cca in T+2 minutes
step 3) Since now any deployments are unaviables forever/till reboot with Director message "API request failed: Conflicting request, there is already an ongoing package update in progress. Please try in again later. (RestApiResponse.php:113). …Now most (or all) of Icinga2 servers are not monitoring anything in that state…
Only restart of master icinga2 server helps and everything starts to work.
I have found also related icinga2 logs during the problem with deployments: critical/IdoMysqlConnection: Error “Deadlock: wsrep aborted transaction” when executing query "DELETE FROM icinga_customvariables WHERE object …
…
[2024-08-20 10:51:53 +0200] critical/IdoMysqlConnection: Exception during database operation: Verify that your database is operational!
[2024-08-20 10:51:53 +0200] critical/IdoMysqlConnection: Error “Server has gone away” when executing query “DELETE FROM icinga_comments WHERE instance_id = 1 AND session_token <> 1724143835”
[2024-08-20 10:51:53 +0200] critical/IdoMysqlConnection: Exception during database operation: Verify that your database is operational!
[2024-08-20 10:51:58 +0200] information/IdoMysqlConnection: MySQL IDO instance id: 1 (schema version: ‘1.15.1’)
[2024-08-20 10:52:04 +0200] critical/IdoMysqlConnection: Error “Deadlock: wsrep aborted transaction” when executing query "DELETE FROM icinga_customvariables WHERE object …
The galera/maria DB is working without logging any issues during the above problem.