Open ulyszk opened 2 years ago
Can you reproduce this behavior?
There must have been some error while writing /var/cache/icinga2/api-state.json
(or a temporary file with some random characters appended). So please check if the /var/cache/icinga2/
directory is properly writable for the icinga user and the filesystem is not out of space or something like that.
If the problem persists, you can try to run icinga using strace (strace -f -yy icinga2 daemon
) and look for lines related to the file mentioned above.
Hello again @ulyszk!
Any news from your side?
Best, AK
Describe the bug
Icinga has crashed:
To Reproduce
Just happened, So far I have no idea why.
Expected behavior
Not to crash.
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
):Copyright (c) 2012-2022 Icinga GmbH (https://icinga.com/) License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl2.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
System information: Platform: CentOS Linux Platform version: 7 (Core) Kernel: Linux Kernel version: 3.10.0-1160.42.2.el7.x86_64 Architecture: x86_64
Build information: Compiler: GNU 4.8.5 Build host: runner-hh8q3bz2-project-322-concurrent-0 OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
Application information:
General paths: Config directory: /etc/icinga2 Data directory: /var/lib/icinga2 Log directory: /var/log/icinga2 Cache directory: /var/cache/icinga2 Spool directory: /var/spool/icinga2 Run directory: /run/icinga2
Old paths (deprecated): Installation root: /usr Sysconf directory: /etc Run directory (base): /run Local state directory: /var
Internal paths: Package data directory: /usr/share/icinga2 State path: /var/lib/icinga2/icinga2.state Modified attributes path: /var/lib/icinga2/modified-attributes.conf Objects path: /var/cache/icinga2/icinga2.debug Vars path: /var/cache/icinga2/icinga2.vars PID path: /run/icinga2/icinga2.pid
cat /etc/centos-release CentOS Linux release 7.9.2009 (Core)
icinga2 feature list Disabled features: command compatlog debuglog elasticsearch gelf graphite icingadb influxdb influxdb2 livestatus notification opentsdb perfdata statusdata syslog Enabled features: api checker mainlog
icinga2 daemon -C [2022-02-21 08:19:28 +0100] information/cli: Icinga application loader (version: 2.13.2-1) [2022-02-21 08:19:28 +0100] information/cli: Loading configuration file(s). [2022-02-21 08:19:28 +0100] information/ConfigItem: Committing config item(s). [2022-02-21 08:19:28 +0100] information/ApiListener: My API identity: enter-infi-test.alig.hu [2022-02-21 08:19:28 +0100] information/ConfigItem: Instantiated 1 CheckerComponent. [2022-02-21 08:19:28 +0100] information/ConfigItem: Instantiated 4 Zones. [2022-02-21 08:19:28 +0100] information/ConfigItem: Instantiated 1 IcingaApplication. [2022-02-21 08:19:28 +0100] information/ConfigItem: Instantiated 2 Endpoints. [2022-02-21 08:19:28 +0100] information/ConfigItem: Instantiated 1 FileLogger. [2022-02-21 08:19:28 +0100] information/ConfigItem: Instantiated 245 CheckCommands. [2022-02-21 08:19:28 +0100] information/ConfigItem: Instantiated 1 ApiListener. [2022-02-21 08:19:28 +0100] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars' [2022-02-21 08:19:28 +0100] information/cli: Finished validating the configuration file(s).