Patchmetric Login Token Expired

Bug #1010455 reported by Milo Casagrande
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro patch metrics
Fix Released
High
Milo Casagrande

Bug Description

This is the traceback we have from patches.l.o:

Traceback (most recent call last):
 File "/srv/patches.linaro.org/apps/patchmetrics/bin/get-linaro-membership.py",
line 46, in <module>
   linaro = lp.people['linaro']
 File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py",
line 912, in __getitem__
   unicode(self._root._browser.get(url)))
 File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py",
line 316, in get
   response, content = self._request(url, extra_headers=headers)
 File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py",
line 306, in _request
   raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 401: Unauthorized
Response headers:
---
content-length: 37
content-type: text/plain
date: Thu, 17 May 2012 03:03:02 GMT
server: zope.server.http (HTTP)
status: 401
vary: Accept-Encoding
via: 1.1 api.launchpad.net
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
Expired token (hm7kZRmcQRqmjvB3XZPP).

Revision history for this message
Milo Casagrande (milo) wrote :

It might be linked also to bug 949964, or at least might be worth to fix that too to maybe avoid again errors like this.

Changed in linaro-patchmetrics:
importance: Undecided → High
Revision history for this message
Milo Casagrande (milo) wrote :

Just adding here some comments, that might help understanding the problem.

Looking at other bug reports agains the lazr library, albeit used for OAuth application authorization, one workaround would be to remove the '~/.cache/$APP/launchpad.credentials' file. Do not know if this can be applied to our situation or how we can check that on server side.

Milo Casagrande (milo)
Changed in linaro-patchmetrics:
assignee: nobody → Milo Casagrande (milo)
Milo Casagrande (milo)
Changed in linaro-patchmetrics:
status: New → Confirmed
Revision history for this message
Milo Casagrande (milo) wrote :

Thanks to the help of Canonical IS people, the problem should now be fixed.
For future reference, in case it happens again, I'm writing a small report here:

https://wiki.linaro.org/Platform/Infrastructure/PathmetricsTokenExpiration

Changed in linaro-patchmetrics:
status: Confirmed → In Progress
Milo Casagrande (milo)
Changed in linaro-patchmetrics:
status: In Progress → Fix Released
Revision history for this message
Milo Casagrande (milo) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.