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

[docs] Add troubleshooting topic about running under SYSTEM for Endpoint #68

Merged
merged 3 commits into from
Aug 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions docs/en/ingest-management/troubleshooting.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Contact us in the {im-forum}[discuss forum]. Your feedback is very valuable to u
* <<ingest-manager-app-crashes>>
* <<agent-enrollment-timeout>>
* <<es-apikey-failed>>
* <<process-not-root>>
* <<agent-hangs-while-unenrolling>>

**Frequently asked questions:**
Expand Down Expand Up @@ -156,6 +157,36 @@ property in the `kibana.yml` configuration file. For example:
xpack.encryptedSavedObjects.encryptionKey: "something_at_least_32_characters"
----

[discrete]
[[process-not-root]]
== {agent} fails with `Agent process is not root/admin or validation failed` message

Make sure the user running {agent} has root privileges. If you're running
{agent} in the foreground (and not as a service) on Linux or macOS, run the
agent under the root user, for example, `sudo` or `su`. Some integrations
require root privileges to collect sensitive data.

If you're using the {elastic-endpoint} integration, also make sure you're
running {agent} under the SYSTEM account.

TIP: If you install {agent} as a service as described in
<<elastic-agent-installation>>, {agent} runs under the SYSTEM account by
default.

To run {agent} under the SYSTEM account, you can:

. Download https://docs.microsoft.com/en-us/sysinternals/downloads/psexec[PsExec]
and extract the contents to a folder, for example, `d:\tools`.
. Open a command prompt as an Administrator (right-click the Command Prompt
icon and select *Run As Administrator*).
. From the command prompt, run {agent} under the SYSTEM account:
+
[source,sh]
----
d:\tools\psexec.exe -sid "C:\Program Files\Elastic-Agent\elastic-agent.exe" run
----


[discrete]
[[agent-hangs-while-unenrolling]]
== {agent} hangs while unenrolling
Expand Down