New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #10653] Config sync not working under Windows agent #3676
Comments
Updated by DreiIT on 2015-11-16 18:58:38 +00:00 Addendum: After creating the directory "C:\Program Files (x86)\ICINGA2\var\lib\icinga2\api\zones\global-templates\_etc" manually the sync work's fine. |
Updated by gbeutner on 2015-11-16 19:28:58 +00:00
|
Updated by gbeutner on 2015-11-16 19:40:20 +00:00
|
Updated by TechIsCool on 2015-11-19 04:17:25 +00:00 This is occuring for me as well. Windows only. Note: thought it was linux as well but it just moved folders to zones/_etc/zone name |
Updated by mfriedrich on 2015-11-25 14:08:03 +00:00 Does the same occur with a path including multiple directory levels? E.g. global-templates/test/1/2/3/templates.conf (if so, I'd guess that MkDirP on Windows is a possible candidate) |
Updated by TechIsCool on 2015-11-27 00:43:16 +00:00 If I create sub folders and sync them to the master they get created on all children. Only folder that has to be made is the _etc folder inside the zone folder for example /var/lib/icinga2/api/zones/global-templates/_etc/example/my_config.conf |
Updated by DreiIT on 2015-11-30 08:10:13 +00:00 Yes, the problem is the same. I added your example with the following result:
|
Updated by rafael.voss on 2016-02-12 16:15:26 +00:00 Same problem here (v2.4.1). it only happens when I have multiple subdirectories. not working:
working:
if i create the folder _etc and reload again its working. So the bug is here: the script can create only one subfolder at a time. If you create "_etc" before reloading the icinga daemon you can have another subfolder and so on. |
Updated by rafael.voss on 2016-02-15 10:03:20 +00:00 Just to mention: if you reload the configuration after you have deleted some folders on the master, old folders aren't deleted on the remote client and you will have some empty folders in _etc/* Edit: another problem is, that these files can't be created too: C:\Program Files (x86)\ICINGA2\var\lib\icinga2\api\packages\_api\somehostname-1455205941-1\conf.d\downtimes. |
Updated by mfriedrich on 2016-02-22 15:39:13 +00:00
|
Updated by mfriedrich on 2016-02-24 20:01:48 +00:00
We believe this has been fixed with #10932. Please report back. |
Updated by rafael.voss on 2016-02-24 21:08:55 +00:00 Updated Master and Remote Client to 2.4.3. I wiped c:\....\var\lib\icinga2\api\zones\* to test it. The error is the same, it start syncing and it stops with the error on the first folder at the 2. level after _etc. ERROR:
VERSION OUTPUT:
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10653
Created by DreiIT on 2015-11-16 18:52:21 +00:00
Assignee: (none)
Status: Closed (closed on 2016-02-24 20:01:48 +00:00)
Target Version: (none)
Last Update: 2016-02-24 21:08:55 +00:00 (in Redmine)
After upgrading the config master and the Windows agent from 2.3.11 to 2.4, the config sync isn't working any more. The following error is logged on the agent:
On the config master the file is located at the following path:
I think the error has it's source in the new directoy "_etc" in the api-path.
Despite this bug I want to congratulate all of you for the new release - the idea of the api is great, thank you for your ongoing fantastic work!
Relations:
The text was updated successfully, but these errors were encountered: