Bug 202706 - net-mgmt/icinga2: Error: Could not open '/var/cache/icinga2/icinga2.debug.tmp' file
Summary: net-mgmt/icinga2: Error: Could not open '/var/cache/icinga2/icinga2.debug.tmp...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Lars Engels
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-28 05:47 UTC by O. Hartmann
Modified: 2015-09-13 14:15 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (lme)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2015-08-28 05:47:41 UTC
After updating net-mgmt/icinga2 icinga2 won't startup anymore and fails with the error:

Performing sanity check of icinga2 configuration: information/cli: Icinga application loader (version: r2.3.9-1)
information/cli: Loading application type: icinga/IcingaApplication
information/Utility: Loading library 'libicinga.so'
critical/Application: Error: Could not open '/var/cache/icinga2/icinga2.debug.tmp' file

Additional information is available in '/var/log/icinga2/crash/report.1440740643.9214599'
Comment 1 Lars Engels freebsd_committer freebsd_triage 2015-08-28 10:46:59 UTC
Can you please show me a directory listing of

/var/cache/icinga2 

please?
Comment 2 Lars Engels freebsd_committer freebsd_triage 2015-08-28 10:47:23 UTC
Oh and does stopping and starting icinga2 using the rc script work?
Comment 3 O. Hartmann 2015-08-29 08:30:55 UTC
Checking what has changed revealed, that someone did change the rc-script residing in /usr/local/etc/rc.d/.

The whole stuff checking the existence, ownership and accessrights of directory /var/run/icinga2 and siblings has been commented out in subroutine start_precmd() od icinga2 script. This seems wrong to me:

On systems with a /var/run created as tmpfs (as of ours for security reasons), the directory /var/run/icinga2 doesn't exist anymore.

After deleting the comments, Icinga2 is now starting up, restarting and stopping  again as expected.

Thanks for the tip on checking the rc-scripts.
Comment 4 Lars Engels freebsd_committer freebsd_triage 2015-09-13 14:15:54 UTC
Fixed with the latest version.