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

Mailing List Archive: Trac: Users

mod_python

 

 

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


jason.morgan at citel

Oct 22, 2004, 2:40 PM

Post #1 of 9 (519 views)
Permalink
mod_python

Hi

I've been trying to install trac ModPythonHandler with little success.

Despite a bug (reported as a ticket) I still have the following problem.

Installing trac using a single repository works using the conventional method.
Installing trac using a single repository off a single location & mod_python does not work.
Installing trac using multiple repositories off a single location & mod_python does not work.

The repositories are all in c:\SVN_ROOT\

Each repository has had a trac.db folder created using trac-admin c:\wvn_root\project\trac.db, followed by initdb

The closest I can get is a directory list of the projects, but clicking on them tries invalid urls or even crashes apache (it creates thousands of threads!!)


Regards,

Jason Morgan


cmlenz at gmx

Oct 22, 2004, 7:34 PM

Post #2 of 9 (499 views)
Permalink
mod_python [In reply to]

Am 22.10.2004 um 16:32 schrieb Jason Morgan:
> I've been trying to install trac ModPythonHandler with little success.
>
> Despite a bug (reported as a ticket) I still have the following
> problem.
>
> Installing trac using a single repository works using the conventional
> method.
> Installing trac using a single repository off a single location &
> mod_python does not work.
> Installing trac using multiple repositories off a single location &
> mod_python does not work.
>
> The repositories are all in c:\SVN_ROOT\
>
> Each repository has had a trac.db folder created using trac-admin
> c:\wvn_root\project\trac.db, followed by initdb

Weird, since version 0.7 Trac uses an "Environment" instead of a single
database file, i.e. you should have written:

> Each repository has had an env folder created using trac-admin
> c:\wvn_root\project\<projectname>, followed by initenv

Maybe you have a stale version of Trac lying around?

> The closest I can get is a directory list of the projects, but
> clicking on them tries invalid urls or even crashes apache (it creates
> thousands of threads!!)

Very weird. What do you mean with "invalid urls"? Anything in the
apache error log?

Cheers, Chris
--
Christopher Lenz
/=/ cmlenz at gmx.de


trac at matt-good

Oct 23, 2004, 5:05 AM

Post #3 of 9 (498 views)
Permalink
mod_python [In reply to]

Well, I see two things here. As Chris said, "initdb" is deprecated.
The command is now "initenv" and I believe this actually does make a
difference since the way the Trac information was stored has been
changed.

The other thing is the directory layout. The Trac environments for your
projects should each be a path directly under the parent path, so
storing them in a directory beneath the SVN project directory will
probably cause you issues. You may want to do something along the lines
of:
c:\projects\svn\my_project
c:\projects\trac\my_project

So, create all your SVN repositories in the svn directory and all the
Trac environments in the trac directory.

If you still have problems, it's likely to be an issue with your Apache
config, so send the blocks for SVN and Trac.

--
Matthew Good <trac [at] matt-good>


jason.morgan at citel

Oct 27, 2004, 6:08 AM

Post #4 of 9 (501 views)
Permalink
mod_python [In reply to]

Hi,

If initdb is depricated, why not make it call the same function as initenv?
or pop up an error indicating its pending demise...

Anyway,

My SVN environment is as you ask.

c:\svn_root\project1\<SVNTREE>
c:\svn_root\project2\<SVNTREE>
c:\svn_root\project3\<SVNTREE>

This is as WebSVN requires it.

Are you suggesting that it should be as above, then

c:\trac_root\project1\<TRACTREE>
c:\trac_root\project2\<TRACTREE>
c:\trac_root\project3\<TRACTREE>

I've now given up on mod_python, and realised that there may be a better way - with a few changes anyway.

I already use WebSVN, changing its script a bit might make it possible to use WebSVN as a front and for multiple projects in Trac.

And result in a single page of presence for the SVN server.

Regards,
Jason.


-----Original Message-----
From: trac-bounces [at] lists
[mailto:trac-bounces [at] lists]On Behalf Of Matthew Good
Sent: 23 October 2004 06:05
To: Trac Mailing List
Subject: Re: [Trac] mod_python


Well, I see two things here. As Chris said, "initdb" is deprecated.
The command is now "initenv" and I believe this actually does make a
difference since the way the Trac information was stored has been
changed.

The other thing is the directory layout. The Trac environments for your
projects should each be a path directly under the parent path, so
storing them in a directory beneath the SVN project directory will
probably cause you issues. You may want to do something along the lines
of:
c:\projects\svn\my_project
c:\projects\trac\my_project

