Skip to content
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]: when upgrading an agent, it fails because of existing simlink elastic-agent.exe.prev #26513

Closed
merlixelastic opened this issue Jun 28, 2021 · 1 comment · Fixed by #26785
Assignees
Labels
Team:Elastic-Agent Label for the Agent team

Comments

@merlixelastic
Copy link

Kibana version: 7.12.1

Host OS: Windows 10 x64

Steps to reproduce:
Try an upgrade Elastic Agent from 7.12.0 to 7.12.1 (triggered from Kibana). However it fails due to error: "failed verification of agent binary: 2 errors occurred".

In particular, we see this error:

2021-06-08T11:04:12.208+0200    ERROR   application/fleet_gateway.go:186        failed to dispatch actions, error: failed to update agent symlink: symlink C:\Program Files\Elastic\Agent\data\elastic-agent-651a2a\elastic-agent.exe C:\Program Files\Elastic\Agent\elastic-agent.exe.prev: Cannot create a file when that file already exists.

Expected result: Successful upgrade

Actual result: Failed upgrade

Workaround: Delete the .prev symlink and restart the elastic agent, then trigger the upgrade again.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants