desktopcouch-service doesn't like UbuntuOne-API error pages

Bug #711208 reported by Natalia Bidart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Servers
Invalid
Undecided
Unassigned
desktopcouch
Fix Released
High
Chad Miller

Bug Description

I'm getting this failure running lp:~cmiller/desktopcouch/service-must-not-call-self-over-dbus in a maverick with nightlies:

ERROR:replication:replication of services aborted
Traceback (most recent call last):
  File "/home/nessita/canonical/desktopcouch/review_service-must-not-call-self-over-dbus/desktopcouch/application/replication.py", line 155, in do_all_replication
    remote_location = str(prefix_getter)
  File "/home/nessita/canonical/desktopcouch/review_service-must-not-call-self-over-dbus/desktopcouch/application/replication_services/ubuntuone.py", line 114, in __str__
    resp, content = client.request(url, "GET", headers=self.oauth_header)
  File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 1129, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 901, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 884, in _conn_request
    content = response.read()
  File "/usr/lib/python2.6/httplib.py", line 529, in read
    s = self._safe_read(self.length)
  File "/usr/lib/python2.6/httplib.py", line 621, in _safe_read
    raise IncompleteRead(''.join(s), amt)
IncompleteRead: IncompleteRead(2356 bytes read, 6 more expected)
replication 2011-02-01 09:16:14,619 - replication of services aborted
Traceback (most recent call last):
  File "/home/nessita/canonical/desktopcouch/review_service-must-not-call-self-over-dbus/desktopcouch/application/replication.py", line 155, in do_all_replication
    remote_location = str(prefix_getter)
  File "/home/nessita/canonical/desktopcouch/review_service-must-not-call-self-over-dbus/desktopcouch/application/replication_services/ubuntuone.py", line 114, in __str__
    resp, content = client.request(url, "GET", headers=self.oauth_header)
  File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 1129, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 901, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.6/dist-packages/httplib2/__init__.py", line 884, in _conn_request
    content = response.read()
  File "/usr/lib/python2.6/httplib.py", line 529, in read
    s = self._safe_read(self.length)
  File "/usr/lib/python2.6/httplib.py", line 621, in _safe_read
    raise IncompleteRead(''.join(s), amt)
IncompleteRead: IncompleteRead(2356 bytes read, 6 more expected)
DEBUG:replication:finished replicating
DEBUG:root:starting replicator main loop

Related branches

Changed in desktopcouch:
importance: Undecided → High
assignee: nobody → Chad Miller (cmiller)
Revision history for this message
Chad Miller (cmiller) wrote :
  • x Edit (1.1 KiB, text/plain)

Appears to be related to the server being unavailable:

'<!DOCTYPE HTML>\n\n\n\n<html lang="en" id="ubuntuone">\n\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n<meta name="viewport" content="width=960, initial-scale=0.55, minimum-scale=0.65">\n<title>Ubuntu One</title>\n<link rel="stylesheet" href="https://media.one.ubuntu.com/media/1917/css/reset.css" type="text/css" media="all">\n<link rel="stylesheet" href="https://media.one.ubuntu.com/media/1917/css/screen.css" type="text/css" media="all">\n<link rel="icon" href="https://media.one.ubuntu.com/media/1917/img/fav.ico" type="image/x-icon">\n</head>\n<body class="yui-skin-sam">\n<div class="wrap">\n<div id="header">\n<h1 class="logo"><a href="/">Ubuntu One</a></h1>\n</div><!-- close #header -->\n</div><!-- close .wrap -->\n<div class="content_wrap">\n<div class="wrap">\n<div id="content">\n<h1>Temporary maintenance</h1>\n<div class="righty" style="margin-top: 0px; border: 0;">\n</div>\n<div class="lefty" style="padding-bottom: 30px;">\n<p>Ubuntu One is currently down for maintenance and will be back soon. All of your data is safe and we\'re working to restore service quickly.</p>\n\n<p>For information about upcoming maintenance windows subscribe to our <a href="http://launchpad.net/~ubuntuone-users">mailing list</a>, check our <a href="http://one.ubuntu.com/blog">blog</a> or follow Ubuntu One on <a href="http://twitter.com/ubuntuone">twitter</a> and <a href="http://identi.ca/ubuntuone">identi.ca</a> to get updates.</p>\n<br class="clear">\n</div><!-- close .lefty -->\n<br class="clear">\n</div><!-- close #content -->\n</div><!-- close .wrap -->\n</div><!-- close .content_wrap -->\n</div>\n<div class="wrap">\n<div id="footer">\n<div class="copyright">\n<p>&copy; 2008 - 2010 Canonical Group Ltd.</p>\n<p><a href="http://ubuntu.com">Ubuntu</a> and <a href="http://canonical.com">Canonical</a> are registered trademarks of Canonical Group Ltd.</p>\n</div><!-- close #footer -->\n</div><!-- close .wrap -->\n</div>\n<!-- Analytics tracking script -->\n<script type="text/javascript">\nvar gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\ndocument.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));\n</script>\n<script type="text/javascript">\nvar pageTracker = _gat._getTracker("UA-6230559-1");\npageTracker._trackPageview();\n</script>\n\n</body>\n</html>\n'

Revision history for this message
Chad Miller (cmiller) wrote :

The Ubuntu One web server returns HTTP 200 with error pages, instead of HTTP 503.

summary: - desktopcouch-service is failing with IncompleteRead(2356 bytes read, 6
- more expected)
+ desktopcouch-service doesn't like UbuntuOne-API error pages
Changed in desktopcouch:
status: New → In Progress
Revision history for this message
Chad Miller (cmiller) wrote :

This is strictly a sysadmin-fixable problem. Filed rt #43767.

Changed in ubuntuone-servers:
status: New → Invalid
Changed in desktopcouch:
status: In Progress → Fix Committed
Chad Miller (cmiller)
Changed in desktopcouch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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