[Bug 937640] New: cryptic error from osc
http://bugzilla.novell.com/show_bug.cgi?id=937640 Bug ID: 937640 Summary: cryptic error from osc Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService Assignee: bnc-team-screening@forge.provo.novell.com Reporter: fdmanana@suse.com QA Contact: adrian@suse.com Found By: --- Blocker: --- First time filling a bug report/help request for osc, so I'm not sure if this is the correct bugzilla category for it, and apologies if it's not. I'm trying to branch out SLE12's btrfsprogs package with osc like this: fdmanana 10:25:02 ~/tmp > osc -A https://build.suse.de/ search btrfsprogs No matches found for 'btrfsprogs' in projects #################################################################### matches for 'btrfsprogs' in packages: # Project # Package (...) SUSE:SLE-12:GA btrfsprogs SUSE:SLE-12:Rings:1-MinimalX btrfsprogs SUSE:SLE-12:Update btrfsprogs (...) fdmanana 10:26:20 ~/tmp > osc -A https://build.suse.de/ bco SUSE:SLE-12:Update btrfsprogs Traceback (most recent call last): File "/usr/bin/osc", line 26, in <module> r = babysitter.run(osccli) File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 61, in run return prg.main(argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 343, in main return self.cmd(args) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 366, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 500, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 1230, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 3177, in do_branch maintenance=opts.maintenance) File "/usr/lib/python2.7/site-packages/osc/core.py", line 4986, in branch_pkg root = ET.fromstring(e.read()) AttributeError: 'HTTPError' object has no attribute 'read' fdmanana 10:26:28 ~/tmp > I can't tell what the problem is. This happens on 2 different machines running openSUSE 13.1, with osc installed with "zypper install osc". I have the correct credentials in ~/.oscrc: fdmanana 10:27:56 ~ > egrep -A 3 'build\.suse\.de' ~/.oscrc [https://build.suse.de] user=fdmanana pass=<my password here in plain text> fdmanana 10:28:01 ~ > If I go to the web interface of https://build.suse.de, I'm able to login using the same exact credentials that I have in .oscrc and through there I can branch btrfsprogs. Tried both with osc 0.151 and 0.152. I'm on our internal IRC, with nick "fdmanana", in case it helps to solve this more quickly. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c1
--- Comment #1 from Filipe Manana
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c2
--- Comment #2 from Filipe Manana
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c3
--- Comment #3 from Adrian Schröter
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c4
--- Comment #4 from Filipe Manana
Can you check if your password is sent in a second attempt or just the auth cookie?
You can see the output by using "osc -H ..."
Here's the output: fdmanana 13:42:03 ~/tmp > osc -A https://build.suse.de/ -H bco SUSE:SLE-12:Update btrfsprogs -- POST https://build.suse.de/source/SUSE:SLE-12:Update/btrfsprogs?cmd=branch send: 'POST /source/SUSE:SLE-12:Update/btrfsprogs?cmd=branch HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-length: 0\r\nConnection: close\r\nContent-type: application/x-www-form-urlencoded\r\nHost: build.suse.de\r\nUser-agent: osc/0.151\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Date: Tue, 14 Jul 2015 12:42:32 GMT header: Server: Apache/2.4.10 (Linux/SUSE) header: cache-control: no-cache header: vary: Accept-Encoding header: x-xss-protection: 1; mode=block header: www-authenticate: basic realm="API login" header: x-opensuse-runtimes: {"view":1.2207059189677238,"db":0.37745999999999996,"backend":0,"xml":0} header: x-request-id: 036183fc-d699-45e7-bc12-181f887e6e63 header: x-opensuse-apiversion: 2.6.51.git20150709.69dd947 header: x-runtime: 0.007802 header: x-frame-options: SAMEORIGIN header: x-content-type-options: nosniff header: x-opensuse-errorcode: anonymous_user header: X-Powered-By: Phusion Passenger 5.0.7 header: Status: 401 Unauthorized header: Content-Type: application/xml; charset=utf-8 header: Connection: close header: Transfer-Encoding: chunked send: 'POST /source/SUSE:SLE-12:Update/btrfsprogs?cmd=branch HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-length: 0\r\nHost: build.suse.de\r\nUser-agent: osc/0.151\r\nConnection: close\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Date: Tue, 14 Jul 2015 12:42:33 GMT header: Server: Apache/2.4.10 (Linux/SUSE) header: cache-control: no-cache header: vary: Accept-Encoding header: x-xss-protection: 1; mode=block header: www-authenticate: basic realm="API login" header: x-opensuse-runtimes: {"view":1.506831031292677,"db":0.778103,"backend":0,"xml":0} header: x-request-id: 61d49b2a-afb9-41c6-8820-58c256e21277 header: x-opensuse-apiversion: 2.6.51.git20150709.69dd947 header: x-runtime: 0.015253 header: x-frame-options: SAMEORIGIN header: x-content-type-options: nosniff header: x-opensuse-errorcode: anonymous_user header: X-Powered-By: Phusion Passenger 5.0.7 header: Status: 401 Unauthorized header: Content-Type: application/xml; charset=utf-8 header: Connection: close header: Transfer-Encoding: chunked send: 'POST /source/SUSE:SLE-12:Update/btrfsprogs?cmd=branch HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-length: 0\r\nHost: build.suse.de\r\nUser-agent: osc/0.151\r\nConnection: close\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Date: Tue, 14 Jul 2015 12:42:34 GMT header: Server: Apache/2.4.10 (Linux/SUSE) header: cache-control: no-cache header: vary: Accept-Encoding header: x-xss-protection: 1; mode=block header: www-authenticate: basic realm="API login" header: x-opensuse-runtimes: {"view":1.616604859009385,"db":0.887405,"backend":0,"xml":0} header: x-request-id: 400955ce-18e8-47ac-8f8e-3cdec1333f67 header: x-opensuse-apiversion: 2.6.51.git20150709.69dd947 header: x-runtime: 0.012671 header: x-frame-options: SAMEORIGIN header: x-content-type-options: nosniff header: x-opensuse-errorcode: anonymous_user header: X-Powered-By: Phusion Passenger 5.0.7 header: Status: 401 Unauthorized header: Content-Type: application/xml; charset=utf-8 header: Connection: close header: Transfer-Encoding: chunked send: 'POST /source/SUSE:SLE-12:Update/btrfsprogs?cmd=branch HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-length: 0\r\nHost: build.suse.de\r\nUser-agent: osc/0.151\r\nConnection: close\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Date: Tue, 14 Jul 2015 12:42:34 GMT header: Server: Apache/2.4.10 (Linux/SUSE) header: cache-control: no-cache header: vary: Accept-Encoding header: x-xss-protection: 1; mode=block header: www-authenticate: basic realm="API login" header: x-opensuse-runtimes: {"view":2.181374002248049,"db":1.098795,"backend":0,"xml":0} header: x-request-id: 4af144f8-3b51-419e-b36e-3ff3cb6ecbfa header: x-opensuse-apiversion: 2.6.51.git20150709.69dd947 header: x-runtime: 0.012349 header: x-frame-options: SAMEORIGIN header: x-content-type-options: nosniff header: x-opensuse-errorcode: anonymous_user header: X-Powered-By: Phusion Passenger 5.0.7 header: Status: 401 Unauthorized header: Content-Type: application/xml; charset=utf-8 header: Connection: close header: Transfer-Encoding: chunked send: 'POST /source/SUSE:SLE-12:Update/btrfsprogs?cmd=branch HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-length: 0\r\nHost: build.suse.de\r\nUser-agent: osc/0.151\r\nConnection: close\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Date: Tue, 14 Jul 2015 12:42:35 GMT header: Server: Apache/2.4.10 (Linux/SUSE) header: cache-control: no-cache header: vary: Accept-Encoding header: x-xss-protection: 1; mode=block header: www-authenticate: basic realm="API login" header: x-opensuse-runtimes: {"view":1.1442210525274277,"db":0.632669,"backend":0,"xml":0} header: x-request-id: dc590c9e-ac87-43b1-9cdf-ea9f100f5898 header: x-opensuse-apiversion: 2.6.51.git20150709.69dd947 header: x-runtime: 0.007930 header: x-frame-options: SAMEORIGIN header: x-content-type-options: nosniff header: x-opensuse-errorcode: anonymous_user header: X-Powered-By: Phusion Passenger 5.0.7 header: Status: 401 Unauthorized header: Content-Type: application/xml; charset=utf-8 header: Connection: close header: Transfer-Encoding: chunked send: 'POST /source/SUSE:SLE-12:Update/btrfsprogs?cmd=branch HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-length: 0\r\nHost: build.suse.de\r\nUser-agent: osc/0.151\r\nConnection: close\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Date: Tue, 14 Jul 2015 12:42:36 GMT header: Server: Apache/2.4.10 (Linux/SUSE) header: cache-control: no-cache header: vary: Accept-Encoding header: x-xss-protection: 1; mode=block header: www-authenticate: basic realm="API login" header: x-opensuse-runtimes: {"view":3.2788971439003944,"db":0.738286,"backend":0,"xml":0} header: x-request-id: bb784bde-5b4f-451a-bfd4-0629db85cd01 header: x-opensuse-apiversion: 2.6.51.git20150709.69dd947 header: x-runtime: 0.013220 header: x-frame-options: SAMEORIGIN header: x-content-type-options: nosniff header: x-opensuse-errorcode: anonymous_user header: X-Powered-By: Phusion Passenger 5.0.7 header: Status: 401 Unauthorized header: Content-Type: application/xml; charset=utf-8 header: Connection: close header: Transfer-Encoding: chunked send: 'POST /source/SUSE:SLE-12:Update/btrfsprogs?cmd=branch HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-length: 0\r\nHost: build.suse.de\r\nUser-agent: osc/0.151\r\nConnection: close\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Date: Tue, 14 Jul 2015 12:42:37 GMT header: Server: Apache/2.4.10 (Linux/SUSE) header: cache-control: no-cache header: vary: Accept-Encoding header: x-xss-protection: 1; mode=block header: www-authenticate: basic realm="API login" header: x-opensuse-runtimes: {"view":1.1010791640728712,"db":0.6170289999999999,"backend":0,"xml":0} header: x-request-id: b7e18a09-7689-46f3-8b91-d1e483b80028 header: x-opensuse-apiversion: 2.6.51.git20150709.69dd947 header: x-runtime: 0.013013 header: x-frame-options: SAMEORIGIN header: x-content-type-options: nosniff header: x-opensuse-errorcode: anonymous_user header: X-Powered-By: Phusion Passenger 5.0.7 header: Status: 401 Unauthorized header: Content-Type: application/xml; charset=utf-8 header: Connection: close header: Transfer-Encoding: chunked Traceback (most recent call last): File "/usr/bin/osc", line 26, in <module> r = babysitter.run(osccli) File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 61, in run return prg.main(argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 343, in main return self.cmd(args) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 366, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 500, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 1230, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 3177, in do_branch maintenance=opts.maintenance) File "/usr/lib/python2.7/site-packages/osc/core.py", line 4986, in branch_pkg root = ET.fromstring(e.read()) AttributeError: 'HTTPError' object has no attribute 'read' fdmanana 13:42:33 ~/tmp > I'm not very familiar with http and auth nowadays, so I don't how to interpret that properly.
also removing your local cookie might help:
rm ~/.osc_cookiejar
Just tried it, didn't make any difference :(
There is no keyring handler (python-keyring* packages) involved, right?
I have one such package installed: fdmanana 13:47:38 ~/tmp > zypper search python-keyring Loading repository data... Reading installed packages... S | Name | Summary | Type --+----------------+----------------------------------------+----------- i | python-keyring | Store and access your passwords safely | package | python-keyring | Store and access your passwords safely | srcpackage fdmanana 13:47:49 ~/tmp > Should I remove it or change something in its config? thanks Adrian -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c5
--- Comment #5 from Filipe Manana
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c6
Adrian Schröter
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c7
--- Comment #7 from Filipe Manana
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c8
--- Comment #8 from Adrian Schröter
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c9
--- Comment #9 from Filipe Manana
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c10
--- Comment #10 from Adrian Schröter
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c11
--- Comment #11 from Filipe Manana
http://bugzilla.novell.com/show_bug.cgi?id=937640
http://bugzilla.novell.com/show_bug.cgi?id=937640#c12
--- Comment #12 from Filipe Manana
participants (1)
-
bugzilla_noreply@novell.com