-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Agent] Error 'Failed to rotate backups' displayed on installing Elastic Agent on Windows with install command #21627
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
@deepikakeshav-qasource Please review the bug. |
@rahulgupta-qasource Are you sure that you did not have the log open in Notepad or by another program? |
Reviewed and assigned to @EricDavisX |
Assign Blake / PH to confirm who can work it |
I am only able to reproduce this with when I have the log file open. The error is expected in that case and it doesn't block the installation or enrollment. |
I think this is a correct behavior here too, @rahulgupta-qasource Can you confirm #21627 (comment) ? |
removing 'high' impact for now, if it doesn't block install. and i don't see this on other vms. |
Hi @blakerouse / @ph Failed to rotate backups error is still displayed when log file is not open in Notepad or another program on enrolling Windows agent. Windows agent is successfully enrolled under agents tab on 8.0.0-SNAPSHOT Kibana cloud environment (having above commit 6f983728d7f8c2cf065a6d5099157a5cfdc3cd08 and 8.0.0 windows agent using https://snapshots.elastic.co/8.0.0-af3cda3c/downloads/beats/elastic-agent/elastic-agent-8.0.0-SNAPSHOT-windows-x86_64.zip file). |
I have been able to reproduce this. I think the issue is that enroll tries to rotate the logs while the Elastic Agent daemon is running in the background. I think that enroll should not be writing too that file at all as its a CLI command and not a daemon that should be writing to that file. Again the error is not critical, but it does look bad. |
Kibana version:
Kibana: 8.0.0-SNAPSHOT cloud environment with commit 6f983728d7f8c2cf065a6d5099157a5cfdc3cd08
Elasticsearch version:
Elasticsearch: 8.0.0-SNAPSHOT cloud environment
Host OS and Browser version:
Windows , All
Original install method (e.g. download page, yum, from source, etc.):
From 8.0.0-SNAPSHOT cloud environment
Description
Error is displayed in powershell on enrolling agent on Windows with install command
Preconditions
Steps to Reproduce
RDP to the windows endpoint
Copy the above agent file and extract it under C:/Program Files
Navigate to C:/Program Files/ElasticAgent folder and open powershell as admin
Run the below command:
./elastic-agent install
Proceed and provide kibana url and enrollment token.
Observe that agent is enrolled in the UI but error is displayed in powershell.
Test data
N/A
Impacted Test case id
N/A
Actual Result
Error is displayed in powershell on enrolling agent on Windows with install command.
Expected Result
No Error should be displayed in powershell on enrolling agent on Windows with install command
What's working
What's not working
Screenshot
Logs
Elastic-Agent-logs.zip
The text was updated successfully, but these errors were encountered: