#11064 closed defect (cantfix)
trac.web.modpython_frontend Application error
Reported by: | David H. | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | web frontend/mod_python | Version: | 1.0.1 |
Severity: | blocker | Keywords: | trac.web.modpython_frontend Application error |
Cc: | ryan.j.ollos@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
After updateing my trac from 0.11.7 to 1.0.1 and genshi to 0.6 trac comes up no more. I receive a "500 Internal Server Error". For security reason I had to blank out server names. As I cannot find anything to be incorrect I think it's a bug in in the combination of versions and "trac.web.modpython_frontend".
I did:
:~# apache2 -v Server version: Apache/2.2.14 (Ubuntu) Server built: Nov 6 2012 20:40:54 :~#python --version Python 2.6.5 :~#easy_install Trac==1.0.1 :~#easy_install Genshi
The "500 Internal Server Error":
:~#tail -f /var/log/apache2/ssl_error.log [Fri Feb 15 08:24:57 2013] [error] mod_python (pid=24880, interpreter='***', phase='PythonHandler', handler='trac.web.modpython_frontend'): Application error [Fri Feb 15 08:24:57 2013] [error] ServerName: '***' [Fri Feb 15 08:24:57 2013] [error] DocumentRoot: '/var/www' [Fri Feb 15 08:24:57 2013] [error] URI: '/trac/os/' [Fri Feb 15 08:24:57 2013] [error] Location: '/trac/os' [Fri Feb 15 08:24:57 2013] [error] Directory: None [Fri Feb 15 08:24:57 2013] [error] Filename: '/var/home/database/trac/os/wiki/' [Fri Feb 15 08:24:57 2013] [error] PathInfo: '' [Fri Feb 15 08:24:57 2013] [error] Traceback (most recent call last): [Fri Feb 15 08:24:57 2013] [error] File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent) [Fri Feb 15 08:24:57 2013] [error] File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg) [Fri Feb 15 08:24:57 2013] [error] File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in _execute_target\n result = object(arg) [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/web/modpython_frontend.py", line 148, in handler\n gateway.run(dispatch_request) [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/web/wsgi.py", line 91, in run\n response = application(self.environ, self._start_response) [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/web/main.py", line 438, in dispatch_request\n env = open_environment(env_path, use_cache=not run_once) [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/env.py", line 842, in open_environment\n env = env_cache.setdefault(env_path, open_environment(env_path)) [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/env.py", line 846, in open_environment\n env = Environment(env_path) [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/core.py", line 124, in __call__\n self.__init__(*args, **kwargs) [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/env.py", line 284, in __init__\n self.setup_config() [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/env.py", line 611, in setup_config\n load_components(self, plugins_dir and (plugins_dir,)) [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/loader.py", line 114, in load_components\n loadfunc(env, search_path, auto_enable=plugins_dir) [Fri Feb 15 08:24:57 2013] [error] File "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/loader.py", line 90, in _load_py_files\n module = imp.load_source(plugin_name, plugin_file) [Fri Feb 15 08:24:57 2013] [error] File "/var/home/database/trac/os/wiki/plugins/setup.py", line 29, in <module>\n install_requires = [ 'Trac >= 0.11' ] [Fri Feb 15 08:24:57 2013] [error] File "/usr/lib/python2.6/distutils/core.py", line 140, in setup\n raise SystemExit, gen_usage(dist.script_name) + "\\nerror: %s" % msg [Fri Feb 15 08:24:57 2013] [error] SystemExit: usage: mod_python [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]\n or: mod_python --help [cmd1 cmd2 ...]\n or: mod_python --help-commands\n or: mod_python cmd --help\n\nerror: no commands supplied
So I checked Genshi integration and that alls paths are correct:
Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import genshi >>> import sys >>> sys.path ['', '/usr/local/lib/python2.6/dist-packages/TracWysiwyg-0.11.0.4-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/TracWikiToPdfPlugin-2.3.1dev-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages'] >>>
Then I checked that all *.eggs are available:
:~# ls -la /usr/local/lib/python2.6/dist-packages/ total 472 drwxrwsr-x 9 root staff 4096 2013-02-13 14:47 . drwxrwsr-x 4 root staff 4096 2012-11-08 13:56 .. -rw-r--r-- 1 root staff 305 2013-02-13 10:07 easy-install.pth drwxr-sr-x 4 root staff 4096 2013-02-13 10:07 Genshi-0.6-py2.6.egg drwxr-sr-x 2 root staff 4096 2011-09-14 16:03 pywbem -rw-r--r-- 1 root staff 299 2011-09-14 16:03 pywbem-0.7.0.egg-info -rw-r--r-- 1 root staff 33 2012-06-18 13:04 setuptools.pth drwxr-sr-x 5 root staff 4096 2013-02-13 10:07 Trac-1.0.1-py2.6.egg drwxr-sr-x 4 root staff 4096 2012-06-18 13:04 TracWikiToPdfPlugin-2.3.1dev-py2.6.egg drwxr-sr-x 4 root staff 4096 2011-08-25 17:43 TracWysiwyg-0.11.0.3-py2.6.egg drwxr-sr-x 4 root staff 4096 2012-06-19 12:00 TracWysiwyg-0.11.0.4-py2.6.egg
I tried to reinstall all the packages:
:~# easy_install Trac Searching for Trac Best match: Trac 1.0.1 Processing Trac-1.0.1-py2.6.egg Trac 1.0.1 is already the active version in easy-install.pth Installing trac-admin script to /usr/local/bin Installing tracd script to /usr/local/bin Using /usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg Processing dependencies for Trac Finished processing dependencies for Trac :~#easy_install Genshi Searching for Genshi Best match: Genshi 0.6 Processing Genshi-0.6-py2.6.egg Genshi 0.6 is already the active version in easy-install.pth Using /usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg Processing dependencies for Genshi Finished processing dependencies for Genshi
Attachments (0)
Change History (7)
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
Cc: | added |
---|
comment:3 by , 12 years ago
Resolution: | → cantfix |
---|---|
Status: | new → closed |
This looks like a version mixup. Please make sure you have removed all traces of the 0.11.x install.
Also, this is an InstallationIssue. You will get more help on the MailingList and IrcChannel.
comment:4 by , 12 years ago
try without that plugin (TracWysiwyg? it seems), see if it then works
Thanks! I didn't had an eye on this. Awfully it did not help. The error remains the same.
After torturing g00gle for hours it seems to be easyer setting up a stable 0.11.7 on a new system then try to find the reason for this error. But nevertheless trac is great. Thanks
comment:5 by , 12 years ago
Maybe it's a chance to go one step back. So how can I safely remove the installation of trac 1.0.1?
comment:6 by , 12 years ago
This is no version mixup as I found out. If I try to resync my env I got:
Failed to open environment. [Errno 2] No such file or directory: '/var/home/database/trac/os/VERSION'
Correct path should be the following. This path is wrong after updating trac from 0.11.7 to 1.0.1. Before I updated the path was:
/var/home/database/trac/os/wiki/VERSION
This is the only thing wrong. So I try to fixed that somehow. Any help is appreciated.
comment:7 by , 12 years ago
Got it working now. Here are the few steps from all the ones I've testet that worked: 00 making a backup of your env 01 remove/deinstall/purge everything concerning trac 1.0.1 an 0.11.7 using easy_install -m apt-get remove purge etc. 02 apt-get install sqlite3 03 easy_install trac=1.0.1 04 creating a completely new environment with the "initenv" command using a different folder 05 copying all the folders and files from beneath …/wiki/ to the new environment ../wiki/ starting with 06 giving correct permissions to the /path/to/your/env
From that line: