#385: autotest user does not have permissions to access /var/log/autoqa.log --------------------+------------------------------------------------------- Reporter: tflink | Owner: Type: defect | Status: new Priority: major | Milestone: 0.7.0 Component: core | Keywords: --------------------+------------------------------------------------------- After installing 0.7.0, whenever I try to run a job as autotest, I get the following error:
{{{ [Errno 13] Permission denied: '/var/log/autoqa.log' }}}
Logging should work out of the box with no farther user intervention.
#385: autotest user does not have permissions to access /var/log/autoqa.log --------------------+------------------------------------------------------- Reporter: tflink | Owner: mkrizek Type: defect | Status: new Priority: major | Milestone: 0.7.0 Component: core | Resolution: Keywords: | --------------------+------------------------------------------------------- Changes (by kparal):
* owner: => mkrizek
Comment:
I believe it should be enough to put that file into spec and assign correct permissions to it. Or is there a better approach? Reassigning to Martin.
#385: autotest user does not have permissions to access /var/log/autoqa.log --------------------+------------------------------------------------------- Reporter: tflink | Owner: mkrizek Type: defect | Status: closed Priority: major | Milestone: 0.7.0 Component: core | Resolution: fixed Keywords: | --------------------+------------------------------------------------------- Changes (by tflink):
* status: new => closed * resolution: => fixed
Comment:
From what I can tell, it's far more common for applications that log into /var/log to use their own directory (cobbler, couchdb, httpd etc.).
So I changed the default log location to /var/log/autoqa/autoqa.log and updated the spec to create that directory with proper permissions such that autoqa can write to the file.
pushed b3014bfc8e58d2e73ce4354c4b1c7ae81efc4334
available in autoqa-0.7.0-0.2.pre
autoqa-devel@lists.fedorahosted.org