Opened 17 years ago

Last modified 17 years ago

#1006 closed defect

Plugin causes Trac to crash after installation — at Version 10

Reported by: anonymous Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: major Keywords: timingandestimationplugin-0.3.4-py2.4.egg timingandestimationplugin-0.1.5-py2.4.egg
Cc: carlos@… Trac Release: 0.10

Description (last modified by Noah Kantrowitz)

I had to disable the first component so I could get to the WebAdmin page. Then when I got to "Manage" tab, the following traceback is shown:

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 238, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/timingandestimationplugin/webui.py", line 122, in process_request
  File "build/bdist.linux-i686/egg/timingandestimationplugin/webui.py", line 89, in set_request_billing_dates
  File "build/bdist.linux-i686/egg/timingandestimationplugin/dbhelper.py", line 102, in get_result_set
  File "build/bdist.linux-i686/egg/timingandestimationplugin/dbhelper.py", line 15, in get_all
AttributeError: 'NoneType' object has no attribute 'error'

Change History (10)

comment:1 Changed 17 years ago by anonymous

Keywords: timingandestimationplugin-0.1.5-py2.4.egg added

"The first component" I was referring to was timingandestimationplugin.api. All of the above was with trunk.

I have now tried with tags/trunk_2006_9_19 and it got worse: I couldn't even see the wiki. Disabling the api component allows me to use Trac but I get the following traceback when I click on Billing and Estimation:


Python Traceback

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 238, in dispatch

resp = chosen_handler.process_request(req)

File "build/bdist.linux-i686/egg/timingandestimationplugin/webui.py", line 166, in process_request File "build/bdist.linux-i686/egg/timingandestimationplugin/webui.py", line 33, in get_copy_report_hash_for_render

IndexError: list index out of range

comment:2 Changed 17 years ago by Russ Tyndall

You should be running the head version of this plugin, unless you are running trac .9 (I believe that tag was made a little bit ago).

This error is happening because the database logger is not set (it gets set when TimeTrackingSetupParticipant is created).

If you are having problems getting the plugin installed and trac running with all components enabled, please send me that error.

Thank you

Russ

comment:3 Changed 17 years ago by Russ Tyndall

what version of trac are you trying to get this running on?

comment:4 Changed 17 years ago by Russ Tyndall

also the error I was refering to by "this error" was the original one you reported, not the one from the tag

comment:5 Changed 17 years ago by anonymous

Cc: carlos@… added; anonymous removed
Severity: normalblocker

comment:6 Changed 17 years ago by Russ Tyndall

Severity: blockermajor

Just making sure you saw my comments I made above now that you are being cc'd

Thanks,

Russ

comment:7 Changed 17 years ago by anonymous

I am running Trac 0.10.2.

I don't get a traceback when all components are enabled, only a 500 Internal Server Error from Apache. I grepped the logs but couldn't find anything related (at least where I searched).

comment:8 Changed 17 years ago by Russ Tyndall

Try turning on the trac log and see if you get anything from that. In the tracdir/conf/trac.ini

[logging]
log_file = /path/to/log/trac.log
log_type = file

I am running a similar version here and not having problems, so it is going to be hard for me to figure out what is happening without some error messages from somewhere.

Also what database backend are you using?

Thanks Russ

comment:9 Changed 17 years ago by Russ Tyndall

Did you successfully run the trac-admin upgrade on the trac instance?

Russ

comment:10 Changed 17 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing formatting

Note: See TracTickets for help on using tickets.