Apparently, the user that runs the Subversion process doesn't have
write permissions on trac.log, so the ">> /tmp/trac.log" part fails.

HTH,
Daniel Serodio

On May 21, 1:05 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I get the following error when I run the trac post-commit script:
>
> Warning: 'post-commit' hook failed with error output:
> /srv/svn/repositories/snapshot/hooks/post-commit: line 62: /tmp/
> trac.log:Permissiondenied
>
> I already put 'umask 022' and here is my post-commit script.
>
> umask 022
>
> REPOS="$1"
> REV="$2"
> LOG=`/usr/local/bin/svnlook log -r $REV $REPOS`
> AUTHOR=`/usr/local/bin/svnlook author -r $REV $REPOS`
> TRAC_ENV='/srv/svn/tracenv/snapshot/'
> TRAC_URL='http://localhost/tracprojects/snapshot/'
>
> /usr/bin/python /srv/svn/repositories/snapshot/hooks/trac-post-commit-
> hook \
>     -p "$TRAC_ENV"  \
>     -r "$REV"       \
>     -u "$AUTHOR"    \
>     -m "$LOG"       \
>     -s "$TRAC_URL" 2>> /tmp/trac.log
>
> Thanks for any help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to