[Bug 280005] New: osc: traceback if no route to host
https://bugzilla.novell.com/show_bug.cgi?id=280005 Summary: osc: traceback if no route to host Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse-beta@cboltz.de QAContact: adrian@novell.com I was logged out of the LinuxTag WLAN which means - nameservice fully working - all other traffic /dev/null'ed at the router (traceroute shows two stations, then only stars) osc commit gave the following traceback in this situation: cb@cboltz:~/packages/home:cboltz/kdepim3> osc commit Traceback (most recent call last): File "/usr/bin/osc", line 10, in <module> sys.exit( osc.main() ) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 240, in main return self.cmd(args) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 263, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 379, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 1109, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.5/site-packages/osc/commandline.py", line 603, in do_commit upstream_rev = show_upstream_rev(p.apiurl, p.prjname, p.name) File "/usr/lib/python2.5/site-packages/osc/core.py", line 908, in show_upstream_rev m = show_files_meta(apiurl, prj, pac) File "/usr/lib/python2.5/site-packages/osc/core.py", line 903, in show_files_meta f = http_GET(makeurl(apiurl, ['source', prj, pac])) File "/usr/lib/python2.5/site-packages/osc/core.py", line 682, in http_GET def http_GET(*args, **kwargs): return http_request('GET', *args, **kwargs) File "/usr/lib/python2.5/site-packages/osc/core.py", line 673, in http_request fd = urllib2.urlopen(req, data=data) File "/usr/lib/python2.5/urllib2.py", line 121, in urlopen return _opener.open(url, data) File "/usr/lib/python2.5/urllib2.py", line 374, in open response = self._open(req, data) File "/usr/lib/python2.5/urllib2.py", line 392, in _open '_open', req) File "/usr/lib/python2.5/urllib2.py", line 353, in _call_chain result = func(*args) File "/usr/lib/python2.5/urllib2.py", line 1109, in https_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib/python2.5/urllib2.py", line 1076, in do_open raise URLError(err) urllib2.URLError: <urlopen error (8, 'EOF occurred in violation of protocol')> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=280005 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |poeml@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=280005 poeml@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |suse-beta@cboltz.de ------- Comment #1 from poeml@novell.com 2007-06-13 04:09 MST ------- I'm not sure which is the bug here, resp. where there is a bug at all. Can you be more specific? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=280005 suse-beta@cboltz.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|suse-beta@cboltz.de | ------- Comment #2 from suse-beta@cboltz.de 2007-06-13 16:22 MST ------- This bugreport was more or less a quick note at LinuxTag. Sorry that I didn't take the time for a detailed description when opening it. I'll add some details now: Well, I don't expect that osc works in this situation. I know that it is technically impossible to reach a server if the network is broken. What I expect is that osc handles this error more gracefully (notwork problems happen from time to time and are not "exotic") - an error message like "Can't connect to server $server" instead of the backtrace would be OK. So: Yes, I basically want to have an error message added ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=280005 poeml@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #3 from poeml@novell.com 2007-06-14 02:19 MST ------- I see. That's why I was asking :) Thanks for the details. The problem was not that the host could not be reached, but that the host (or whichever router in between) replied with something which was not valid HTTP. The error message is clear, IMO: urllib2.URLError: <urlopen error (8, 'EOF occurred in violation of protocol')> If you want to suppress the traceback, yes, that's possible, but only if done in a way that it can be enabled at any time. Those tracebacks are actually quite useful ;) Making the traceback optional is okay, I think, and on my (virtual) todo list since some time. But not with high priority. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=280005 User poeml@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=280005#c4 Peter Poeml <poeml@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Peter Poeml <poeml@novell.com> 2008-05-02 02:33:58 MST --- Fixed in svn trunk: poeml@batavia510 /tmp % osc -A 'https://doesnotexist.foo/' ls Failed to reach a server: (-2, 'Name or service not known') [2] 27083 exit 1 osc -A 'https://doesnotexist.foo/' ls poeml@batavia510 /tmp % osc -A 'https://10.0.0.123/' ls Failed to reach a server: (113, 'No route to host') [2] 27094 exit 1 osc -A 'https://10.0.0.123/' ls Tracebacks are now optional, and can activated with -t, or traceback = 1 in the config. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=280005 User suse-beta@cboltz.de added comment https://bugzilla.novell.com/show_bug.cgi?id=280005#c5 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #5 from Christian Boltz <suse-beta@cboltz.de> 2008-08-10 14:57:02 MDT --- VERIFIED - osc-0.107-2.1 prints nice and easily understandable error messages, and -t prints a traceback. Thanks for making the error reporting nicer! ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com