-
Notifications
You must be signed in to change notification settings - Fork 148
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
error installing package: failed to copy source directory #6300
Comments
What Linux distribution is this? Can you include the full command you executed and all of the logs? |
I'm seeing the same issue with 8.15.2 on one box, a Satellite server running RHEL 8.10:
I've verified that the user running the install (root) has rwx permissions on the source and destination. I've done the install on 200+ other servers, running CentOS 7, RHEL 8 and 9, with no issues like this. |
Hmm, perhaps something doesn't like .jar files specifically? There is nothing off about the permissions in the 8.15.2 release. We are installing elastic agent builds constantly all day in automation and haven't seen this, but likely this is something peculiar about particular machines. Especially odd that this doesn't reproduce every time.
|
Any chance SELinux is enabled on the RHEL 8.10 box? It is on by default with a targeted policy, if so it is probably worth checking the SELinux logs to see if it blocked access to the JAR file. |
SELinux is enabled, but no alerts or warnings in the audit log. I remember checking that the first time I got errors. SELinux is enabled on most of our servers and didn't cause any other issues. |
Do you have fapolicyd enabled? You could verify if it's running via If so, this could also be a fapolicy rule, something like
Sometimes this is found in Turning off fapolicyd via |
That was it exactly! disabling fapolicyd allowed the Elastic agent to install. Apparently satellite is the only server we have running fapolicyd so I didn't even think about it (or, really know anything about it, until now!). Thanks! |
Hello,
I am trying to install an agent in elastic 8.14.3 and keep getting this error during the install:
Error copying files [0s] Error uninstalling. Printing logs
error installing package: failed to copy source directory (data/elastic-agent-2df2c1) to destination (data/elastic-agent-8.14.3-2df2c1): open /opt/elastic-agent-8.14.3-linux-x86_64/data/elastic-agent-2df2c1/components/java-attacher.jar: operation not permitted
Anyone run in to this?
The text was updated successfully, but these errors were encountered: