I am new to administering trac and svn so please excuse any silly errors (I 
have used both for many years though). I am trying to get SVN 1.8.10 and 
trac 0.12.5 running on the Raspberry Pi. I have got the basics working but 
I am having problems getting the CommitTicketUpdater to work.

Full details of my install can be found 
http://davidcozenssoftware.blogspot.co.uk/2015/06/installing-svn-and-trac-on-raspberry-pi.html.
 
Having completed the install I have then added the Play repository to trac 
using the Admin Panel. I then performed a manual sync

sudo -u www-data trac-admin /var/trac/projects/play repository resync "play"


Edited trac.ini to configure the updater.

sudo -u www-data vi /var/trac/projects/play/conf/trac.ini

In the [trac] section set *repository_sync_per_request *blank

repository_sync_per_request = 


In /var/svn/repos/play/hooks created a file called *post-commit* with this 
content

#!/bin/shexport PYTHON_EGG_CACHE="/tmp"
/usr/bin/trac-admin /var/trac/projects/play changeset added "$1" "$2"


In the same place created *post-revprop-change* with this content

#!/bin/shexport PYTHON_EGG_CACHE="/tmp"
/usr/bin/trac-admin /var/trac/projects/play changeset modified "$1" "$2"


Ensured that both of these scripts are owned by www-data and that both are 
executable

sudo chown -R www-data:www-data post-commit post-revprop-change

sudo chmod +x post-commit post-revprop-change


I Enable the CommitTicketUpdater and CommitTicketReferenceMacro in the trac 
admin panel, and added the following to the [ticket] section of trac.ini.

commit_ticket_update_envelope = []

commit_ticket_update_commands.close =

commit_ticket_update_commands.refs = <ALL>

commit_ticket_update_check_perms = true 

commit_ticket_update_notify = true


I can see from the trac log that trac is being informed of the changset 
being added, however the ticket is not being updated, the extract below is 
the full set of messages generated when I make a commit. Any assistance 
would be much appreciated.

2016-07-19 11:19:34,480 Trac[env] INFO: -------------------------------- 
environment startup [Trac 0.12.5] --------------------------------

2015-07-19 11:19:34,542 Trac[loader] DEBUG: Loading trac.about from /usr/lib
/python2.7/dist-packages

2015-07-19 11:19:34,544 Trac[loader] DEBUG: Loading trac.admin.console from 
/usr/lib/python2.7/dist-packages

2015-07-19 11:19:34,545 Trac[loader] DEBUG: Loading trac.admin.web_ui from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:34,549 Trac[loader] DEBUG: Loading trac.attachment from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:34,550 Trac[loader] DEBUG: Loading trac.db.mysql from /usr/
lib/python2.7/dist-packages

2015-07-19 11:19:34,555 Trac[loader] DEBUG: Loading trac.db.postgres from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:34,558 Trac[loader] DEBUG: Loading trac.db.sqlite from /usr
/lib/python2.7/dist-packages

2015-07-19 11:19:34,570 Trac[loader] DEBUG: Loading trac.mimeview.patch from 
/usr/lib/python2.7/dist-packages

2015-07-19 11:19:34,572 Trac[loader] DEBUG: Loading trac.mimeview.pygments 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:34,632 Trac[loader] DEBUG: Loading trac.mimeview.rst from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,119 Trac[loader] DEBUG: Loading trac.mimeview.silvercity 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,153 Trac[loader] DEBUG: Skipping "trac.mimeview.silvercity 
= trac.mimeview.silvercity [silvercity]": ("DistributionNotFound: 
SilverCity>=0.9.4" not found)

2015-07-19 11:19:35,154 Trac[loader] DEBUG: Loading trac.mimeview.txtl from 
/usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,187 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = 
trac.mimeview.txtl [textile]": ("DistributionNotFound: textile>=2.0" not 
found)

2015-07-19 11:19:35,188 Trac[loader] DEBUG: Loading trac.prefs from /usr/lib
/python2.7/dist-packages

2015-07-19 11:19:35,190 Trac[loader] DEBUG: Loading trac.search from /usr/
lib/python2.7/dist-packages

2015-07-19 11:19:35,193 Trac[loader] DEBUG: Loading trac.ticket.admin from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,200 Trac[loader] DEBUG: Loading trac.ticket.query from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,213 Trac[loader] DEBUG: Loading trac.ticket.report from 
/usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,217 Trac[loader] DEBUG: Loading trac.ticket.roadmap from 
/usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,224 Trac[loader] DEBUG: Loading trac.ticket.web_ui from 
/usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,239 Trac[loader] DEBUG: Loading trac.timeline from /usr/
lib/python2.7/dist-packages

2015-07-19 11:19:35,245 Trac[loader] DEBUG: Loading trac.versioncontrol.admin 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,248 Trac[loader] DEBUG: Loading 
trac.versioncontrol.svn_authz 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,251 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_fs 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,257 Trac[loader] DEBUG: Loading 
trac.versioncontrol.svn_prop 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,297 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,298 Trac[loader] DEBUG: Loading trac.web.auth from /usr/
lib/python2.7/dist-packages

2015-07-19 11:19:35,314 Trac[loader] DEBUG: Loading trac.web.session from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,317 Trac[loader] DEBUG: Loading trac.wiki.admin from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,318 Trac[loader] DEBUG: Loading trac.wiki.interwiki from 
/usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,325 Trac[loader] DEBUG: Loading trac.wiki.macros from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,326 Trac[loader] DEBUG: Loading trac.wiki.web_api from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,328 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /
usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,332 Trac[loader] DEBUG: Loading tracopt.mimeview.enscript 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,336 Trac[loader] DEBUG: Loading tracopt.mimeview.php 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,338 Trac[loader] DEBUG: Loading tracopt.perm.authz_policy 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,341 Trac[loader] DEBUG: Loading 
tracopt.perm.config_perm_provider 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,343 Trac[loader] DEBUG: Loading 
tracopt.ticket.commit_updater 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,349 Trac[loader] DEBUG: Loading tracopt.ticket.deleter 
from /usr/lib/python2.7/dist-packages

2015-07-19 11:19:35,359 Trac[api] DEBUG: Event changeset_added on /var/svn/
repos/play for changesets (u'5',)

2015-07-19 11:19:35,542 Trac[svn_fs] DEBUG: Subversion bindings imported

2015-07-19 11:19:35,558 Trac[cache] INFO: repos rev [5] != cached rev [4]

2015-07-19 11:19:35,565 Trac[cache] INFO: Trying to sync revision [5]

2015-07-19 11:19:35,578 Trac[cache] DEBUG: Caching node change in [5]: (u
'trunk/test.txt', 'file', 'edit', u'trunk/test.txt', 4L)

2015-07-19 11:19:35,618 Trac[api] DEBUG: Event changeset_added on play for 
revision 5


-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to