server errors accessing attachments of private bug reports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Unassigned |
Bug Description
The librarian is erroring intermittently and is receiving socket errors in its backend.
-ops are restarting it when this happens, which appears to fix the symptoms.
I regularly receive errors when trying to access the attachments of bug reports (all private afaict) using the API.
Here is some sample code:
for attachment in bug.attachments:
f = attachment.
print(
I'll receive errors like:
ServerError Traceback (most recent call last)
/home/theman/
1 for attachment in bug.attachments:
----> 2 f = attachment.
3 print(f.filename)
...
status: 500
transfer-encoding: chunked
vary: Accept-Encoding
via: 1.0 banana.
x-cache: MISS from banana.
x-cache-lookup: MISS from banana.
---
Response body:
---
<html><
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Critical |
tags: | added: oops |
tags: | added: oem-services |
description: | updated |
tags: | added: canonical-webops-lp |
Changed in launchpad: | |
status: | Triaged → Fix Released |
2012-05-18 02:41:44+0000 [-] Unhandled error in Deferred: python2. 6/threading. py", line 504, in __bootstrap
self. __bootstrap_ inner() python2. 6/threading. py", line 532, in __bootstrap_inner
self. run() python2. 6/threading. py", line 484, in run
self. __target( *self._ _args, **self.__kwargs) librarian. net/production/ launchpad2- rev-15135/ eggs/Twisted- 11.1.0- py2.6-linux- x86_64. egg/twisted/ python/ threadpool. py", line 207, in _worker librarian. net/production/ launchpad2- rev-15135/ eggs/Twisted- 11.1.0- py2.6-linux- x86_64. egg/twisted/ python/ context. py", line 118, in callWithContext text(). callWithContext (ctx, func, *args, **kw) librarian. net/production/ launchpad2- rev-15135/ eggs/Twisted- 11.1.0- py2.6-linux- x86_64. egg/twisted/ python/ context. py", line 81, in callWithContext librarian. net/production/ launchpad2- rev-15135/ lib/lp/ services/ database/ __init_ _.py", line 37, in retry_transacti on_decorator librarian. net/production/ launchpad2- rev-15135/ lib/lp/ services/ database/ sqlbase. py", line 555, in reset_store_ decorator librarian. net/production/ launchpad2- rev-15135/ lib/lp/ services/ database/ __init_ _.py", line 73, in write_transacti on_decorator librarian. net/production/ launchpad2- rev-15135/ lib/lp/ services/ librarianserver /web.py" , line 129, in _getFileAlias getFileAlias( aliasID, token, path) librarian. net/production/ launchpad2- rev-15135/ lib/lp/ services/ librarianserver /storage. py", line 82, in getFileAlias getAlias( aliasid, token, path) librarian. net/production/ launchpad2- rev-15135/ lib/lp/ services/ librarianserver /db.py" , line 60, in getAlias
TimeLimite dToken. path==path) .is_empty( ) librarian. net/production/ launchpad2- rev-15135/ eggs/storm- 0.19.0. 99_lpwithnodate time_r406- py2.6-linux- x86_64. egg/storm/ store.py" , line 1077, in is_empty _connection. execute( select) librarian. net/production/ launchpad2- rev-15135/ eggs/storm- 0.19.0. 99_lpwithnodate time_r406- py2.6-linux- x86_64. egg/storm/ databases/ postgres. py", line 266, in execute execute( self, statement, params, noresult) librarian. net/production/ launchpad2- rev-15135/ eggs/storm- 0.19.0. 99_lpwithnodate time_r406- py2.6-linux- x86_64. egg/storm/ database. py", line 238, in execute
raw_ cursor = self.raw_ execute( statement, params)
2012-05-18 02:41:44+0000 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
--- <exception caught here> ---
File "/srv/launchpad
result = context.call(ctx, function, *args, **kwargs)
File "/srv/launchpad
return self.currentCon
File "/srv/launchpad
return func(*args,**kw)
File "/srv/launchpad
return func(*args, **kwargs)
File "/srv/launchpad
return func(*args, **kwargs)
File "/srv/launchpad
ret = func(*args, **kwargs)
File "/srv/launchpad
alias = self.storage.
File "/srv/launchpad
return self.library.
File "/srv/launchpad
File "/srv/launchpad
result = self._store.
File "/srv/launchpad
return Connection.
File "/srv/launchpad
File "/srv/laun...