-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Unable to initialize Fleet - incorrect mappings applied to internal transform indices - WITH FIX #97367
Comments
@EricDavisX this is another set up which required that at least node is set to handle transforms. We've got a DOCS ticket (7.13) to more clearly document this requirement: elastic/security-docs#608 In addition, this PR: #95649 will add more finer grained error in Fleet setup |
Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt) |
Pinging @elastic/fleet (Team:Fleet) |
I explicitly thought that @deepybee was saying the fix of having a node setup didn't work. I may have mis-understood - glad to be, if that is the case. |
@EricDavisX The fix / workaround definitely does work, but it has a dependency on there being a node in the cluster that has the transform role. In practice, this should present as a fairly low risk footprint as any small uniform cluster will have the role implicitly enabled on all nodes, meaning the note is only applicable to environments where the cluster has nodes with roles explicitly set and none of them have |
In fact, now I think about it it would be a very small footprint as I guess it would require a cluster where the Aside from migrating from uniform to dedicated node types, I can't think of any scenario likely to affect a live cluster atm. |
That's great news - thanks for the extra notes and thought @deepybee . Cheers |
Closing as not relevant anymore. Feel free to reopen if needed |
Kibana version: 7.12.0
Elasticsearch version: 7.12.0
Server OS version: Ubuntu 18.04.5 LTS
Browser version: Google Chrome Version 89.0.4389.114 (Official Build) (x86_64)
Browser OS version: macOS Catalina 10.15.7
Original install method (e.g. download page, yum, from source, etc.): apt
Describe the bug: After upgrade from an earlier version (presumed 7.11.x but I am uncertain the last time I accessed Fleet on this cluster) Fleet fails with the following error. I also hit #90984 and it looks like the same bug regarding ordering of upgrades may well have caused this too.
This symptom is caused by a background transform index being created with default mappings. When Fleet tries to start it attempts to execute the transform but Transforms cannot load the transform document because it expects
id
to be akeyword
but per default mapping it is indexed astext
with a subfield of.keyword
which Transforms neither expects to be present nor attempts to parse.NB: I have already implemented the workaround in that issue which is probably a dependency to ensuring a working Fleet once the workaround here is actioned.
Steps to reproduce:
Expected behavior:
Fleet opens and no errors are thrown
Screenshots (if relevant):
Errors in browser console (if relevant):
400 Bad Request
error with JSON payload as per above screenshotProvide logs and/or server output (if relevant):
Any additional context:
Buried in that response is the offending index which is - at least on this cluster -
.transform-internal-005
. This index has picked up a default mapping somewhere and actually breaks Transforms completely as well as Fleet:Checking the mapping on the reported index confirms it is using a default mapping:
Fix
NB This workaround requires at least 1 node in the cluster to have the
transform
roleThe Transforms page should now load correctly and show the updated transform version (
0.18.0
on Stack version 7.12)Reload the Fleet page. After a few moments the background transform will have finished and Fleet will load as expected:
The text was updated successfully, but these errors were encountered: