-
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
Standalone agent upgrade failed when 8.12.0 agent is installed with --unprivileged
flag.
#4127
Comments
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
8.12 Elastic Agent with unprivileged mode has an issue that will not be fixed as it was experimental in 8.12. Please only do testing with 8.13+ versions for unprivileged mode. 8.13->8.13 upgrade was also recently fixed requiring the older 8.13 to at least have been built after Jan 21 because of #4093. If you using a 2 snapshot versions after Jan 21 then upgrading from snapshot to snapshop works. |
Thank you for looking into this @blakerouse Could you please confirm if we can test it from 8.12.1>8.13.0, once 8.12.1 is available? Thanks! |
This will not be fixed in 8.12 at all. You will need to test 8.13 upgrading to 8.13 snapshot or 8.14 snapshot. You should also run the upgrade as non-root. As in you should not call |
Hi Team, We have revalidated this issue on latest 8.14.0 BC4 kibana cloud environment and found it fixed now: Observations:
Build details: Hence we are closing and marking this issue as QA:Validated. Thanks! |
Kibana Build details:
Host OS: Linux- SLES15
Preconditions:
--unprivileged
flag.Steps to reproduce:
sudo elastic-agent upgrade 8.13.0-SNAPSHOT
Error: failed to check if upgrade is already in progress: failed to get agent state: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /run/elastic-agent.sock: connect: no such file or directory"
Note:
Screenshot:

What's working fine:
--unprivileged
flag and agent gets successfully upgraded to 8.13.0.--unprivileged
flagExpected Result:
User should be able to upgrade standalone agent to latest version when installed with
--unprivileged
flag.Logs:
Agent diagnostics command failed, hence collected logs manually.
logs.zip
Feature:
https://github.com/elastic/ingest-dev/issues/1766
The text was updated successfully, but these errors were encountered: