Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#9500 closed defect (fixed)

TRAC-ADMIN error when used in svn post-commit hook

Reported by: dmcr@… Owned by: Dennis McRitchie <dmcr@…>
Priority: normal Milestone: 0.12.1
Component: version control Version: 0.12
Severity: normal Keywords: documentation
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Using the new multi-repository configuration available in 0.12, I am able to get the trac-admin command to do the right thing when I issue the "changeset added" subcommand from the command line. However, when I put the same command into my subversion post-commit hook, I get: 'TracError: Unsupported database type "mysql"'.

trac-admin does not successfully execute. I am using mysql for my Trac databases, and have had no problems using mysql with about 12 different Trac projects.

The "solution" I found to this problem was to unzip the MySQL_python-1.2.2-py2.5-linux-i686.egg. Once I did that, trac-admin worked both in and out of a post-commit hook.

I am using: apache 2.2.4 mod_python 3.3.1 python 2.5 MySQL_python 1.2.2 mysql Ver 14.7 Distrib 4.1.22

Thought I'd pass this on in case it helps someone else.

Dennis McRitchie

Attachments (0)

Change History (5)

comment:1 by Remy Blank, 14 years ago

You may have to set PYTHON_EGG_CACHE to the same value used in the web server before calling trac-admin.

comment:2 by dmcr@…, 14 years ago

Thanks! That did the trick. :-)

I have since found a reference to that advice at http://trac.edgewall.org/wiki/TracPlugins.

But if you could also add that advice to http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync, that might save someone else many hours of flailing around.

Thanks again.

Dennis

in reply to:  2 comment:3 by Christian Boos, 14 years ago

Replying to dmcr@…:

But if you could also add that advice to http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync, that might save someone else many hours of flailing around.

Please, be our guest, this is a Wiki and contributions to the documentation are always welcome ;-)

comment:4 by Dennis McRitchie <dmcr@…>, 14 years ago

Resolution: fixed
Status: newclosed

Done.

Closing ticket.

comment:5 by Christian Boos, 14 years ago

Component: database backendversion control
Keywords: documentation added
Milestone: 0.12.1
Owner: set to Dennis McRitchie <dmcr@…>

Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Dennis McRitchie <dmcr@…>.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Dennis McRitchie <dmcr@…> to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.