launchpad outages hang the importer and scripts calling into launchpadlib

Bug #1745211 reported by Nish Aravamudan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
git-ubuntu
Fix Released
High
Bryce Harrington

Bug Description

Should we use some timeout parameter, if there is one?

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

If libcurl is used at some point, it has a parameter to kill the connection if it the transfer speed is below a certain threshold.

We use these in landscape-client, fwiw:

https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html
https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_LIMIT.html

Robie Basak (racb)
Changed in usd-importer:
milestone: none → lp-beta
Revision history for this message
Bryce Harrington (bryce) wrote :

I suspect this is probably adequately addressed now by commit 5d104bce612db56f3274c667ee7b008da5e68c18 (LP: #1838954), which adds a watchdog that will kill and restart the process if it gets hung. There's some delay in the restart for giving LP a chance to restore itself.

However, we've not yet experienced a launchpad outage so I'm not 100% certain about the behavior, so am leaving the bug open for now.

Changed in usd-importer:
status: New → In Progress
assignee: nobody → Bryce Harrington (bryce)
Revision history for this message
Bryce Harrington (bryce) wrote :
Download full text (7.0 KiB)

Bingo. We experienced a brief LP outage over the weekend, which the new watchdog detected and correctly resolved by restarting the service. So the new code is successfully handling the error condition now.

Nov 04 00:57:44 git-ubuntu git-ubuntu.import-source-packages[2219]: gpgv: using RSA key 3B4FE6ACC0B21F32
Nov 04 00:57:44 git-ubuntu git-ubuntu.import-source-packages[2219]: gpgv: Signature made Mon 04 Nov 2019 12:04:50 AM UTC
Nov 04 00:57:41 git-ubuntu systemd[1577]: Started Git Ubuntu USD Importer service.
Nov 04 00:57:40 git-ubuntu systemd[1577]: Starting Git Ubuntu USD Importer service...
Nov 04 00:57:40 git-ubuntu systemd[1577]: Stopped Git Ubuntu USD Importer service.
Nov 04 00:57:40 git-ubuntu systemd[1577]: usd-importer.service: Service hold-off time over, scheduling restart.
Nov 04 00:56:40 git-ubuntu systemd[1577]: usd-importer.service: Failed with result 'exit-code'.
Nov 04 00:56:40 git-ubuntu systemd[1577]: usd-importer.service: Triggering OnFailure= dependencies.
Nov 04 00:56:40 git-ubuntu systemd[1577]: usd-importer.service: Unit entered failed state.
Nov 04 00:56:40 git-ubuntu systemd[1577]: usd-importer.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: ---
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: div>\n \n \n\n </div>\n\n <div class="colophon">\n &copy; 2004-2019\n <a href="http://canonical.com/">Canonical&nbsp;Ltd.</a>\n &nbsp;&bull;&nbsp;\n <a href="https://launchpad.net
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: n \n \n <li class="answers"><a href="https://answers.launchpad.net/debian">Answers</a></li>\n \n \n </ul>\n\n </div>\n\n \n <div id="maincontent" class="yui-main">\n
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: type=\' + node.type + \'>): \' + e);\n });\n }\n break;\n }\n }\n }\n\n function selectWidget(widget_name, even
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: pe="text/javascript">\n //<![CDATA[\n LPJS.use(\'base\', \'node\', \'console\', \'event\',\n \'oop\', \'lp\', \'lp.app.foldables\',\'lp.app.sorttable\',\n \'lp.app.inlinehelp\',
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: b'<!DOCTYPE html>\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">\n <head>\n <meta charset="UTF-8" />\n <title>Error: Timeout</title>\n <link rel="shortcut icon" href="/@@/
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: ---
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: Response body:
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: ---
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: x-powered-by: Zope (www.zope.org), Python (www.python.org)
Nov 04 00:56:40 git-ubuntu git-ubuntu.import-source-packages[30185]: x-lazr-oopsid: OOPS-b583e6dcc7a31f6f66fbdadc8...

Read more...

Changed in usd-importer:
importance: Undecided → High
status: In Progress → Fix Released
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.