Open
Description
On Windows with an installed Elastic Agent that is enrolled into Fleet is unable to re-enroll. Performing enroll results in the following error:
C:\Program Files\Elastic\Agent>.\elastic-agent.exe enroll --url={url} --enrollment-token={token}
Error: the command is executed as root but the program files are not owned by the root user.
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.17/fleet-troubleshooting.html
For confirmed bugs, please report:
- Version: 8.17.3+
- Operating System: Windows
- Steps to Reproduce:
- Install
elastic-agent.exe
on Windows (not in unprivileged mode). - Go into that directory and then run
.\elastic-agent.exe enroll
and see that it fails with the following error:
C:\Program Files\Elastic\Agent>.\elastic-agent.exe enroll --url={url} --enrollment-token={token}
Error: the command is executed as root but the program files are not owned by the root user.
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.17/fleet-troubleshooting.html