Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

trac-post-commit-hook

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


lee.m.henson at gmail

Nov 23, 2006, 11:00 AM

Post #1 of 1 (2220 views)
Permalink
trac-post-commit-hook

Hi

I'm trying to get the trac-post-commit-hook working on my 0.10.2
trac/1.3.2 svn server (it's a shared hosting at Dreamhost).
Unfortunately, I'm getting some rather cryptic error messages (cryptic
for me anyway) when I follow the TracFaq advice of testing the hook
using:

env - ./post-commit <path to svn> <revision>

I'm getting the following output:

WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI!
WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
./post-commit: line 1:
http://trac-aspnetbarfly.spiderprojectmanagement.com/: No such file or
directory
Traceback (most recent call last):
File "/home/leemhenson/trac_contrib/trac-post-commit-hook", line 200,
in ?
CommitHook()
File "/home/leemhenson/trac_contrib/trac-post-commit-hook", line 145,
in __init__
self.env = open_environment(project)
File
"/home/leemhenson/packages/lib/python2.3/site-packages/trac/env.py",
line 434, in open_environment
env = Environment(env_path)
File
"/home/leemhenson/packages/lib/python2.3/site-packages/trac/env.py",
line 126, in __init__
self.verify()
File
"/home/leemhenson/packages/lib/python2.3/site-packages/trac/env.py",
line 174, in verify
fd = open(os.path.join(self.path, 'VERSION'), 'r')
IOError: [Errno 2] No such file or directory: 'Status: 302
Found\r\nLocation: http://localhost/login\r\nContent-Type:
text/plain\r\nPragma: no-cache\r\nCache-co
ntrol: no-cache\r\nExpires: Fri, 01 Jan 1999 00:00:00
GMT\r\nSet-Cookie:
trac_form_token=b7522687180fa8756cc9d1b6;\r\nSet-Cookie:
trac_session=e6ee11f9ea77d85f0
9e70aca; expires=Wed, 21-Feb-2007 18:55:24
GMT;\r\n\r\nRedirecting.../VERSION'

The complaint about
"http://trac-aspnetbarfly.spiderprojectmanagement.com/ No such file or
directory" is coming from my TRAC_URL variable in post-commit. I'm not
sure what to put here, but from what I've seen from the very few other
trac-post-commit-hooks on the net, it looks like it should just be the
url of your trac site.

If I commit a file with "fixes #4" or similar in the comment, nothing
happens to the ticket.

Any pointers gratefully accepted!

Cheers
Lee


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

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.