Trac 0.12 No email notification on SVN post-commit hook

125 views
Skip to first unread message

Happy

unread,
May 29, 2010, 10:00:04 AM5/29/10
to Trac Users
hey all,

Just setup 0.12b, ive added a post-commit hook in svn hooks dir to
notify trac of changes using trac-admin ...changeset.... e.t.c. Using
the keywords fixes and ref e.t.c. in svn commit messages work a treat,
however unlike the webinterface, no emails are sent when I commit a
message containing something like "Fixes #20", even though trac does
close it.

Am i just missing another call i need to add to post-commit in order
for trac to send out email notifications?

Ive googled for a bit, but just finding out of date tickets for this.

I am aware you can setup SVN to email on commit, but really looking
for trac to do the emailing just like it would if I closed the ticket
on the web interface.

This is all I am currently calling :

/usr/bin/trac-admin /var/trac/admin changeset added "$REPOS" "$REV"


Cheers

Happy

Remy Blank

unread,
May 31, 2010, 1:45:54 PM5/31/10
to trac-...@googlegroups.com
Happy wrote:
> Am i just missing another call i need to add to post-commit in order
> for trac to send out email notifications?

From your description, you seem to have set up changeset notification
correctly.

Could it be that you have set the [ticket] commit_ticket_update_notify
option to false? It should default to true, though, so if you don't have
it, it's fine.

-- Remy

signature.asc

Remy Blank

unread,
May 31, 2010, 2:39:25 PM5/31/10
to trac-...@googlegroups.com
Happy wrote:
> Using
> the keywords fixes and ref e.t.c. in svn commit messages work a treat,
> however unlike the webinterface, no emails are sent when I commit a
> message containing something like "Fixes #20", even though trac does
> close it.

You mean that a ticket comment does appear, the ticket is closed, but no
notification is sent?

> Am i just missing another call i need to add to post-commit in order
> for trac to send out email notifications?

I have just tested here with current trunk, and the notifications are
delivered correctly. Can you try setting the log level to DEBUG and see
if there's anything relevant in the log?

-- Remy

signature.asc

Alan Gilmour

unread,
May 31, 2010, 4:18:55 PM5/31/10
to trac-...@googlegroups.com
Hi Remy,

Thanks for the advice. After more research I think it is down to my
python eggcache location. I seem to have a python-egg cache error :

Trac[commit_updater] ERROR: Failure sending notification on change to
ticket #26: ExtractionError: Can't extract file(s) to egg cache

Although, like many others before me, using SetEnv, or PythonOption
does not seem to make one bit of difference. For example even when
this is added to trac.conf in httpd/conf.d....

PythonOption PYTHON_EGG_CACHE /tmp


I continue to get this error :

[Errno 13] Permission denied: '/var/www/.python-eggs'

So it seems to be ignoring the location set above.

Currently googling for more solutions.

Cheers

Alan

Kind regards,

Alan

--
This message, together with any attachments, is for the confidential
and exclusive use of the intended addressee(s). If you receive it in
error, please delete the message. All information contained within
this e-mail is without prejudice. Do not disclose, copy, circulate or
use any information contained herein.

Mike

unread,
Jun 20, 2011, 1:49:35 PM6/20/11
to trac-...@googlegroups.com
Alan, did you ever resolve this? I'm experiencing the same problem, only it happens on some of my environments, but not others...
Reply all
Reply to author
Forward
0 new messages