#9500 closed defect (fixed)
TRAC-ADMIN error when used in svn post-commit hook
Reported by: | Owned by: | ||
---|---|---|---|
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 , 14 years ago
follow-up: 3 comment:2 by , 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
comment:3 by , 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:5 by , 14 years ago
Component: | database backend → version control |
---|---|
Keywords: | documentation added |
Milestone: | → 0.12.1 |
Owner: | set to |
Thanks!
You may have to set
PYTHON_EGG_CACHE
to the same value used in the web server before callingtrac-admin
.