[Summary]
qabro got stuck when uploading attachment for a while then crash
[Reproduce Steps]
u@u:~$ qabro -p somerville -t fossa-maester
Logging into Launchpad...
Using production service root
Checking project name...
Creating Launchpad bug report...
Bug report #1937001 created.
Setting status...
Setting importance...
Bug report #1937001 updated.
Uploading bug data...
Retrieving list of installed snaps...
Running acpidump...
Running sosreport...
Report generated: /home/u/snap/qabro/163/sosreport-u-2021-07-20-hxnlmdr.tar.gz
Uploading attachment checkbox-session.tgz...
Traceback (most recent call last):
File "/snap/qabro/163/lib/python3.6/site-packages/qabro/__init__.py", line 85, in start_ui
result = ba.file_bug()
File "/snap/qabro/163/lib/python3.6/site-packages/qabro/bug_assistant.py", line 174, in file_bug
aa.upload_attachments(launchpad, self.bug.id)
File "/snap/qabro/163/lib/python3.6/site-packages/qabro/bug_assistant.py", line 204, in upload_attachments
data=attachments[a])
File "/snap/qabro/163/lib/python3.6/site-packages/lazr/restfulclient/resource.py", line 607, in __call__
extra_headers=extra_headers)
File "/snap/qabro/163/lib/python3.6/site-packages/lazr/restfulclient/_browser.py", line 438, in _request
raise error
lazr.restfulclient.errors.ServerError: HTTP Error 502: Bad Gateway
Response headers:
---
-content-encoding: gzip
accept-ranges: bytes
content-length: 1739
content-type: text/html
date: Wed, 21 Jul 2021 02:59:24 GMT
etag: "6cb-gzip"
last-modified: Thu, 27 May 2021 18:31:06 GMT
server: Apache
status: 502
vary: Accept-Encoding
---
Response body:
---
b'<!DOCTYPE html>\n<html\n xmlns="http://www.w3.org/1999/xhtml"\n xml:lang="en"\n lang="en"\n>\n<head>\n <title>Launchpad is temporarily unavailable</title>\n <link\n type="text/css" rel="stylesheet" media="screen, print"\n href="https://launchpad.net/+icing/basic-error.css" />\n</head>\n<body>\n <div class="page-center-wrap">\n <div class="page-center">\n <div class="page-center-content">\n <div id="header">\n <div class="graphic">\n :(\n </div>\n <div class="content">\n <h1>Uh oh!</h1>\n <h2>Something has gone wrong. We\'re sorry!</h2>\n <p>\n If we are in the middle of an update, Launchpad will be\n back in a couple of minutes. Otherwise, we are working to\n fix the unexpected problems. Check\n <a href="https://twitter.com/launchpadstatus">@launchpadstatus</a>\n on Twitter for updates.\n </p>\n <p>\n If the problem persists, let us know in\n <a href="irc://irc.libera.chat/#launchpad"\n >the #launchpad IRC channel on libera.chat</a>.\n </p>\n <p class="sub">\n Technically, the load balancer took too long to connect to\n an application server.\n </p>\n <p><a href="javascript:window.location.reload()">Reload</a>\n this page or try again in a few minutes</p>\n </div>\n </div>\n <div id="footer">\n <a href="https://launchpad.net/">\n <img src="https://launchpad.net/@@/launchpad-logo-and-name-hierarchy.png"\n alt="Launchpad" />\n </a>\n </div>\n </div>\n </div>\n </div>\n</body>\n</html>\n'
---
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/qabro/163/bin/qabro", line 33, in <module>
sys.exit(load_entry_point('qabro==0.16.dev0', 'console_scripts', 'qabro')())
File "/snap/qabro/163/lib/python3.6/site-packages/qabro/__init__.py", line 69, in main
cid=args.cid)
File "/snap/qabro/163/lib/python3.6/site-packages/qabro/__init__.py", line 88, in start_ui
ui.show_error_dialog(message=str(exc))
File "/snap/qabro/163/lib/python3.6/site-packages/qabro/ui.py", line 133, in show_error_dialog
self.loop.run()
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/main_loop.py", line 286, in run
self._run()
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/main_loop.py", line 384, in _run
self.event_loop.run()
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/main_loop.py", line 788, in run
self._loop()
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/main_loop.py", line 816, in _loop
self._entering_idle()
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/main_loop.py", line 777, in _entering_idle
callback()
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/main_loop.py", line 572, in entering_idle
self.draw_screen()
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/main_loop.py", line 586, in draw_screen
canvas = self._topmost_widget.render(self.screen_size, focus=True)
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/widget.py", line 144, in cached_render
canv = fn(self, size, focus=focus)
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/container.py", line 790, in render
return CanvasOverlay(top_c, bottom_c, left, top)
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/canvas.py", line 1149, in CanvasOverlay
overlayed_canvas.overlay(top_c, left, top)
File "/snap/qabro/163/usr/lib/python3/dist-packages/urwid/canvas.py", line 745, in overlay
assert bottom >= 0, "top canvas of overlay not the size expected!" + repr((other.rows(),top,bottom,height))
AssertionError: top canvas of overlay not the size expected!(62, 7, -14, 62)
[Additional information]
SKU: MBL4-DVT2-C2
Image: canonical-oem-somerville-focal-amd64-20200502-85+fossa-maester+X136
system-manufacturer: Dell Inc.
system-product-name: Latitude 3410
bios-version: 1.9.0
CPU: Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz (8x)
GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:9b41] (rev 02)
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1d11] (rev a1)
kernel-version: 5.13.0-1007-oem