So, create all your SVN repositories in the svn directory and all the
Trac environments in the trac directory.

If you still have problems, it's likely to be an issue with your Apache
config, so send the blocks for SVN and Trac.

--
Matthew Good <trac [at] matt-good>

_______________________________________________
Trac mailing list
Trac [at] lists
http://lists.edgewall.com/mailman/listinfo/trac


bpduke at gmail

Aug 3, 2009, 3:04 PM

Post #5 of 9 (492 views)
Permalink
Re: mod_python [In reply to]

I forgot to post my environment. I am running Trac 11.5 on Apache 2.2,
Svn 1.6 and Windows 2008 server.

On Aug 3, 3:59 pm, bduke <bpd...@gmail.com> wrote:
> I'm having trouble getting mod_python to work. The page loads and
> tells me I need to login. When I click on login it pops up a box for
> authentication and I enter my login and then I get an 500 Internal
> Server Error. I have everything working through cgi but wanted to
> setup mod_python for better speed. There isn't any information in the
> Trac log either, the last line in it is "Retrieving session for ID
> 'bduke'". Can anyone help me on where to look to get this working?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


santusmarc at gmail

Aug 4, 2009, 3:29 AM

Post #6 of 9 (489 views)
Permalink
Re: mod_python [In reply to]

Post your apache error log, it should tell you what is wrong with your
configuration.

On Aug 3, 3:04 pm, bduke <bpd...@gmail.com> wrote:
> I forgot to post my environment. I am running Trac 11.5 on Apache 2.2,
> Svn 1.6 and Windows 2008 server.
>
> On Aug 3, 3:59 pm, bduke <bpd...@gmail.com> wrote:
>
>
>
> > I'm having trouble getting mod_python to work. The page loads and
> > tells me I need to login. When I click on login it pops up a box for
> > authentication and I enter my login and then I get an 500 Internal
> > Server Error. I have everything working through cgi but wanted to
> > setup mod_python for better speed. There isn't any information in the
> > Trac log either, the last line in it is "Retrieving session for ID
> > 'bduke'". Can anyone help me on where to look to get this working?
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


bpduke at gmail

Aug 4, 2009, 4:42 AM

Post #7 of 9 (486 views)
Permalink
Re: mod_python [In reply to]

Unfortunately, it doesn't show much:

127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/ HTTP/1.1" 403
3282
127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/js/
jquery.js HTTP/1.1" 304 -
127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/
css/trac.css HTTP/1.1" 304 -
127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/js/
trac.js HTTP/1.1" 304 -
127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/js/
search.js HTTP/1.1" 304 -
127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/
trac_logo_mini.png HTTP/1.1" 304 -
127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/
topbar_gradient.png HTTP/1.1" 304 -
127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/site/
your_project_logo.png HTTP/1.1" 404 3090
127.0.0.1 - - [04/Aug/2009:07:41:46 -0400] "GET /trac/login HTTP/1.1"
401 401
127.0.0.1 - bduke [04/Aug/2009:07:41:52 -0400] "GET /trac/login HTTP/
1.1" 500 546



On Aug 4, 6:29 am, Marc <santusm...@gmail.com> wrote:
> Post your apache error log, it should tell you what is wrong with your
> configuration.
>
> On Aug 3, 3:04 pm, bduke <bpd...@gmail.com> wrote:
>
> > I forgot to post my environment. I am running Trac 11.5 on Apache 2.2,
> > Svn 1.6 and Windows 2008 server.
>
> > On Aug 3, 3:59 pm, bduke <bpd...@gmail.com> wrote:
>
> > > I'm having trouble getting mod_python to work. The page loads and
> > > tells me I need to login. When I click on login it pops up a box for
> > > authentication and I enter my login and then I get an 500 Internal
> > > Server Error. I have everything working through cgi but wanted to
> > > setup mod_python for better speed. There isn't any information in the
> > > Trac log either, the last line in it is "Retrieving session for ID
> > > 'bduke'". Can anyone help me on where to look to get this working?
>
> > > Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


bpduke at gmail

Aug 4, 2009, 4:50 AM

Post #8 of 9 (485 views)
Permalink
Re: mod_python [In reply to]

Ok, I figured it out. It was a typo in my Location section for mod
python. I was using a backslash for a file location like c:\ and
apparently you have to use c:/

