-
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
elastic-agent: Windows failing to enroll due to CreateFile error with temporary files and permissions #27836
Comments
Pinging @elastic/agent (Team:Agent) |
Michal's first suggestion for review to Michel via slack was: |
This seems weird, being that others are not seeing this currently with other Windows installations. Does this path exist |
@adam-stokes hi, do you have ability to spin up a host and check that path? |
This is the output from the file listings:
I'm not sure where the tmp file is being created from or at what point does it go out of scope and clean itself up? The only thing I can think of is when we are trying to fix permissions we do a filepath.Walk within that directory and the tmp file is there, but by the time we run the acl changes that file has since disappeared. I think the fix that @michel-laterman is proposing is probably good overall to have in place since we really can't guarantee the life of a tmp file, wdyt? |
Reported by @skearns64 as also affecting: 7.15.0 BC5 on Windows 10 |
I'll merge and backport to 7.15 and 7.16 |
@adam-stokes, @skearns64 the fix is now a part of 8.0, 7.16, and 7.15. Please reopen the issue (and ping me!) if it occurs again |
I believe this scenario is reproducible via PR runs of the e2e-testing scenario. recent run: |
This is a different error that I am tracking down:
We can re-close this issue as the fix for the reported error in the issue was resolved |
Adam is right. let's re-close - sorry for the confusion. |
This was found using the e2e-testing repo automation scenarios, nice.
Pipeline failure: https://beats-ci.elastic.co/blue/organizations/jenkins/e2e-tests%2Fe2e-testing-mbp/detail/PR-1539/13/pipeline
Error:
Specific Error:
This is happening pretty consistently now on fresh Windows VM each time
The text was updated successfully, but these errors were encountered: