Opened 15 years ago
Closed 15 years ago
#5636 closed defect (fixed)
Hudson plugin, python 2.4 and trac-0.11.6stable doesn't start
Reported by: | Owned by: | roadrunner | |
---|---|---|---|
Priority: | normal | Component: | HudsonTracPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Hi,
After a clean install of Trac (served via mod_wsgi) and installation of the Hudson plugin, Trac no longer starts.
versions: OS: RHEL5.3 Trac: 0.11.6stable r8448 mod_wsgi: 2.1-2.el5 python: 2.4.3-24.el5_3.6 HudsonTracPlugin: r6343 (from local checkout of source)
The stack trace I get is:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/Trac-0.11.6stable_r0-py2.4.egg/trac/web/api.py", line 377, in send_error
'text/html')
File "/usr/lib/python2.4/site-packages/Trac-0.11.6stable_r0-py2.4.egg/trac/web/chrome.py", line 725, in render_template
req.chrome[type_].append(
File "/usr/lib/python2.4/site-packages/Trac-0.11.6stable_r0-py2.4.egg/trac/web/api.py", line 195, in getattr
value = self.callbacks[name](self)
File "/usr/lib/python2.4/site-packages/Trac-0.11.6stable_r0-py2.4.egg/trac/util/compat.py", line 135, in newfunc
return func_(*(args + fargs), dict(kwargs, fkwargs))
File "/usr/lib/python2.4/site-packages/Trac-0.11.6stable_r0-py2.4.egg/trac/web/chrome.py", line 488, in prepare_request
for contributor in self.navigation_contributors:
File "/usr/lib/python2.4/site-packages/Trac-0.11.6stable_r0-py2.4.egg/trac/core.py", line 70, in extensions
return filter(None, [component.compmgr[cls] for cls in extensions])
File "/usr/lib/python2.4/site-packages/Trac-0.11.6stable_r0-py2.4.egg/trac/core.py", line 207, in getitem
component = cls(self)
File "/usr/lib/python2.4/site-packages/Trac-0.11.6stable_r0-py2.4.egg/trac/core.py", line 111, in maybe_init
init(self)
File "build/bdist.linux-x86_64/egg/HudsonTrac/HudsonTracPlugin.py", line 51, in init
AttributeError: 'tuple' object has no attribute 'scheme'
hope you can help.
Thanks,
Brett
Attachments (2)
Change History (8)
comment:1 Changed 15 years ago by
comment:2 follow-up: 3 Changed 15 years ago by
Hi,
I haven't misconfigured the feed_url option (that I can see) my trac.ini is below. I have also attached the trac.log in DEBUG mode from startup.
[hudson] feed_url=http://buildsystem.iris2.local/rssAll username= password= display_subprojects=false main_page=http://buildsystem.iris2.local/ display_in_new_tab=true alternate_success_icon=true display_build_descriptions=true
comment:3 Changed 15 years ago by
Replying to brett.dellegrazie@intact-is.com:
I haven't misconfigured the feed_url option (that I can see) my trac.ini is below. I have also attached the trac.log in DEBUG mode from startup.
[hudson] feed_url=http://buildsystem.iris2.local/rssAll
Thanks. Hmm, something's odd - for some reason the feed-url isn't
being parsed properly. Can you add the following line to
HudsonTracPlugin.py, just after line 50 (i.e. after the url is parsed
but before base_url
gets set):
self.env.log.info("Using feed at '%s' (%s)" % (self.feed_url, url_parts))
and then show me the output in the log?
TIA.
comment:4 follow-up: 5 Changed 15 years ago by
Hi,
I have done as you requested, the new trac.log is attached. Thanks for your help with this.
comment:5 Changed 15 years ago by
Status: | new → assigned |
---|
Replying to brett.dellegrazie@intact-is.com:
I have done as you requested, the new trac.log is attached. Thanks for your help with this.
Thanks. Ok, looks like the issue is that you're using python 2.4 but the plugin is using something that was added in 2.5. Checking in a fix now.
comment:6 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
It looks like you may have misconfigured the
feed_url
option - make sure it is an absolute url, i.e. including a scheme, e.g. 'http://localhost/hudson/rssAll
' and not just '/hudson/rssAll
'.