Trac Installation mit mod_python

Probleme bei der Installation?
Antworten
kama
User
Beiträge: 2
Registriert: Samstag 8. April 2006, 17:51
Wohnort: Aachen
Kontaktdaten:

Hallo an alle,

ich versuche gerade Trac unter mod_python zu installieren. Als CGI läuft das ganze schon einwandfrei. Ich möchte es jetzt per mod_python installieren, damit es ein wenig schneller wird ;-).

Ok.
Umgebung: SuSE 9.1 / Apache 2.0.55 / Python 2.3.3 / mod_python 3.2.8

Der VHOST für den mod_python Test:

Code: Alles auswählen

<VirtualHost *:80>
    DocumentRoot    /usr/local/tracenv/antsvk
    ServerName tracmod.localhost
    ServerAlias tracmod.wanderer
    ServerAlias tracmod.gallien.de
    <Location />
        SetHandler mod_python
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /usr/local/tracenv/antsvk
        PythonOption TracUriRoot /usr/local/tracenv/antsvk
        PythonPath "sys.path + ['/usr/local/svn-1.2.3/lib/svn-python']"
    </Location>
    ErrorLog logs438/tracmod.error.log
    CustomLog logs438/tracmod.access.log Combined
</VirtualHost>
Wenn ich den jetzt aufrufe, bekomme ich einen "Internal Server error.".

Web-Server Log Auszug:

Code: Alles auswählen

[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 22, in ?\n    from trac.env import open_environment
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/env.py", line 21, in ?\n    from trac import db, db_default, util
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/trac/db.py", line 205, in ?\n    import pysqlite2.dbapi2 as sqlite
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "build/bdist.linux-i686/egg/pysqlite2/dbapi2.py", line 32, in ?
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "build/bdist.linux-i686/egg/pysqlite2/_sqlite.py", line 7, in ?
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "build/bdist.linux-i686/egg/pysqlite2/_sqlite.py", line 4, in __bootstrap__
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 676, in resource_filename\n    return get_provider(package_or_requirement).get_resource_filename(
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 1064, in get_resource_filename\n    self._extract_resource(manager, self._eager_to_zip(name))
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 1081, in _extract_resource\n    real_path = manager.get_cache_path(self.egg_name, self._parts(zip_path))
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 713, in get_cache_path\n    ensure_directory(target_path)
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 2137, in ensure_directory\n    os.makedirs(dirname)
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/os.py", line 153, in makedirs\n    makedirs(head, mode)
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/os.py", line 153, in makedirs\n    makedirs(head, mode)
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.3/os.py", line 154, in makedirs\n    mkdir(name, mode)
[Sat Apr 08 19:09:23 2006] [error] [client 192.168.1.200] PythonHandler trac.web.modpython_frontend: OSError: [Errno 13] Permission denied: '/root/.python-eggs'
Was ich vor allem nicht verstehe ist der "Permission denied" auf "/root/.."...
Ich habe schon versucht einiges zu lesen...aber irgendwie bin ich nicht zu einem Ergebnis gekommen.
Auf meinem Internetserver läuft das Ganze einwandfrei

SuSE 9.3:
Apache/2.0.55 (Unix)
mod_ssl/2.0.55 OpenSSL/0.9.7e
DAV/2
mod_python/3.2.8
Python/2.4
SVN/1.2.3

Hat da vielleicht mal irgendwer mal einen Hinweis wo ich noch nachgucken kann oder lesen kann?

vielen Dank im Voraus.
MfG
Karl Heinz Marbaise
www.soebes.de
Leonidas
Python-Forum Veteran
Beiträge: 16025
Registriert: Freitag 20. Juni 2003, 16:30
Kontaktdaten:

Kann es sein, dass wenn setuptools nutzt in der easy_install.pth oder der setuptools.pth irgendwelche Pfade im /root-Ordner eingetragen sind (setuptools updaten wäre auch eine Idee, nur so nebenbei)? Achja, unter welchem User läuft dann dein trac?

Edit: SoEBeS hat scheinbar eine ähnliche Idee wie ich ;)
My god, it's full of CARs! | Leonidasvoice vs (former) Modvoice
kama
User
Beiträge: 2
Registriert: Samstag 8. April 2006, 17:51
Wohnort: Aachen
Kontaktdaten:

Hallo,
Leonidas hat geschrieben:Kann es sein, dass wenn setuptools nutzt in der easy_install.pth oder der setuptools.pth irgendwelche Pfade im /root-Ordner eingetragen sind (setuptools updaten wäre auch eine Idee, nur so nebenbei)? Achja, unter welchem User läuft dann dein trac?
Hat jetzt ein wenig gedauert. Aber ich mal Python vollständig neu gemacht. Na ja und dann wars noch genauso...
Somit die Pakete (setuptools etc.) neu gemacht und jetzt habe ich den Schuldigen entdeckt. Es ware wie Du vermutet hast das setuptools.pth...pysqlite war noch in einer alten Version installiert.

Na ja und jetzt läuft es einwandfrei..

Vielen Dank für die Hilfe.
Leonidas hat geschrieben: Edit: SoEBeS hat scheinbar eine ähnliche Idee wie ich ;)
Wenn ich genug interessenten finde, überlege ich mir sogar einen vollständig eigenen Server dafür auf zu setzen...

Subversion 1.3.X
Trac 0.9.4 (vielleicht sogar schon 0.9.5, wenn die bis dahin fertig ist)
Zusätzlich noch den Subversion Browser von Polarion...
Edit: Über Teamtrac denke ich auch noch nach...

mal schauen..
MfG
Karl Heinz
www.soebes.de
Antworten