陈鲍孜 wrote:
Hello,
After fighting with my carelessness, I finished configuring koji and made it
run. Thanks a lot.
Now, here comes another problem. When I click the "login link" on the
kojiweb, it returns an error such as below:
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299,
in HandlerDispatch
result = object(req)
File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line
213, in handler
published = publish_object(req, object)
File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line
412, in publish_object
return publish_object(req,util.apply_fs_data(object, req.form, req=req))
File "/usr/lib64/python2.4/site-packages/mod_python/util.py", line 439, in
apply_fs_data
return object(**args)
File "/usr/share/koji-web/scripts/index.py", line 155, in login
_redirectBack(req, dest, forceSSL=True)
File "/usr/share/koji-web/scripts/index.py", line 134, in _redirectBack
page = _getBaseURL(req) + '/' + page
File "/usr/share/koji-web/scripts/index.py", line 117, in _getBaseURL
return req.construct_url(base)
AttributeError: 'mp_request' object has no attribute 'construct_url'
I searched google. There are some results, but still not clear for me. Is it
a bug or something due to some wrong configuration? I was run koji on CentOS
with EPEL packages.
What version of Koji are you using? That error has been fixed in Koji
git for a while, and is available in the latest release, Koji 1.3.1.
You'll need to run it on CentOS 5.