Bug#919102: reportbug: crash if fails to contact debian server
Package: reportbug Version: 7.5.2 Followup-For: Bug #919102 Dear Maintainer, I can confirm this with version 7.5.2. If there's no network connection, reportbug will crash as described. I noticed this after upgrading to buster. Crash information below. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1186, in _conn_request conn.connect() File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 998, in connect address_info = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM) File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Tilapäinen virhe nimenselvityksessä During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/reportbug/ui/gtk_ui.py", line 1049, in sync_pre_operation http_proxy=http_proxy, archived=archived, source=source) File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 1069, in get_reports bugs = debianbts.get_bugs(pkg_filter, package) File "/usr/lib/python3/dist-packages/debianbts/debianbts.py", line 401, in get_bugs reply = soap_client.call('get_bugs', method_el) File "/usr/lib/python3/dist-packages/pysimplesoap/client.py", line 256, in call self.xml_response = self.send(method, self.xml_request) File "/usr/lib/python3/dist-packages/pysimplesoap/client.py", line 318, in send location, http_method, body=xml, headers=headers) File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1513, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1263, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1193, in _conn_request raise ServerNotFoundError("Unable to find the server at %s" % conn.host) httplib2.ServerNotFoundError: Unable to find the server at bugs.debian.org During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/reportbug", line 2285, in main() File "/usr/bin/reportbug", line 1115, in main return iface.user_interface() File "/usr/bin/reportbug", line 1728, in user_interface latest_first=self.options.latest_first) File "/usr/lib/python3/dist-packages/reportbug/ui/gtk_ui.py", line 1763, in func args, kwargs = op.sync_pre_operation(*args, **kwargs) File "/usr/lib/python3/dist-packages/reportbug/ui/gtk_ui.py", line 1051, in sync_pre_operation error_dialog("Unable to connect to %s BTS." % sysinfo['name']) File "/usr/lib/python3/dist-packages/reportbug/ui/gtk_ui.py", line 137, in error_dialog _assert_context(ui_context) File "/usr/lib/python3/dist-packages/reportbug/ui/gtk_ui.py", line 92, in _assert_context (_describe_context(really), _describe_context(expected))) AssertionError: Function should be called in but was called in -- Package-specific info: ** Environment settings: INTERFACE="gtk" ** /home/username/.reportbugrc: reportbug_version "7.1.7" mode standard ui gtk2 realname *** email * no-cc header "X-Debbugs-CC: *" smtphost reportbug.debian.org -- System Information: Debian Release: 10.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores) Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi_FI.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages reportbug depends on: ii apt1.8.2 ii python33.7.3-1 ii python3-reportbug 7.5.2 ii sensible-utils 0.0.12 reportbug recommends no packages. Versions of packages reportbug suggests: pn claws-mail pn debconf-utils pn debsums pn dlocate pn emacs24-bin-common | emacs25-bin-common ii file 1:5.35-4 ii gnupg2.2.12-1 pn postfix | exim4 | mail-transport-agent pn python3-urwid pn reportbug-gtk ii xdg-utils1.1.3-1 Versions of packages python3-reportbug depends on: ii apt1.8.2 ii file 1:5.35-4 ii python33.7.3-1 ii python3-apt1.8.4 ii python3-debian 0.1.35 ii python3-debianbts 2.8.2 ii python3-requests 2.21.0-1 python3-reportbug suggests no packages.
Bug#919102: reportbug: crash if fails to contact debian server
Package: reportbug Version: 7.1.7+deb9u2 Severity: important Dear Maintainer, When trying to report a bug from linux package and the server is under '500 Internal Server Error', reportbug will crash. Sorry if this is not a reportbug's bug. I've been having this issue for some time, so decided to run reportbug from terminal and got the following : b'\n\n500 Internal Server Error\n\nInternal Server Error\nThe server encountered an internal error or\nmisconfiguration and was unable to complete\nyour request.\nPlease contact the server administrator at \n ow...@bugs.debian.org to inform them of the time this error occurred,\n and the actions you performed just before this error.\nMore information about this error may be available\nin the server error log.\n\nApache Server at bugs.debian.org Port 443\n\n' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 1077, in get_reports stats = debianbts.get_status(bugs) File "/usr/lib/python3/dist-packages/debianbts.py", line 257, in get_status reply = soap_client.call('get_status', method_el) File "/usr/lib/python3/dist-packages/pysimplesoap/client.py", line 262, in call jetty=self.__soap_server in ('jetty',)) File "/usr/lib/python3/dist-packages/pysimplesoap/simplexml.py", line 56, in __init__ self.__document = xml.dom.minidom.parseString(text) File "/usr/lib/python3.5/xml/dom/minidom.py", line 1968, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.5/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.5/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: syntax error: line 1, column 49 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1049, in sync_pre_operation http_proxy=http_proxy, archived=archived, source=source) File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 1079, in get_reports raise QuertBTSError reportbug.exceptions.QuertBTSError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/reportbug", line 2264, in main() File "/usr/bin/reportbug", line 1108, in main return iface.user_interface() File "/usr/bin/reportbug", line 1722, in user_interface latest_first=self.options.latest_first) File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1765, in func args, kwargs = op.sync_pre_operation(*args, **kwargs) File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1051, in sync_pre_operation error_dialog("Unable to connect to %s BTS." % sysinfo['name']) File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 137, in error_dialog _assert_context(ui_context) File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 92, in _assert_context (_describe_context(really), _describe_context(expected))) AssertionError: Function should be called in but was called in -- Package-specific info: ** Environment settings: INTERFACE="gtk2" ** /home/raiden/.reportbugrc: reportbug_version "7.1.7" mode novice ui gtk2 realname "Neil" email "ledu...@hotmail.com" smtphost "smtp-mail.outlook.com" smtpuser "ledu...@hotmail.com" smtptls -- System Information: Debian Release: 9.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-0.bpo.1-amd64 (SMP w/4 CPU cores) Locale: LANG=es_CO.UTF-8, LC_CTYPE=es_CO.UTF-8 (charmap=UTF-8), LANGUAGE=es_CO:es (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages reportbug depends on: ii apt1.4.8 ii python33.5.3-1 ii python3-reportbug 7.1.7+deb9u2 reportbug recommends no packages. Versions of packages reportbug suggests: pn claws-mail pn debconf-utils ii debsums2.2.2 pn dlocate pn emacs24-bin-common | emacs25-bin-common ii exim4-daemon-light [mail-transport-agent] 4.89-2+deb9u3 ii file 1:5.30-1+deb9u2 ii gir1.2-gtk-3.0 3.22.11-1 ii gir1.2-vte-2.910.46.1-1 ii gnupg 2.1.18-8~deb9u3 ii python3-gi 3.22.0-2 ii python3-gi-cairo 3.22.0-2 ii python3-gtkspellcheck 4.0.5-1 pn python3-urwid ii xdg-utils 1.1.1-1+deb9u1 Versions of packages python3-reportbug depends on: ii apt1.4.8 ii file