#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 )
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 18 years ago by
Keywords: | timingandestimationplugin-0.1.5-py2.4.egg added |
---|
comment:2 Changed 18 years ago by
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:4 Changed 18 years ago by
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 18 years ago by
Cc: | carlos@… added; anonymous removed |
---|---|
Severity: | normal → blocker |
comment:6 Changed 18 years ago by
Severity: | blocker → major |
---|
Just making sure you saw my comments I made above now that you are being cc'd
Thanks,
Russ
comment:7 Changed 18 years ago by
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 18 years ago by
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 18 years ago by
Did you successfully run the trac-admin upgrade on the trac instance?
Russ
comment:11 Changed 18 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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 18 years ago by
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
"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):
IndexError: list index out of range