-
Notifications
You must be signed in to change notification settings - Fork 37
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
Unix collector unable to read /proc filesystem #249
Comments
Log msg
|
The customer who took the 21.05.3 pre-release build hit this issue too. |
sorry, I am probably wrong, it should set to the user owning the files. |
could you check if the user-ID of the poller is harvest as well when you start them with systemctl? |
yes it is harvest in both cases. |
I reproduced this issue on a Debian 8 with harvest version
We would expect that with these credentials pollers should have access to all files in
And looking at the
This means (as I understand it) that We can fix this by changing the real user and group IDs either in The reason why we don't get the same error when running the poller with systemctl, is that it runs the pollers as user A safe workaround is do the same when you start pollers directly: sudo -u harvest ./bin/harvest start unix |
Fixed by #553. Closing |
This happens on RHEL and Deb systems due to changes in #141 that set the SUID bit for executables in
harvest/bin
so they always run as theharvest
user.The
harvest
user does not have permission to read the/proc/
filesystem which means the Unix collector fails to start.One workaround is to run as root directly or via sudo
The text was updated successfully, but these errors were encountered: