Mark Callow edited a comment on Bug JENKINS-23543

The workaround is only temporary. When the logs are rotated, which happens every night, a new empty /var/log/jenkins/jenkins.log is created owned by root so the problem reappears. I have not yet found the place where log rotation is done so I can fix it. I am having to chown every day.

@Daniel Beck, carriage return has nothing to do with it. 0xd is the errno for "Permission Denied", which exactly describes the problem.

/var/log/jenkins/jenkins.log is specified as the Standard{Error,Out}Path in org.jenkins-ci.plist, which is used by launchd. My theory is that prior to Yosemite launchd opened the file and set up STDOUT & STDERR before changing the process owner to "jenkins" and running jenkins-runner.sh. In Yosemite, it seems launchd does not open the file until after it has changed the process ownership, hence "permission denied" when the file is owned by root.

I was hoping the person responsible for the OS X installer and the launchd file org.jenkins-ci.plist set-up would know right away how to fix this, once aware of the problem. It seems not as this major bug has languished for 4 months. I am new to launchd so have quite a learning curve.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to