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

[dev.icinga.com #6852] Startup logfile is not flushed to disk #1855

Closed
icinga-migration opened this issue Aug 5, 2014 · 5 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/6852

Created by jsaathof on 2014-08-05 10:40:24 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2014-08-05 11:55:04 +00:00)
Target Version: 2.0.2
Last Update: 2014-08-05 11:55:04 +00:00 (in Redmine)

Icinga Version: Icinga 2.0.1

The last part of the startup logfile is not written to disk when an error occurs. This makes locating the error very hard. Attached is a sample logfile with an error. I suspect that the log is buffered and not completely flushed to disk.

I use the packages from package.icinga.org on a Debian Wheezy VM.

Attachments

Changesets

2014-08-05 11:52:24 +00:00 by (unknown) 53d3a4a

Flush stdout before _exit()

fixes #6852
refs #6820
@icinga-migration
Copy link
Author

Updated by gvegidy on 2014-08-05 10:54:27 +00:00

I can confirm this behavior, I've hit it myself. I haven't had time yet to investigate if it is only on my system or not, but it seems it isn't.

Maybe this commit is causing it?
https://dev.icinga.org/projects/i2/repository/revisions/b574f4cb1e60ccfb89abc833ae4acafacb664014

Do you use the released 2.0.1 packages or a current snapshot?

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-08-05 10:56:20 +00:00

  • Category set to libbase
  • Priority changed from High to Normal
  • Target Version deleted 2.0.2

Related to the _exit call in Application::Exit()

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-08-05 11:37:20 +00:00

What's the exact version of Icinga 2 (git commit, icinga2 --version, dpkg -l icinga2, etc.) you used?

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-08-05 11:52:06 +00:00

  • Status changed from New to Assigned
  • Assigned to set to mfriedrich
  • Target Version set to 2.0.2
  • Estimated Hours set to 0.5

@icinga-migration
Copy link
Author

Updated by Anonymous on 2014-08-05 11:55:04 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 53d3a4a.

@icinga-migration icinga-migration added bug Something isn't working libbase labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.0.2 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant