How to get rid of "Last zone sync stage validation failed"?

icinga complains

Icinga 2 has been running for 29 minutes and 11 seconds. Version: v2.11.2; Last zone sync stage validation failed at 2020-02-19 09:10:03 +0200

and yes there was an error which I have fixed already. But the check result remains the same and I have no more ideas how to get rid of it.

icinga2.exe daemon -C

...
[2020-02-19 09:41:10 +0200] information/cli: Finished validating the configuration file(s).

C:\ProgramData\icinga2\var\lib\icinga2\api\zones as well as C:\ProgramData\icinga2\var\lib\icinga2\api\zones-stage looks ok in my opinion.

icinga2.log tells me:

...
[2020-02-19 09:36:28 +0200] information/ApiListener: Stage: Updating received configuration file 'C:\ProgramData\icinga2\var\lib\icinga2/api/zones-stage/windows-commands//_etc/win-updates/updates.conf' for zone 'windows-commands'.
[2020-02-19 09:36:28 +0200] information/ApiListener: Applying configuration file update for path 'C:\ProgramData\icinga2\var\lib\icinga2/api/zones-stage/windows-commands' (81922 Bytes).
[2020-02-19 09:36:28 +0200] information/ApiListener: Received configuration updates (1) from endpoint 'icinga.example.com' do not qualify for production, not triggering reload.

Do any of the mentioned tips in this thread help?

2 Likes

Yeah, that helped to get the service back to OK.

1 Like

Nice! What have you done?

I’ve run these commands:

net stop icinga2
del C:\ProgramData\icinga2\var\lib\icinga2\icinga2.state
del C:\ProgramData\icinga2\var\lib\icinga2\modified-attributes.conf
del /s C:\ProgramData\icinga2\var\lib\icinga2\api\zones
del /s C:\ProgramData\icinga2\var\lib\icinga2\api\zones-stages
net start icinga2
2 Likes

Have this so often now on windows Agents. Is there any way to get rid of that for the future?

No idea except writing issues and using the most current version (which is often a hard job to update the whole environment).

Wasn’t this fixed with 2.11.6?

no, i still have this on 2.12.3.