Opened 19 years ago
Closed 19 years ago
#3334 closed defect (invalid)
Unable to install new Tracs after Bitten install
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | web frontend/mod_python | Version: | 0.9.5 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I have several Trac systems running and installed Bitten successfully. However I have recently tried to install another Trac and just receive a 500 server error when I try to browse to it.
Upon looking at the trac root webpage, it shows:
xxxx.db: Error (bad local file header in C:\Python23\lib\site-packages\bitten-0.6dev_r372-py2.3.egg)
Removing the egg from site-packages\ results in a message about the egg not being found. Note that I haven't tried adding Bitten into the components of the new Trac yet, it is just a default Trac install.
Attachments (0)
Change History (7)
comment:1 by , 19 years ago
comment:3 by , 19 years ago
This is the Apache error.log (I started up the Apache server, then browsed immediately to the non working Trac) :
[Wed Jun 28 11:20:21 2006] [notice] mod_python: Creating 32 session mutexes based on 0 max processes and 250 max threads. [Wed Jun 28 11:20:22 2006] [notice] Apache/2.0.58 (Win32) SVN/1.3.1 mod_python/3.1.3 Python/2.3.5 DAV/2 configured -- resuming normal operations [Wed Jun 28 11:20:22 2006] [notice] Server built: Apr 29 2006 17:47:10 [Wed Jun 28 11:20:22 2006] [notice] Parent: Created child process 5456 [Wed Jun 28 11:20:22 2006] [notice] mod_python: Creating 32 session mutexes based on 0 max processes and 250 max threads. [Wed Jun 28 11:20:22 2006] [notice] Child 5456: Child process is running [Wed Jun 28 11:20:22 2006] [notice] Child 5456: Acquired the start mutex. [Wed Jun 28 11:20:22 2006] [notice] Child 5456: Starting 250 worker threads. [Wed Jun 28 11:20:43 2006] [error] [client 192.168.1.100] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Wed Jun 28 11:20:43 2006] [error] [client 192.168.1.100] PythonHandler trac.web.modpython_frontend: File "C:\\Python23\\Lib\\site-packages\\mod_python\\apache.py", line 287, in HandlerDispatch\n log=debug) [Wed Jun 28 11:20:43 2006] [error] [client 192.168.1.100] PythonHandler trac.web.modpython_frontend: File "C:\\Python23\\Lib\\site-packages\\mod_python\\apache.py", line 457, in import_module\n module = imp.load_module(mname, f, p, d) [Wed Jun 28 11:20:43 2006] [error] [client 192.168.1.100] PythonHandler trac.web.modpython_frontend: File "C:\\Python23\\Lib\\site-packages\\trac\\web\\modpython_frontend.py", line 29, in ?\n from mod_python import apache, util [Wed Jun 28 11:20:43 2006] [error] [client 192.168.1.100] PythonHandler trac.web.modpython_frontend: File "C:\\Python23\\lib\\site-packages\\mod_python\\util.py", line 1 [Wed Jun 28 11:20:43 2006] [error] [client 192.168.1.100] PythonHandler trac.web.modpython_frontend: <!DOCTYPE html [Wed Jun 28 11:20:43 2006] [error] [client 192.168.1.100] PythonHandler trac.web.modpython_frontend: ^ [Wed Jun 28 11:20:43 2006] [error] [client 192.168.1.100] PythonHandler trac.web.modpython_frontend: SyntaxError: invalid syntax
comment:4 by , 19 years ago
He, are you sure you downloaded the egg… or simply saved the download HTML page?
comment:5 by , 19 years ago
yes, i built the Bitten egg myself and it was all working ok before.
But I don't think this problem is related to Bitten at all now. I restarted the webserver (to get a clean error.log for you above), but now every Trac I browse to results in the same server error. I've tried uninstalling and reinstalling Trac, but to no avail.
What could be happening? Are you saying that it shouldn't be expecting a HTML file at this point?
comment:6 by , 19 years ago
The error log shows that mod_python is trying
to load as a python file a file which actually looks like
an HTML file: from the log it could be the
C:
Python23
lib
site-packages
mod_python
util.py file.
Check what it contains.
comment:7 by , 19 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The problem was when I installed the updated util.py to enable file attachments to work in the Trac Wiki. Rolling back to the version installed with mod_python fixed all the problems described above.
Thanks for your help cboos.
Additional: All existing Tracs are still functioning fine.