-
Notifications
You must be signed in to change notification settings - Fork 155
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
Elastic Agent non-fleet upgrade between 8.3.x releases is broken #682
Comments
@aleksmaus we're experiencing this behaviour on one of our Linux boxes after running As a solution, would we need to re-enroll the agent again to Fleet? How can we get back the agent in a running state, please? Thanks |
The easiest way to make the new install of the agent work again in this situation is to copy over the "vault" directory from the previous agent installation. |
@aleksmaus I'm unable to locate the Folder contents:
Update: Found it under |
Hmm, you have a different directories layout. How was the agent originally installed? |
Could you give the steps to reproduce this particular install layout? The typical agent install with the fleet looks like this:
Trying to figure out if we have not covered some more install/update use cases. |
For Linux Users:
|
Elastic Agent non-fleet upgrade between 8.3.x released is broken.
The upgrade via fleet works.
The original discussion thread is here:
Update to 8.3.1 from 8.3.0 has broken Fleet - please help!
This is effectively not an upgrade, but install of the different version of the agent without upgrade handling code invoked.
The root cause of the issue is the agent secret is not properly migrated if the new version of the agent is installed on top of the existing agent:
For confirmed bugs, please report:
Possible solution:
In the next release 8.3.3 or 8.4.0 invoke migration code scanning for the existing agent data directories and perform the agent secret migration only if the secret is not found. The migration should probably move up the vault dir to the top agent directory, near fleet.enc file so it can be shared between future installations and would not have to be migrated if the newer version of the agent is installed on top of the existing agent directory from .deb/.rpm for example.
The text was updated successfully, but these errors were encountered: