Skip to content
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

icinga2/api/log directory is not created #4977

Closed
helgein opened this issue Feb 3, 2017 · 2 comments
Closed

icinga2/api/log directory is not created #4977

helgein opened this issue Feb 3, 2017 · 2 comments
Labels
area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working
Milestone

Comments

@helgein
Copy link

helgein commented Feb 3, 2017

had to create it manually as you can see from the timestamp:

[root@LibSrv api]# pwd && ll
/var/lib/icinga2/api
insgesamt 12
drwx------ 2 icinga icinga 4096 3. Feb 15:52 log
drwx------ 3 icinga icinga 4096 20. Jan 13:37 packages
drwx------ 4 icinga icinga 4096 20. Jan 13:37 zones

found it by looking in the log:
[2017-02-03 15:26:10 +0100] warning/ApiListener: Could not open spool file: /var/lib/icinga2/api/log/current
Context:
(0) Replaying log for Endpoint 'master'

[2017-02-03 15:26:10 +0100] warning/ApiListener: Could not open spool file: /var/lib/icinga2/api/log/current
Context:
(0) Replaying log for Endpoint 'master'

@helgein helgein changed the title 2.6.0 @ debian 8.7: var/lib/api/log is not created 2.6.0 @ RHEL7.3: var/lib/api/log is not created Feb 3, 2017
@Crunsher
Copy link
Contributor

Crunsher commented Feb 6, 2017

This is the same as #4640, I have been sitting on an untested fix for this for a while and forgot about it ^^
I'll close the old one in favor of this.

@Crunsher Crunsher changed the title 2.6.0 @ RHEL7.3: var/lib/api/log is not created icinga2/api/log directory is not created Feb 6, 2017
@Crunsher Crunsher self-assigned this Feb 6, 2017
@Crunsher Crunsher added bug Something isn't working area/distributed Distributed monitoring (master, satellites, clients) Installation labels Feb 6, 2017
@dnsmichi dnsmichi self-assigned this Feb 8, 2017
@dnsmichi dnsmichi added this to the 2.7.0 milestone Feb 8, 2017
@dnsmichi
Copy link
Contributor

dnsmichi commented Feb 8, 2017

There's a missing call to MkDirP() inside OpenLogFile().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants