Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1006 closed defect (invalid)

Plugin causes Trac to crash after installation

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'

Attachments (0)

Change History (12)

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

comment:11 Changed 17 years ago by anonymous

Resolution: invalid
Status: newclosed

Hey, no one told me I had to do this. The log:

2006-12-16 18:18:48,147 Trac[env] WARNING: Component <timingandestimationplugin.api.TimeTrackingSetupParticipant object at 0xb7ad7dcc> requires environment upgrade

I guess this is adding column(s) on a table at the database? I'll be doing this now and will report the results. Will also update the Installation instructions on the page if everything goes well too - it might be obvious for experienced users, but it certainly isn't for newbies.

All right, after an apache reload, everything works as expected.

comment:12 Changed 17 years ago by Russ Tyndall

Awsome, I am glad that worked for you.

Sorry for the trac upgrade being non obvious. You are correct that it needs to modify the database.

Thanks for updating the wiki, Russ

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.