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

deb package: add grafana-agent to adm and systemd-journal groups #737

Closed
rfratto opened this issue Jul 13, 2021 · 1 comment · Fixed by #771
Closed

deb package: add grafana-agent to adm and systemd-journal groups #737

rfratto opened this issue Jul 13, 2021 · 1 comment · Fixed by #771
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.

Comments

@rfratto
Copy link
Member

rfratto commented Jul 13, 2021

From #524:

Figured out the reason. The default UID/GID for grafana-agent does not have access to systemd-journal group used by Ubuntu 20.10.

To solve this:

usermod -a -G adm grafana-agent
usermod -a -G systemd-journal grafana-agent

Originally posted by @zanglang in #524 (comment)

@rfratto rfratto changed the title deb package: add Agent to adm and systemd-journal deb package: add grafana-agent to adm and systemd-journal groups Jul 13, 2021
@MurzNN
Copy link
Contributor

MurzNN commented Jul 13, 2021

Also will be good to find some way to log some error, if grafana-agent have no permissions to read journal files, because now even with debug level there are no log records, that can show this problem.

rfratto added a commit to rfratto/agent that referenced this issue Jul 22, 2021
rfratto added a commit that referenced this issue Jul 22, 2021
…ups (#771)

* deb package: add grafana-agent user to adm and systemd-journal groups

Closes #737

* changelog

* fix comment

* mirror change to rpm

* update changelog

* lint packaging scripts

* fix lint errors

* invert condition for group check
mattdurham pushed a commit that referenced this issue Nov 11, 2021
…ups (#771)

* deb package: add grafana-agent user to adm and systemd-journal groups

Closes #737

* changelog

* fix comment

* mirror change to rpm

* update changelog

* lint packaging scripts

* fix lint errors

* invert condition for group check
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants