Mailinglist Archive: opensuse-buildservice (158 mails)

< Previous Next >
Re: [opensuse-buildservice] osc error (build locally)
  • From: Kyrill Detinov <lazy.kent@xxxxxxxxxxxx>
  • Date: Sun, 19 Dec 2010 15:39:09 +0300
  • Message-id: <201012191539.09887.lazy.kent@xxxxxxxxxxxx>

Sunday 19 December 2010

On Sun, 19 Dec 2010 13:04:39 +0100 Marcus Hüwe wrote:

Can you please post the complete traceback (from openSUSE 11.1).

openSUSE 11.1, osc-0.130.1.

...
send: 'GET /factory/repo/oss/suse/i586/libgcc45-4.5.1_20101208-2.1.i586.rpm
HTTP/1.1\r\nAccept-Encoding: identity\r\nHost:
download.opensuse.org\r\nConnection: close\r\nUser-Agent:
osc/0.130.1\r\n\r\n'
Traceback (most recent call last):
File "/usr/bin/osc", line 21, in <module>
r = babysitter.run(osccli)
File "/usr/lib/python2.6/site-packages/osc/babysitter.py", line 50, in
run
return prg.main()
File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 309, in
main
return self.cmd(args)
File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 332, in cmd
retval = self.onecmd(argv)
File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 448, in
onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 1178, in
_dispatch_cmd
return handler(argv[0], opts, *args)
File "/usr/lib/python2.6/site-packages/osc/commandline.py", line 4260,
in do_build
return osc.build.main(self.get_api_url(), opts, args)
File "/usr/lib/python2.6/site-packages/osc/build.py", line 656, in
main
fetcher.run(bi)
File "/usr/lib/python2.6/site-packages/osc/fetch.py", line 208, in run
self.fetch(i)
File "/usr/lib/python2.6/site-packages/osc/fetch.py", line 149, in
fetch
text = '%s(%s) %s' %(prefix, pac.project, pac.filename))
File "/usr/lib/python2.6/site-packages/urlgrabber/mirror.py", line
411, in urlgrab
return self._mirror_try(func, url, kw)
File "/usr/lib/python2.6/site-packages/urlgrabber/mirror.py", line
397, in _mirror_try
return func_ref( *(fullurl,), **kwargs )
File "/usr/lib/python2.6/site-packages/osc/fetch.py", line 41, in
urlgrab
for i in streamfile(url, progress_obj=self.progress_obj, text=text):
File "/usr/lib/python2.6/site-packages/osc/core.py", line 4509, in
streamfile
f = http_meth.__call__(url, data = data)
File "/usr/lib/python2.6/site-packages/osc/core.py", line 2661, in
http_GET
def http_GET(*args, **kwargs): return http_request('GET', *args,
**kwargs)
File "/usr/lib/python2.6/site-packages/osc/core.py", line 2649, in
http_request
fd = urllib2.urlopen(req, data=data)
File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 395, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 508, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 427, in error
result = self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 367, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 603, in http_error_302
return self.parent.open(new)
File "/usr/lib/python2.6/urllib2.py", line 389, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 407, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 367, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 1139, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1112, in do_open
r = h.getresponse()
File "/usr/lib/python2.6/httplib.py", line 970, in getresponse
response.begin()
File "/usr/lib/python2.6/site-packages/osc/conf.py", line 462, in
new_method
meth(*args, **kwargs)
File "/usr/lib/python2.6/httplib.py", line 390, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.6/httplib.py", line 354, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine
...

Can you also run the following curl command?
curl -D header -o out.rpm
http://download.opensuse.org/repositories/openSUSE:/Factory/snapshot/
i586/libgcc45-4.5.1_20101208-2.1.i586.rpm Please post the output of
the file "header" and check if "out.rpm" is a valid rpm file.

header:

HTTP/1.1 302 Found
Date: Sun, 19 Dec 2010 12:25:16 GMT
Server: Apache/2.2.10 (Linux/SUSE)
Location:
http://download.opensuse.org/factory/repo/oss/suse/i586/libgcc45-4.5.1_20101208-2.1.i586.rpm
Content-Length: 367
Content-Type: text/html; charset=iso-8859-1

out.rpm isn't a valid rpm file. It is a html page:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a
href="http://download.opensuse.org/factory/repo/oss/suse/i586/libgcc45-4.5.1_20101208-2.1.i586.rpm";>here</a>.</p>
<hr>
<address>Apache/2.2.10 (Linux/SUSE) Server at download.opensuse.org Port
80</address>
</body></html>


--
WBR
Kyrill
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >