Elastic Agent does not connect to Kibana
Summary
(Summarize the bug encountered concisely)
Steps to reproduce
(How one can reproduce the issue - this is very important)
What is the current bug behavior?
(What actually happens)
The Elastic Agent is never healthy and does not connect to Kibana.
What is the expected correct behavior?
The Elastic Agent should connect to Kibana, the Docker container is marked as healthy, and the data is sent to Kibana.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:12 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:13 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:14 --:--:-- 0
100 22 100 22 0 0 1 0 0:00:22 0:00:15 0:00:07 4
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
100 22 100 22 0 0 7 0 0:00:03 0:00:03 --:--:-- 7
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 285 100 285 0 0 11400 0 --:--:-- --:--:-- --:--:-- 11875
{"isInitialized":true}{"isInitialized":true}{"list":[{"id":"0c54aad1-2be2-471f-abd3-1206f19c2106","active":true,"api_key_id":"C9EW53UBv-WR9H0ULWeh","name":"Default (dc68c206-0125-460d-b70c-de187c254942)","policy_id":"dc63e3f0-2b64-11eb-b170-0965e9c19b7c","created_at":"2020-11-20T19:16:32.123Z"}],"total":1,"page":1,"perPage":20}
0c54aad1-2be2-471f-abd3-1206f19c2106
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 324 100 324 0 0 10800 0 --:--:-- --:--:-- --:--:-- 10800
QzlFVzUzVUJ2LVdSOUgwVUxXZWg6cWhVekNvYTFSem1aWFFBSndlOHBVZw==
/usr/local/bin/docker-entrypoint: line 61: ./elastic-agent: Permission denied
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
- the healthcheck changes to check a file.
- the entrypoint script shows some messages only on debug mode.
- The elasict-agent binary should have execution permissions.
Defintion of Done
-
Bug has been identified and corrected within the container
/cc @ironbank-notifications/bug
Edited by sean.melissari