-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Fleet] Issues installing APM package #89829
Comments
Pinging @elastic/fleet (Feature:Fleet) |
@jen-huang @skh or @jfsiii any idea where the issues is coming from? |
A similar or the same issue came up in one of our system tests recently (elastic/apm-server#4684) - the |
Based on the symptoms I'm seeing, this could happen if @simitt How were you able to get to the APM config after the Enable rum error in the UI? Did you have to toggle/enable it? Then, was the config still not showing the |
Yes I toggled to |
I think I've tracked this down to https://github.com/elastic/kibana/blob/master/x-pack/plugins/fleet/server/services/epm/archive/validation.ts There's a couple of bugs IIANM:
|
Also I wonder if we could make that code a bit more robust to changes in the types? I barely know TypeScript so I don't know if this is possible, but it would be nice if when RegistryInput etc. changed (namely, fields added) the type checker would complain about dropped fields. |
When I looked at the above code paths initially, it seemed like it would only get reached from installing a package by upload, but now I see that we use some of the validation functions when retrieving installed packages from ES storage too: kibana/x-pack/plugins/fleet/server/services/epm/archive/storage.ts Lines 235 to 249 in 2d109df
This looks like the smoking gun. I'll take a deeper look and come up with a PR. Thanks @axw for the pointer! |
Kibana version: master (docker)
Elasticsearch version: master (docker)
Describe the bug:
Trying to install the apm integration to the default policy in Fleet occasionally leads to
(a) showing that the
enabled_rum
field is required(b) the resulting policy configuration does not have an
apm-server
section where the variables are configured.(c) the Elastic Agent subscribed to this policy going into an endless restart loop of the apm-server
Unfortunately nothing helpful is logged in the agent logs; apm-server logs are not created.
This happens for apm package
0.1.0-dev.4
, which hasn't been changed in a while.Steps to reproduce:
The behavior was observed twice, without exactly knowing how to reproduce. @jalvz experienced some similar error.
Wiping ES, Kibana, Elastic Agent docker containers helped getting to a clean state again.
Expected behavior:
Expected apm part in config:
Observed apm config:
Adding APM integration:
cc @jen-huang
The text was updated successfully, but these errors were encountered: