[elbe-devel] Elbe 2.9.11 - src-cd-image download issues
Manuel Traut
manuel.traut at linutronix.de
Mon Oct 1 10:26:23 CEST 2018
On 06:57 Tue 14 Aug , Mueller Benjamin (MH/EES1) wrote:
> Hi Elbe-Team,
Hi Benjamin,
> I have issues with the download of the src-cdrom image.
>
> The root issue is: I got the following exception regarding a BadStatusLine. As result the src-image will be downloaded not 100%. We are able to mount the image but we are not able to use the files on the image.
>
> sudo mount -o loop src-cdrom.iso mount/
> cp mount/pool/main/a/acl/acl_2.2.52-3.debian.tar.xz /tmp
> cp: error reading 'mount/pool/main/a/acl/acl_2.2.52-3.debian.tar.xz': Input/output error
>
> The next problem is the exception handling of the BadStatusLine Exception:
> In the exception handling you have implemented a retry behavior, but the retry variable is referenced before assignment.
>
> Exception:
> Getting generated Files
>
> Saving generated Files to /data/output
> source.xml (Current source.xml of the project)
> debian-rt-system.img.gz (Image)
> licence.txt (License file)
> licence.xml (xml License file)
> validation.txt (Package list validation result)
> elbe-report.txt (Report)
> log.txt (Log file)
> bin-cdrom.iso (Repository IsoImage)
> src-cdrom.iso (Repository IsoImage)
> Traceback (most recent call last):
> File "/usr/bin/elbe", line 55, in <module>
> cmdmod.run_command(sys.argv[2:])
> File "/usr/lib/python2.7/dist-packages/elbepack/commands/control.py", line 161, in run_command
> action.execute(control, opt, args[1:])
> File "/usr/lib/python2.7/dist-packages/elbepack/soapclient.py", line 516, in execute
> client.download_file(builddir, f.name, dst_fname)
> File "/usr/lib/python2.7/dist-packages/elbepack/soapclient.py", line 89, in download_file
> retry = retry - 1
> UnboundLocalError: local variable 'retry' referenced before assignment
this got fixed in devel/elbe-3.0 and will be part of elbe v2.9.13
Regards,
Manuel
> elbe control get_files Failed
> Giving up
> Makefile:26: recipe for target 'build-development' failed
> make: *** [build-development] Error 20
> Makefile:25: recipe for target 'develop' failed
> make: *** [develop] Error 2
>
>
> After I have fixed the exception handling I got the next exception regarding a SAXParseException. So what is the root cause? Why I get the BadStatusLine exception? And in the next step: Why I get the SAXParseException?
>
> Getting generated Files
>
> Saving generated Files to /data/output
> source.xml (Current source.xml of the project)
> debian-rt-system.img.gz (Image)
> licence.txt (License file)
> licence.xml (xml License file)
> validation.txt (Package list validation result)
> elbe-report.txt (Report)
> log.txt (Log file)
> bin-cdrom.iso (Repository IsoImage)
> src-cdrom.iso (Repository IsoImage)
> Traceback (most recent call last):
> File "/usr/bin/elbe", line 55, in <module>
> cmdmod.run_command(sys.argv[2:])
> File "/usr/lib/python2.7/dist-packages/elbepack/commands/control.py", line 161, in run_command
> action.execute(control, opt, args[1:])
> File "/usr/lib/python2.7/dist-packages/elbepack/soapclient.py", line 515, in execute
> client.download_file(builddir, f.name, dst_fname)
> File "/usr/lib/python2.7/dist-packages/elbepack/soapclient.py", line 86, in download_file
> ret = self.service.get_file(builddir, filename, part)
> File "/usr/lib/python2.7/dist-packages/suds/client.py", line 566, in __call__
> return client.invoke(args, kwargs)
> File "/usr/lib/python2.7/dist-packages/suds/client.py", line 705, in invoke
> result = self.send(soapenv)
> File "/usr/lib/python2.7/dist-packages/suds/client.py", line 753, in send
> return self.process_reply(reply.message, None, None)
> File "/usr/lib/python2.7/dist-packages/suds/client.py", line 805, in process_reply
> replyroot = _parse(reply)
> File "/usr/lib/python2.7/dist-packages/suds/client.py", line 947, in _parse
> return suds.sax.parser.Parser().parse(string=string)
> File "/usr/lib/python2.7/dist-packages/suds/sax/parser.py", line 131, in parse
> sax.parse(source)
> File "/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
> xmlreader.IncrementalParser.parse(self, source)
> File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 125, in parse
> self.close()
> File "/usr/lib/python2.7/xml/sax/expatreader.py", line 225, in close
> self.feed("", isFinal = 1)
> File "/usr/lib/python2.7/xml/sax/expatreader.py", line 217, in feed
> self._err_handler.fatalError(exc)
> File "/usr/lib/python2.7/xml/sax/handler.py", line 38, in fatalError
> raise exception
> xml.sax._exceptions.SAXParseException: <unknown>:2:64201: no element found
> elbe control get_files Failed
> Giving up
>
> Thanks in advanced
>
> Mit freundlichen Grüßen / Best regards
>
> Benjamin Mueller
>
> Engineering Electrical and Software Systems, Test Technology (MH/EES1)
> Moehwald GmbH | Postfach 1456 | 66405 Homburg | GERMANY | www.moehwald.de<http://www.moehwald.de>
> Tel. +49 6841 707-235 | Mobil +49 173 3059139 | Fax +49 6841 79-0 | b.mueller2 at moehwald.de<mailto:b.mueller2 at moehwald.de>
>
> Sitz: Homburg/Saar, Registergericht: Saarbrücken HRB 2812
> Geschäftsführung: Dr. Christian Artmann, Sven Steib
>
>
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
--
------------------------------------------------
Linutronix GmbH
fon +49 7556 25999 16
Firmensitz: D-88690 Uhldingen, Bahnhofstraße 3
Registergericht: Freiburg i. Br., HRB 700 806;
Geschäftsführer: Heinz Egger, Thomas Gleixner
More information about the elbe-devel
mailing list