> -----Original Message-----
> From:
trac-...@googlegroups.com On Behalf Of Christian
> Sent: 23 May 2012 21:43
> To:
trac-...@googlegroups.com
> Subject: [Trac] Re: Trac/SVN Post Commit Hook only partially working
>
> Okay,
>
> So, I have tracked this down to a permissions problem. If I run:
>
> chmod -R o+rw /var/trac
>
> The ticket gets updated successfully. One can easily see why
> I wouldn't want to do this.
>
> My permissions are set up as follows.
>
> Everything under /opt/ubersvn is set to group ubersvn and
> owner ubersvn
> Everything under /var/trac is set to group www-data and owner www-data
> The user ubersvn is a member of the www-data group so it has
> permission to write to the trac.db file
> /var/trac/sites/web/db/trac.db and it's directory. Thus the
> commit hook appears to work and refreshes the repository on
> the trac installation (i.e. I can see the commit message in
> the timeline)
>
> Now, in my commit hook script I attempted to add some logging
> like this: /var/trac/sites/web changeset added
> "/opt/ubersvn/repositories/web" "refs #270" >> log.txt
I'm not a *nix user but it looks to me like there might be one of two issues: a) the www-data user (who is running the hook script) needs permission to /opt/ubersvn (i.e. add www-data to ubersvn group?) and you allowed only the other way round? ...and/or b) you need to consider where `log.txt` is going to end up, apache will run the hook with a very minimal (empty!) environment...