= bug description =
When I try to use the package database, it often does not work, but sometimes it does: {{{ from fedora.client.pkgdb import PackageDB pdb = PackageDB() In [29]: pdb.user_packages("till", acls="owner")["pkgs"]
ServerError Traceback (most recent call last)
/home/till/<ipython console> in <module>()
/usr/lib/python2.7/site-packages/fedora/client/pkgdb.pyc in user_packages(self, username, acls, eol) 434 params['acls'] = acls 435 return self.send_request('/users/packages/%s' % username, --> 436 req_params=params) 437 438 def orphan_packages(self):
/usr/lib/python2.7/site-packages/fedora/client/baseclient.pyc in send_request(self, method, req_params, file_params, auth, retries, **kwargs) 342 session_id, data = super(BaseClient, self).send_request(method, 343 req_params=req_params, file_params=file_params, --> 344 auth_params=auth_params, retries=retries) 345 # In case the server returned a new session id to us
346 if self.session_id != session_id:
/usr/lib/python2.7/site-packages/fedora/client/proxyclient.pyc in send_request(self, method, req_params, auth_params, file_params, retries) 409 except (KeyError, AttributeError): 410 msg = b_('Unknown HTTP Server Response') --> 411 raise ServerError(url, http_status, msg) 412 # Successfully returned data
413 break
ServerError: ServerError(https://admin.fedoraproject.org/pkgdb/users/packages/till, 500, Internal Server Error) }}}
= bug analysis =
Maybe there are several backends for the package database and some do not work properly.
= fix recommendation =
Fix the broken component.
Note that the problem occurs wether we use the user_packages() function or directly: {{{ from fedora.client.pkgdb import PackageDB pdb = PackageDB() pdb.send_request('/users/packages/till', req_params={'tg_paginate_limit': 0, 'eol':False, 'acls':'owner'}) }}}
So, this is sporadic? Or always fails?
I can't get the web interface or a manual curl/wget to fail...
sporadic.
I would say it works around ~1/4 times for me when I tried the above code.
Thanks -- we traced this down to an incompatibility between TG-1.0.x and TG-1.1.x. I've updated python-fedora nad I'm pushing new packages now.
https://admin.fedoraproject.org/updates/python-fedora-0.3.27-1.fc17
And similar for other releases
Replying to [comment:7 toshio]:
https://admin.fedoraproject.org/updates/python-fedora-0.3.27-1.fc17 And similar for other releases
I noticed the bug on Fedora 15 but do not see a python-fedora update for it.
Thanks, update submitted.
Sorry I've been (last day today) at a conference and haven't had as much time to fix things.
Log in to comment on this ticket.