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

Mailing List Archive: Trac: Users

Which 0.12dev to use

 

 

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


kamin at embedded

Oct 27, 2009, 9:31 AM

Post #1 of 6 (508 views)
Permalink
Which 0.12dev to use

Hi!

We are currently using 0.12dev-r7285 and need to migrate very soon. As we need to reinstall anyway, we would like to update all used software. Is there a revision of 0.12dev that you believe to be "more stable" than others? The same question goes for genshi.

During our first migration tests, we used trunk for both trac and genshi.

Also: mod_python seems to be dead and it limits us to Python 2.5. Is WSGI working properly by now?

Our server is running Windows Server 2003 (might change to 2008) and we are running Apache 2.2.14.
SVN is VisualSVN 2.0.7 using Subversion 1.6.5.
mySQL 5.1 is also available: is it better to use mySQL or sqlite?

We also use LDAP authentication and XML-RPC (as interface to mylin).

Regards
Volker Kamin

--
Dipl.-Inform. Volker Kamin

RWTH Aachen University
Embedded Software Laboratory
Ahornstr. 55
52074 Aachen

fon: +49 241 80 21157
fax: +49 241 80 22150
web: http://www.embedded.rwth-aachen.de/


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


remy.blank at pobox

Oct 27, 2009, 12:01 PM

Post #2 of 6 (478 views)
Permalink
Re: Which 0.12dev to use [In reply to]

Kamin, Volker wrote:
> Is there a revision of 0.12dev that you believe to be “more stable” than
> others?

trunk is usually "fairly stable", but there's of course no guarantee for
any revision. OTOH, if you install from SVN, and a particular revision
gives you trouble, it's pretty easy to update to a more recent version.

> The same question goes for genshi.

If you use trunk, you must install the advanced-i18n branch of Genshi:

http://svn.edgewall.org/repos/genshi/branches/experimental/advanced-i18n

> Also: mod_python seems to be dead and it limits us to Python 2.5. Is
> WSGI working properly by now?

WSGI is actually the recommended way to run Trac.

> mySQL 5.1 is also available: is it better to use mySQL or sqlite?

This depends on the number of users, and how often they use Trac. For
small installations (~50 users), SQLite is more than adequate. If you
have more users, I would suggest using PostgreSQL. While MySQL works and
is officially supported, it has a few drawbacks (you can read about them
on the MySQL page on trac.edgewall.org) and not that many users.

Good luck!

-- Remy
Attachments: signature.asc (0.19 KB)


kamin at embedded

Oct 28, 2009, 1:47 AM

Post #3 of 6 (468 views)
Permalink
AW: Re: Which 0.12dev to use [In reply to]

Trunk of Trac seems to work fine with trunk of Genshi. Why do I need to use branches/experimental/advanced-i18n?

Regards,
Volker

--
Dipl.-Inform. Volker Kamin

RWTH Aachen University
Embedded Software Laboratory
Ahornstr. 55
52074 Aachen

fon: +49 241 80 21157
fax: +49 241 80 22150
web: http://www.embedded.rwth-aachen.de/


-----Ursprüngliche Nachricht-----
Von: trac-users [at] googlegroups [mailto:trac-users [at] googlegroups] Im Auftrag von Remy Blank
Gesendet: Dienstag, 27. Oktober 2009 20:02
An: trac-users [at] googlegroups
Betreff: [Trac] Re: Which 0.12dev to use

Kamin, Volker wrote:
> Is there a revision of 0.12dev that you believe to be "more stable"
> than others?

trunk is usually "fairly stable", but there's of course no guarantee for any revision. OTOH, if you install from SVN, and a particular revision gives you trouble, it's pretty easy to update to a more recent version.

> The same question goes for genshi.

If you use trunk, you must install the advanced-i18n branch of Genshi:

http://svn.edgewall.org/repos/genshi/branches/experimental/advanced-i18n

> Also: mod_python seems to be dead and it limits us to Python 2.5. Is
> WSGI working properly by now?

WSGI is actually the recommended way to run Trac.

> mySQL 5.1 is also available: is it better to use mySQL or sqlite?

This depends on the number of users, and how often they use Trac. For small installations (~50 users), SQLite is more than adequate. If you have more users, I would suggest using PostgreSQL. While MySQL works and is officially supported, it has a few drawbacks (you can read about them on the MySQL page on trac.edgewall.org) and not that many users.

Good luck!

-- Remy


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


remy.blank at pobox

Oct 28, 2009, 3:01 AM

Post #4 of 6 (469 views)
Permalink
Re: AW: Re: Which 0.12dev to use [In reply to]

Kamin, Volker wrote:
> Trunk of Trac seems to work fine with trunk of Genshi.
> Why do I need to use branches/experimental/advanced-i18n?

The main issue is that Trac will generate invalid XHTML, due to the
<i18n:msg> tags that are contained in the templates and are meant as
hints for translation. They are not stripped from the generated XHTML if
you use Genshi trunk.

-- Remy
Attachments: signature.asc (0.19 KB)


kamin at embedded

Oct 28, 2009, 3:38 AM

Post #5 of 6 (480 views)
Permalink
AW: Re: Which 0.12dev to use [In reply to]

Hi again,

the test-setup using mod_python yesterday ran without problems. Today I reinstalled everything using Python 2.6 and WSGI instead of mod_python, but I don't seem to get it working.

The Browser states:
----
Internal Server Error

TracError: IOError: (22, "invalid mode ('r') or filename")
----

My guess is that my httpd.conf is bad, but I cannot locate the error (Apache doesn't log any errors [.apart from some PHP errors that are due to some other project, but didn't interfere with mod_python])

I added the following lines to the httpd.conf file:
----
LoadModule wsgi_module modules/mod_wsgi.so

WSGIScriptAlias /trac /trac/tas/cgi-bin/trac.wsgi

<Directory /trac/tas>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
----
For the directory entry I also tried "/trac" and "/trac/tas/cgi-bin"

The WSGI module is in the correct directory and seems to be loaded properly. To my understanding, http://server/trac should now display the Trac page, but only shows the error message (cf. above).

The Trac environment has been initialized and deployed. The automatically generated trac.wsgi file can be found at
C:\trac\tas\cgi-bin\trac.wsgi
I moved it there from C:\trac\temp\cgi-bin\trac.wsgi (cf. Trac deploy documentation).

The script seems to be ok, but I post it anyway because I might have overlooked something:
----
import os

def application(environ, start_request):
if not 'trac.env_path_parent_dir' in environ:
environ.setdefault('trac.env_path', 'C:\trac\tas')
if 'PYTHON_EGG_CACHE' in environ:
os.environ['PYTHON_EGG_CACHE'] = environ['PYTHON_EGG_CACHE']
elif 'trac.env_path' in environ:
os.environ['PYTHON_EGG_CACHE'] = os.path.join(environ['trac.env_path'],
'.egg-cache')
elif 'trac.env_path_parent_dir' in environ:
os.environ['PYTHON_EGG_CACHE'] = os.path.join(environ['trac.env_path_parent_dir'],
'.egg-cache')
from trac.web.main import dispatch_request
return dispatch_request(environ, start_request)
----

File access rights have been granted to C:\trac for SYSTEM, NETWORKSERVICE, and my user account

What did I do wrong?

Regards,
Volker

--
Dipl.-Inform. Volker Kamin

RWTH Aachen University
Embedded Software Laboratory
Ahornstr. 55
52074 Aachen

fon: +49 241 80 21157
fax: +49 241 80 22150
web: http://www.embedded.rwth-aachen.de/


-----Ursprüngliche Nachricht-----
Von: trac-users [at] googlegroups [mailto:trac-users [at] googlegroups] Im Auftrag von Remy Blank
Gesendet: Dienstag, 27. Oktober 2009 20:02
An: trac-users [at] googlegroups
Betreff: [Trac] Re: Which 0.12dev to use

Kamin, Volker wrote:
> Is there a revision of 0.12dev that you believe to be "more stable"
> than others?

trunk is usually "fairly stable", but there's of course no guarantee for any revision. OTOH, if you install from SVN, and a particular revision gives you trouble, it's pretty easy to update to a more recent version.

> The same question goes for genshi.

If you use trunk, you must install the advanced-i18n branch of Genshi:

http://svn.edgewall.org/repos/genshi/branches/experimental/advanced-i18n

> Also: mod_python seems to be dead and it limits us to Python 2.5. Is
> WSGI working properly by now?

WSGI is actually the recommended way to run Trac.

> mySQL 5.1 is also available: is it better to use mySQL or sqlite?

This depends on the number of users, and how often they use Trac. For small installations (~50 users), SQLite is more than adequate. If you have more users, I would suggest using PostgreSQL. While MySQL works and is officially supported, it has a few drawbacks (you can read about them on the MySQL page on trac.edgewall.org) and not that many users.

Good luck!

-- Remy


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


mark.cooke at siemens

Oct 28, 2009, 3:56 AM

Post #6 of 6 (473 views)
Permalink
Re: Which 0.12dev to use [In reply to]

Hello,

> the test-setup using mod_python yesterday ran without
> problems. Today I reinstalled everything using Python 2.6 and
> WSGI instead of mod_python, but I don't seem to get it working.
>
> The Browser states:
> ----
> Internal Server Error
>
> TracError: IOError: (22, "invalid mode ('r') or filename")
> ----
>
> My guess is that my httpd.conf is bad, but I cannot locate
> the error (Apache doesn't log any errors [.apart from some PHP
> errors that are due to some other project, but didn't
> interfere with mod_python])
>
> I added the following lines to the httpd.conf file:
> ----
> LoadModule wsgi_module modules/mod_wsgi.so
>
> WSGIScriptAlias /trac /trac/tas/cgi-bin/trac.wsgi
>
> <Directory /trac/tas>
> WSGIApplicationGroup %{GLOBAL}
> Order deny,allow
> Allow from all
> </Directory>
> ----
> For the directory entry I also tried "/trac" and "/trac/tas/cgi-bin"
>
You said you were using windows so try using windows paths instead of
*nix... My relevant configuration lines are:

WSGIScriptAlias /trac D:/TRAC/apache/trac.wsgi

<Directory D:/TRAC/apache>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>


> The WSGI module is in the correct directory and seems to be
> loaded properly. To my understanding, http://server/trac
> should now display the Trac page, but only shows the error
> message (cf. above).
>
> The Trac environment has been initialized and deployed. The
> automatically generated trac.wsgi file can be found at
> C:\trac\tas\cgi-bin\trac.wsgi
> I moved it there from C:\trac\temp\cgi-bin\trac.wsgi (cf.
> Trac deploy documentation).
>
> The script seems to be ok, but I post it anyway because I
> might have overlooked something:
> ----
> import os
>
> def application(environ, start_request):
> if not 'trac.env_path_parent_dir' in environ:
> environ.setdefault('trac.env_path', 'C:\trac\tas')
> if 'PYTHON_EGG_CACHE' in environ:
>
> os.environ['PYTHON_EGG_CACHE'] = environ['PYTHON_EGG_CACHE']
> elif 'trac.env_path' in environ:
> os.environ['PYTHON_EGG_CACHE'] =
> os.path.join(environ['trac.env_path'],
> '.egg-cache')
> elif 'trac.env_path_parent_dir' in environ:
> os.environ['PYTHON_EGG_CACHE'] =
> os.path.join(environ['trac.env_path_parent_dir'],
> '.egg-cache')
> from trac.web.main import dispatch_request
> return dispatch_request(environ, start_request)
> ----
>

...and my .wsgi looks like this (you will need to tweak
TRAC_ENV_PARENT_DIR if you only host one environment):

import sys
sys.stdout = sys.stderr

import os
os.environ['TRAC_ENV_PARENT_DIR'] = 'd:/TRAC/sites'
os.environ['PYTHON_EGG_CACHE'] = 'd:/TRAC/eggs'

# Main application interface...
# from http://trac.edgewall.org/wiki/TracModWSGI#Tracandmod_wsgi
#
import trac.web.main
application = trac.web.main.dispatch_request

...hope this helps!

~ Mark C

--~--~---------~--~----~------------~-------~--~----~
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.