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

Permission issue on /var/lib/pbench-agent/pbench.log on put-shim #3302

Open
riya-17 opened this issue Mar 2, 2023 · 1 comment
Open

Permission issue on /var/lib/pbench-agent/pbench.log on put-shim #3302

riya-17 opened this issue Mar 2, 2023 · 1 comment

Comments

@riya-17
Copy link
Member

riya-17 commented Mar 2, 2023

when pbench-results-push command on pbench-agent is called from put-shim on the pbench-server it is unable to create, access pbench-agent directory and pbench.log file respectively. File owner is root.root.

rhel-riya-put-shim pbench-server-p[44967]: pbench-server-put-shim2023-02-20T15:44:01.450959 ERROR 44967 139805258172224 pbench-server-put-shim.process_tb process_tb 112 -- run-2023-02-20T15:44:01-UTC: Unexpected Error while running Agent's 'pbench-result-push' command: b"[Errno 13] Permission denied: '/var/lib/pbench-agent'\n"

@webbnh
Copy link
Member

webbnh commented Mar 3, 2023

It looks like pbench_run is set to /var/lib/pbench-agent in /opt/pbench-agent/config/pbench-agent-default.cfg. You could try overriding that in your pbench-agent.cfg file and pointing it to a directory where the Agent can write.

Unfortunately, there seem to be lots of places where /var/lib/pbench-agent is hard-coded, so I don't know whether changing the configuration will get to the spot where you need it, but it's worth a try.

On the other hand, since we control the system where put-shim is going to run, at least for now you could manually create this directory and give it the appropriate permissions for our use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants