Mark,

I got it to work!!
Apparently I was using the path to the old version of trac-admin (from
Trac 11.7).
I ran which trac-admin and got the path of the current version.
Once I updated the path, it worked!!

Thanks for your help!!


-Patty

-----Original Message-----
From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com]
On Behalf Of Cooke, Mark
Sent: Thursday, October 27, 2011 2:50 AM
To: trac-users@googlegroups.com
Subject: RE: [Trac] RE: Help with Trac Commit Ticket Updater

[Please reply in-line, it makes it easier to read...] 

> > -----Original Message-----
> > From: trac-users@googlegroups.com On Behalf Of Patty Cottrill
> > Sent: 26 October 2011 00:50
> > Subject: [Trac] Help with Trac Commit Ticket Updater
> > 
> > Hi Guys,
> >  
> > I need some help with this new component that is supposed to be 
> > included with Trac v.12.
> > I have tried to implement, but its not working for me at all.
> > The documentation refers to a script called commit_updater.py, but I

> > can't find it anywhere on our server.
> > Am I supposed to download this to the server and if so, where am I 
> > supposed to place it?
> > The documentation is not very clear, at least not to me:
> > http://trac.edgewall.org/wiki/CommitTicketUpdater
> >  
> > I have read the document reference above, plus 
> > http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync.
> > I followed the instructions, but no luck.
> >  
> > I enabled the compoments on trac.ini I enabled & edited the 
> > post-commit under the svn/hooks directory as instructed I added the 
> > configuration from the second document.
> >  
> > What am I missing?
> > Please advise.
> >  
> > -Patty
> >  
> -----Original Message-----
> From: trac-users@googlegroups.com On Behalf Of Cooke, Mark
> Sent: Wednesday, October 26, 2011 3:49 AM
> Subject: [Trac] RE: Help with Trac Commit Ticket Updater
> 
> I followed that advice and got it working on windows, I'm guessing you

> are on *nix?  It would help if you could provide a bit more 
> information, e.g. platform, trac version etc.  Can you post the 
> relevant bits of your trac.ini and your hook script?
> 
> ~ mark c
> 
> -----Original Message-----
> From: trac-users@googlegroups.com On Behalf Of Patty Cottrill
> Sent: 26 October 2011 17:11
> To: trac-users@googlegroups.com
> Subject: RE: [Trac] RE: Help with Trac Commit Ticket Updater
> 
> oops sorry about that.
> 
> Kubuntu 10.04
> Trac 0.12.2
> Python        2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]
> Subversion    1.6.6 (r40053)

Hmm, OK, I have limited *nix experience but here goes...

> Per the instructions on
> http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync
> I added the following to the post-commit under the svn/project/hooks
> directory:
> 
> export PYTHON_EGG_CACHE="/home/trac/project"
> /usr/bin/trac-admin /home/trac/project changeset added "$1" "$2"
> 
> also commented out the following line that was included in the 
> post-commit template:
> 
> #"$REPOS"/hooks/mailer.py commit "$REPOS" $REV "$REPOS"/mailer.conf
> 
> Made sure it was executable by owner, users & groups.

...and that includes the user that runs trac?  How are you serving
trac/svn, via apache or standalone?  You need to make sure that the
apache user is included (or better the owner, AFAI...understand).

Can you confirm that your value for "PYTHON_EGG_CACHE" matches your web
server config?  This is only needed "if you changed it from its default
location".

Also, how is your svn configured, via trac.ini or via the admin
repository command?  If the former, you may need to add `[Trac]`
`repository_sync_per_request = false`, see
http://trac.edgewall.org/wiki/TracRepositoryAdmin#PerRequestSync

> Per the instructions on
> http://trac.edgewall.org/wiki/CommitTicketUpdater
> I added the following to trac.ini:
> 
> Under [Components]
> tracopt.ticket.commit_updater.* = enabled
> 
> Under [Ticket]
> commit_ticket_update_envelope =
> commit_ticket_update_commands.close = close closed closes fix fixed 
> fixes commit_ticket_update_commands.refs = <ALL> 
> commit_ticket_update_check_perms = true commit_ticket_update_notify = 
> true

...that all looks ok.  What did you use for a commit message and what
(if anything) happened in your trac?

> As I stated in my email, I can not find anywhere on the server the 
> script commit_updater.py.
> Shouldn't I be able to see that script somewhere on the server?
> 
> -Patty
> 
More digging leads me to
http://trac.edgewall.org/wiki/CommitTicketUpdater#Location which says
that the script is part of the trunk source tree, so it will be in the
trac install or egg (if you use an egg).

I suspect a permissions issue, can you check that again?

Otherwise, do you have logging enabled to DEBUG in your Trac?  Can you
try a commit and see if anything appears in the log?

~ mark c

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

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

Reply via email to