Bug 202706

Summary: net-mgmt/icinga2: Error: Could not open '/var/cache/icinga2/icinga2.debug.tmp' file
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Lars Engels <lme>
Status: Closed FIXED    
Severity: Affects Some People CC: lme
Priority: --- Flags: bugzilla: maintainer-feedback? (lme)
Version: Latest   
Hardware: Any   
OS: Any   

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.