<div dir="ltr">Hi Raymond,<div><br></div><div>The problem is that the ownership of the log file is incorrect. I've corrected that, implemented log rotation, tested that it sets the group owner to the project and that the files are created group writable, so all project members can write to the file.</div><div><br></div><div>The reason that the file had to be created owned by the user www-data is because the Trac daemon used to write to these files too (we don't use the Trac httpd daemon at the moment).</div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div><br></div><div>Erik.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 25, 2014 at 5:04 AM, Raymond Toy <span dir="ltr"><<a href="mailto:toy.raymond@gmail.com" target="_blank">toy.raymond@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Or maybe TRAC_ENV is not defined?<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Anyway, here is what git push produces. (The push succeeds, but the post-receive-hook stuff isn't executed.)<br><br>emote: Traceback (most recent call last):<br>remote: File "/project/cmucl/public_html/git/<a href="http://trac-post-receive-hook.3.py" target="_blank">trac-post-receive-hook.3.py</a>", line 193, in <module><br>remote: env = open_environment(TRAC_ENV)<br>remote: File "build/bdist.linux-x86_64/egg/trac/env.py", line 875, in open_environment<br>remote: File "build/bdist.linux-x86_64/egg/trac/core.py", line 124, in __call__<br>remote: File "build/bdist.linux-x86_64/egg/trac/env.py", line 284, in __init__<br>remote: File "build/bdist.linux-x86_64/egg/trac/env.py", line 640, in setup_config<br>remote: File "build/bdist.linux-x86_64/egg/trac/env.py", line 672, in setup_log<br>remote: File "build/bdist.linux-x86_64/egg/trac/log.py", line 27, in logger_handler_factory<br>remote: File "/usr/lib/python2.7/logging/__init__.py", line 901, in __init__<br>remote: StreamHandler.__init__(self, self._open())<br>remote: File "/usr/lib/python2.7/logging/__init__.py", line 924, in _open<br>remote: stream = open(self.baseFilename, self.mode)<br>remote: IOError: [Errno 13] Permission denied: u'/project/cmucl/trac/log/trac.log'<br>To ssh://<a href="http://rtoy@common-lisp.net/var/git/projects/cmucl/cmucl.git" target="_blank">rtoy@common-lisp.net/var/git/projects/cmucl/cmucl.git</a><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 8:01 PM, Raymond Toy <span dir="ltr"><<a href="mailto:toy.raymond@gmail.com" target="_blank">toy.raymond@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I just tried to push a commit to the cmucl repo and got an error from cmucl's post-receive-hook.<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I think it's complaining that /project/cmucl/trac/log/trac.log has the wrong permissions. All of the backup logs are owned www-data.cmucl. But the current log is www-data.www-data. The actual permissions (rw-rw-r--) on the file seems to be ok, compared to the others.<span><font color="#888888"><br clear="all"></font></span></div><span><font color="#888888"><br>-- <br><div dir="ltr"><div></div>Ray<br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><div></div>Ray<br></div>
</font></span></div>
<br>_______________________________________________<br>
Clo-devel mailing list<br>
<a href="mailto:Clo-devel@common-lisp.net">Clo-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/cgi-bin/mailman/listinfo/clo-devel" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/clo-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Bye,<div><br></div><div>Erik.</div><div><br></div><div><a href="http://efficito.com/" target="_blank">http://efficito.com</a> -- Hosted accounting and ERP.</div><div>Robust and Flexible. No vendor lock-in.</div></div>
</div>