Edgewall Software

Ticket #3334 (closed defect: invalid)

Opened 2 years ago

Last modified 2 years ago

Unable to install new Tracs after Bitten install

Reported by: russell.quinn@… Owned by: cmlenz
Priority: high Milestone:
Component: web frontend/mod_python Version: 0.9.5
Severity: major Keywords:
Cc:

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

Change History

Changed 2 years ago by russell.quinn@…

Additional: All existing Tracs are still functioning fine.

Changed 2 years ago by cboos

Can you look for a backtrace in the log?

Changed 2 years ago by russell.quinn@…

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

Changed 2 years ago by cboos

He, are you sure you downloaded the egg... or simply saved the download HTML page?

Changed 2 years ago by russell.quinn@…

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?

Changed 2 years ago by cboos

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.

Changed 2 years ago by russell.quinn@…

  • status changed from new to closed
  • resolution set to invalid

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.

Add/Change #3334 (Unable to install new Tracs after Bitten install)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cmlenz. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.