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

Deployment status is always "Unknown, still waiting for config check outcome" #2296

Closed
Foxeronie opened this issue Mar 3, 2021 · 4 comments

Comments

@Foxeronie
Copy link

Hi!

Currently the "Deployments" Tab under "Activity log" only shows unknown status for all deployments.

Screenshot from 2021-03-03 11-30-35

root@icinga-master10:~# ll /var/lib/icinga2/api/packages/director/
total 184
drwx------ 43 nagios nagios 4096 Mar  3 11:08 ./
drwx------  4 nagios nagios 4096 Oct 27 12:37 ../
drwx------  4 nagios nagios 4096 Mar  3 11:08 0a80e600-5b2a-444e-8f6e-c57483815b52/
drwx------  4 nagios nagios 4096 Feb 10 08:45 102c7f6c-1478-408b-913e-e19fa3611302/
drwx------  4 nagios nagios 4096 Feb 26 09:35 20aa2f40-f561-49af-a7b2-513c9b3f56c9/
drwx------  4 nagios nagios 4096 Feb  5 08:45 247050f8-9407-4bd1-a790-7c35b76663e2/
drwx------  4 nagios nagios 4096 Feb 16 08:45 2aa0a7c9-b213-41a5-a8ba-917118f1fef9/
drwx------  4 nagios nagios 4096 Feb 15 08:45 2c2adb6f-2c23-4567-89b5-9a911bd1fc2b/
drwx------  4 nagios nagios 4096 Feb 15 12:14 2d1bc41d-a67b-4f27-b665-cc88feff1785/
drwx------  4 nagios nagios 4096 Feb 19 08:45 4af76c85-93b1-4c24-b515-ad60994c2171/
drwx------  4 nagios nagios 4096 Mar  2 11:43 5415ca09-25a9-48d1-a36d-6eb8e3057928/
drwx------  4 nagios nagios 4096 Mar  1 14:50 57899352-e685-4d27-91a2-d1e12a69716c/
drwx------  4 nagios nagios 4096 Feb  2 13:43 6a1d9b17-c687-4498-9cc7-9068282b4074/
drwx------  4 nagios nagios 4096 Feb 24 08:45 73e1199a-0752-4bd2-9169-3b97d17d391e/
drwx------  4 nagios nagios 4096 Feb 25 08:45 84215757-cd1a-42ae-9a12-5f756c8e3861/
drwx------  4 nagios nagios 4096 Feb 26 08:45 89c0135f-d12f-44ef-bc00-e8ec297c1023/
drwx------  4 nagios nagios 4096 Feb  9 08:45 8c6e13a9-0028-40cd-a256-69c55b5d9147/
drwx------  4 nagios nagios 4096 Feb 22 12:35 8d93c57e-2a21-451e-84ea-4975e4c1f31f/
drwx------  4 nagios nagios 4096 Feb  3 16:23 92e1416a-0602-4b0d-9c3c-0582485fff40/
drwx------  4 nagios nagios 4096 Feb 22 10:19 93319b34-995e-4da4-a68e-f1c57b6279bb/
drwx------  4 nagios nagios 4096 Feb 22 12:22 9496dc18-4360-4448-a155-4db5fe159ee8/
drwx------  4 nagios nagios 4096 Mar  3 08:45 97e4f54b-69df-47d1-9376-780803a4be29/
drwx------  4 nagios nagios 4096 Feb 24 10:47 987fb4dd-3cdb-4313-9928-8986126c7749/
drwx------  4 nagios nagios 4096 Feb  5 10:15 99eda728-047f-48cc-8fc2-026111b5b077/
drwx------  4 nagios nagios 4096 Feb  5 10:05 9a21b39b-a599-44cd-b403-f06b2a1d9ed0/
drwx------  4 nagios nagios 4096 Feb 11 14:09 9ec9322f-24e5-43b9-8ccb-11f97fc9e41f/
drwx------  4 nagios nagios 4096 Feb 17 08:45 a03ec3ec-7add-4162-b09a-f5ad077f20bd/
-rw-r--r--  1 nagios nagios  469 Mar  3 08:45 active.conf
-rw-r--r--  1 nagios nagios   36 Mar  3 08:45 active-stage
drwx------  4 nagios nagios 4096 Feb 24 11:26 b1f0f03d-aa9f-4811-b5a7-b156dcde199d/
drwx------  4 nagios nagios 4096 Feb 23 08:45 b65da06d-2034-4988-a9dd-56e763543a44/
drwx------  4 nagios nagios 4096 Feb  4 08:45 bd0fd7e2-f01e-428f-a48b-0440eb6101f4/
drwx------  4 nagios nagios 4096 Mar  1 08:45 be5010ab-117d-4316-bbb2-8a14ebebefee/
drwx------  4 nagios nagios 4096 Feb 12 08:45 c56ab780-1af0-44da-9eb0-43ea5dd34545/
drwx------  4 nagios nagios 4096 Feb 11 11:44 ca9289a6-0db6-46a2-b9c6-95d8da820a57/
drwx------  4 nagios nagios 4096 Feb  3 08:45 cba86c6b-cf0c-4b60-bc36-6b2ef7c1dd51/
drwx------  4 nagios nagios 4096 Feb 18 08:45 cdbe3942-da7f-40d1-99fc-50938678c352/
drwx------  4 nagios nagios 4096 Feb 24 11:52 ce8fd8fb-b744-4b40-bd5c-e04898e61855/
drwx------  4 nagios nagios 4096 Feb 11 08:45 db056a4a-3026-42a1-aded-ea3754b56f3a/
drwx------  4 nagios nagios 4096 Mar  2 08:45 e0183e2a-f1c8-4973-b11d-23c9b32ad014/
drwx------  4 nagios nagios 4096 Feb 10 11:11 f40d88a5-dcd7-42d3-ab84-eae859512c29/
drwx------  4 nagios nagios 4096 Feb  8 08:45 f60c1213-98fb-4bff-8b4f-3b9bb7b34f32/
drwx------  4 nagios nagios 4096 Feb 25 09:32 f64a497d-0a25-4a9b-831f-63e1748d8cd4/
drwx------  4 nagios nagios 4096 Feb 22 11:14 fb38cda9-b179-4e67-ab79-283893c0f8d8/
drwx------  4 nagios nagios 4096 Feb 22 08:45 fe40e2b5-2d94-478f-856f-3486896b4777/
-rw-r--r--  1 nagios nagios   25 Mar  3 08:45 include.conf
root@icinga-master10:~#
root@icinga-master10:~# cat /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/startup.log 
[2021-03-03 08:45:07 +0100] information/cli: Icinga application loader (version: r2.12.3-1)
[2021-03-03 08:45:07 +0100] information/cli: Loading configuration file(s).
[2021-03-03 08:45:08 +0100] information/ConfigItem: Committing config item(s).
[2021-03-03 08:45:08 +0100] information/ApiListener: My API identity: icinga-master10.domain.de
[2021-03-03 08:45:18 +0100] information/WorkQueue: #4 (DaemonUtility::LoadConfigFiles) items: 0, rate: 72/s (4320/min 4320/5min 4320/15min);
[2021-03-03 08:45:18 +0100] information/WorkQueue: #5 (GraphiteWriter, graphite) items: 0, rate:  0/s (0/min 0/5min 0/15min);
[2021-03-03 08:45:18 +0100] information/WorkQueue: #7 (ApiListener, RelayQueue) items: 0, rate:  0/s (0/min 0/5min 0/15min);
[2021-03-03 08:45:18 +0100] information/WorkQueue: #8 (ApiListener, SyncQueue) items: 0, rate:  0/s (0/min 0/5min 0/15min);
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'HMC Event Log' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 1953:1-1953:29) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'HMC Event Log' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 1964:1-1964:29) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'HMC Event Log' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 2008:1-2008:29) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'HMC Event Log' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 2019:1-2019:29) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'HMC Power8 Temperatures' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 2338:1-2338:39) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'HMC Power8 Temperatures' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 2349:1-2349:39) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'HMC Power8 Temperatures' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 2404:1-2404:39) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'HMC Power8 Temperatures' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 2415:1-2415:39) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'Memory and Swap Usage' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 7396:1-7396:37) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'amavisd Process' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 7996:1-7996:31) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'vmtoolsd Process' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 9015:1-9015:32) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'System Load' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 9184:1-9184:27) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'PuppetDB Node' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 9690:1-9690:29) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] warning/ApplyRule: Apply rule 'TCP Port 3128' (in /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/zones.d/worker/service_apply.conf: 11590:1-11590:29) for type 'Service' does not match anywhere!
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 1 NotificationComponent.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 6116 Hosts.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 3285 Downtimes.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 1 GraphiteWriter.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 6 NotificationCommands.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 1 FileLogger.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 2623 Comments.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 21726 Notifications.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 1 IcingaApplication.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 423 HostGroups.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 56375 Dependencies.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 1 CheckerComponent.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 3229 Zones.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 3231 Endpoints.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 14 ApiUsers.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 1 ApiListener.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 131 CheckCommands.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 4 TimePeriods.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 2 UserGroups.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 94 Users.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 80024 Services.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 43 ServiceGroups.
[2021-03-03 08:45:35 +0100] information/ConfigItem: Instantiated 39 ScheduledDowntimes.
[2021-03-03 08:45:35 +0100] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
[2021-03-03 08:45:35 +0100] information/cli: Finished validating the configuration file(s).
root@icinga-master10:~#
root@icinga-master10:~# cat /var/lib/icinga2/api/packages/director/97e4f54b-69df-47d1-9376-780803a4be29/status 
0root@icinga-master10:~#

Your Environment

Director version (System - About): current master (commit e2a88861487e9cefad94776fd610b3a9703b9e03)
Icinga Web 2 2.8.2

businessprocess | 2.3.0
-- | --
director | master
generictts | 2.0.0
incubator | 0.6.0
ipl | v0.5.0
monitoring | 2.8.2
reactbundle | 0.8.0
icinga2 - The Icinga 2 network monitoring daemon (version: r2.12.3-1)

Copyright (c) 2012-2021 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later <http://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: Ubuntu
  Platform version: 20.04.2 LTS (Focal Fossa)
  Kernel: Linux
  Kernel version: 5.4.0-65-generic
  Architecture: x86_64

Build information:
  Compiler: GNU 9.3.0
  Build host: runner-hh8q3bz2-project-298-concurrent-0
  OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020

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
Server version: Apache/2.4.41 (Ubuntu)
Server built:   2020-08-12T19:46:17

PHP 7.4.3 (cli) (built: Oct  6 2020 15:47:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies

Best regards,
Patrick

@Thomas-Gelf
Copy link
Contributor

Your background daemon is not running.

@Foxeronie
Copy link
Author

Hey Thomas,

thanks for the help! We missed, that the daemon is now needed for stuff like this.
I close the "issue".

Best regards,
Patrick

@Thomas-Gelf
Copy link
Contributor

@Foxeronie: you're welcome!

For those who may wonder: we tried to introduce it smoothly. v1.7 stated that the daemon was required, but everything still worked even without the daemon. A yellow warning has been introduced at the time being, as a friendly reminder. v1.8 is the first release that shifted some essential tasks to the daemon, and in the long run we want to move all heavy tasks (and eventually also all write actions) from the front-end code to the daemon.

@BenediktCromind
Copy link

Hi, could you please add a note at the bottom of the Installation documentation that the daemon is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants