I found the problem. It turns out, I need to set the PYTHON_EGG_CACHE dir 
before 
calling trac-admin.

 
--Mark





________________________________
From: Matthew Caron <[email protected]>
To: [email protected]
Cc: mark ardiente <[email protected]>
Sent: Wednesday, November 3, 2010 2:09:22 AM
Subject: Re: [Trac] - svn post-commit hooks fail when using MySQL database

On 11/02/2010 12:10 AM, mark ardiente wrote:
> I tried manually adding the changeset and it works
> trac-admin /var/path/to/trac/project changeset added path/to/svn/repo<revison>
> 
> but it issues this error when i commit any changes to my svn repo
> 
>   Warning: 'post-commit' hook failed with error output:
> TracError: Unsupported database type "mysql"

Presuming that the two run as different users, I'd suggest that perhaps the 
post-commit hook user's environment is different than yours. Try:

sudo -u <post-commit user> -i

Then run your command.

Further, it could be that since it is not actually a login environment, that 
some paths are not being set up correctly for that user. This, of course, is 
heavily platform dependent, especially when dealing with older-style systems 
making use of environment variables to configure shared library paths.
-- Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
[email protected]

-- You received this message because you are subscribed to the Google Groups 
"Trac Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to