On Aug 4, 7:42 am, bduke <bpd...@gmail.com> wrote:
> Unfortunately, it doesn't show much:
>
> 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/ HTTP/1.1" 403
> 3282
> 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/js/
> jquery.js HTTP/1.1" 304 -
> 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/
> css/trac.css HTTP/1.1" 304 -
> 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/js/
> trac.js HTTP/1.1" 304 -
> 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/js/
> search.js HTTP/1.1" 304 -
> 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/
> trac_logo_mini.png HTTP/1.1" 304 -
> 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/
> topbar_gradient.png HTTP/1.1" 304 -
> 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/site/
> your_project_logo.png HTTP/1.1" 404 3090
> 127.0.0.1 - - [04/Aug/2009:07:41:46 -0400] "GET /trac/login HTTP/1.1"
> 401 401
> 127.0.0.1 - bduke [04/Aug/2009:07:41:52 -0400] "GET /trac/login HTTP/
> 1.1" 500 546
>
> On Aug 4, 6:29 am, Marc <santusm...@gmail.com> wrote:
>
> > Post your apache error log, it should tell you what is wrong with your
> > configuration.
>
> > On Aug 3, 3:04 pm, bduke <bpd...@gmail.com> wrote:
>
> > > I forgot to post my environment. I am running Trac 11.5 on Apache 2.2,
> > > Svn 1.6 and Windows 2008 server.
>
> > > On Aug 3, 3:59 pm, bduke <bpd...@gmail.com> wrote:
>
> > > > I'm having trouble getting mod_python to work. The page loads and
> > > > tells me I need to login. When I click on login it pops up a box for
> > > > authentication and I enter my login and then I get an 500 Internal
> > > > Server Error. I have everything working through cgi but wanted to
> > > > setup mod_python for better speed. There isn't any information in the
> > > > Trac log either, the last line in it is "Retrieving session for ID
> > > > 'bduke'". Can anyone help me on where to look to get this working?
>
> > > > Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


bpduke at gmail

Aug 4, 2009, 5:05 AM

Post #9 of 9 (487 views)
Permalink
Re: mod_python [In reply to]

Thanks for pointing me to the Apache error log also, that helped me
find the problem.

On Aug 4, 7:50 am, bduke <bpd...@gmail.com> wrote:
> Ok, I figured it out. It was a typo in my Location section for mod
> python. I was using a backslash for a file location like c:\ and
> apparently you have to use c:/
>
> On Aug 4, 7:42 am, bduke <bpd...@gmail.com> wrote:
>
> > Unfortunately, it doesn't show much:
>
> > 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/ HTTP/1.1" 403
> > 3282
> > 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/js/
> > jquery.js HTTP/1.1" 304 -
> > 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/
> > css/trac.css HTTP/1.1" 304 -
> > 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/js/
> > trac.js HTTP/1.1" 304 -
> > 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/js/
> > search.js HTTP/1.1" 304 -
> > 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/
> > trac_logo_mini.png HTTP/1.1" 304 -
> > 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/common/
> > topbar_gradient.png HTTP/1.1" 304 -
> > 127.0.0.1 - - [04/Aug/2009:07:41:43 -0400] "GET /trac/chrome/site/
> > your_project_logo.png HTTP/1.1" 404 3090
> > 127.0.0.1 - - [04/Aug/2009:07:41:46 -0400] "GET /trac/login HTTP/1.1"
> > 401 401
> > 127.0.0.1 - bduke [04/Aug/2009:07:41:52 -0400] "GET /trac/login HTTP/
> > 1.1" 500 546
>
> > On Aug 4, 6:29 am, Marc <santusm...@gmail.com> wrote:
>
> > > Post your apache error log, it should tell you what is wrong with your
> > > configuration.
>
> > > On Aug 3, 3:04 pm, bduke <bpd...@gmail.com> wrote:
>
> > > > I forgot to post my environment. I am running Trac 11.5 on Apache 2.2,
> > > > Svn 1.6 and Windows 2008 server.
>
> > > > On Aug 3, 3:59 pm, bduke <bpd...@gmail.com> wrote:
>
> > > > > I'm having trouble getting mod_python to work. The page loads and
> > > > > tells me I need to login. When I click on login it pops up a box for
> > > > > authentication and I enter my login and then I get an 500 Internal
> > > > > Server Error. I have everything working through cgi but wanted to
> > > > > setup mod_python for better speed. There isn't any information in the
> > > > > Trac log either, the last line in it is "Retrieving session for ID
> > > > > 'bduke'". Can anyone help me on where to look to get this working?
>
> > > > > Thanks
--~--~---------~--~----~------------~-------~--~----~
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.