-
Notifications
You must be signed in to change notification settings - Fork 159
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
Chmod elastic-agent.service
to 0644
so we avoid systemd log spam
#4619
Comments
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
How was this Elastic Agent installed? RPM or |
@blakerouse it was installed via RPM on Red Hat Enterprise Linux release 8.9. |
Looking at the packaging it seems that it has permissions set to Are you sure this was from a RPM install? I would expected the |
@blakerouse is not the line you linked for each Beat though? I thought the file path |
You are linking it from the elastic-agent repo so this is for the Elastic Agent itself, the elastic-agent repo doesn't install any beats service files. |
@blakerouse Correction: the customer didn't use the RPM package to install the agent, it was installed from |
Okay then this makes sense. |
Filed upstream kardianos/service#395 |
Upstream fix kardianos/service#397 |
Resolved via elastic/go-service#2. |
I was reading this completely wrong the error message says I am unable to find a place in the Elastic Agent where Looking at the DEB/RPM install path it is also set to Based on this I am wondering if the issue is actually specific to this one host, as we have not had any others report this issue. No code paths seem to match how this would occur. |
If this happened exclusively on this host and hasn't been reported since then shall we really keep this issue open? |
I lean towards closing this issue but perhaps we should do a quick sanity check first of the actual behavior: install Agent on Red Hat Enterprise Linux Server release 7.9 (Maipo) and Red Hat Enterprise Linux release 8.9 (Ootpa) and check that the |
I did a test on RedHat 8.10 and the service file is correct.
I did another test on RedHat 9.4 and the service file is correct.
I am going to close this issue as I am unable to reproduce. |
Describe the enhancement:
Our customers who installed Elastic-Agent as a systemd service are experiencing logs spam:
A bit more context on the issue:
It seems that the resolution would be to chmod the
elastic-agent.service
file to0644
instead of0600
.We're already setting it right for
*.service
files created for Beats.https://github.com/elastic/elastic-agent/blame/adef7f74d879f900e19f851624c9da3d6755a29a/dev-tools/packaging/packages.yml#L60-L62
Describe a specific use case for the enhancement or feature:
Installing Elastic Agent as a systemd service on Linux.
What is the definition of done?
In all Linux packaging the
elastic-agent.service
file has0644
permissions.The text was updated successfully, but these errors were encountered: