Bug#837681: diffoscope: 'ERROR guestfs can't be launched' when trying to compare to qubes ISOs

2016-09-13 Thread Holger Levsen
On Tue, Sep 13, 2016 at 02:08:00PM +, HW42 wrote:
> Since guestfs works by running a modified kernel in an VM to parse the
> file system, I think it fails to start the VM (nested virt disabled,
> OOM, ...).
> 
> So I think you should first try if guestfs works at all (without
> diffoscope) and/or enable the debug loggin like suggested in the error
> message.

a.) I should definitly retry with debug logging…
b.) guestfs works on jenkins.d.n which is the same hardware (kvm…) and
the same software (jessie)


-- 
cheers,
Holger


signature.asc
Description: Digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Bug#837681: diffoscope: 'ERROR guestfs can't be launched' when trying to compare to qubes ISOs

2016-09-13 Thread Holger Levsen
On Tue, Sep 13, 2016 at 04:22:29PM +, Mattia Rizzolo wrote:
> I wanted to quickly try myself, but you already deleted the files.
> Could you please save them somewhere (I suppose they are too big to be
> attached to the bug?)

they are in /home/holger/q(1|2) on pb3, please help yourself! :-)

> guestfs is not called directly, but through 
> ISTR the consensuos was in diffoscope printing an
> error but continuing nonetheless (proposing an e.g. binary diff).
> 
> And reading the code suggest that it should do (it's catching
> RuntimeError and returning back safely), but it is doing that only in
> open_archive, not in e.g. close_archive which seems to be where the
> actual crash is:
[...]
> If you want to compare it right now you might want to uninstall
> python3-guestfs so it falls back to binary comparison, but that's
> probably not that much helpful..

thanks but no thanks.

:)


-- 
cheers,
Holger, who still prefers old fashioned error messages over 50
lines of traceback in the users face


signature.asc
Description: Digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Bug#837681: diffoscope: 'ERROR guestfs can't be launched' when trying to compare to qubes ISOs

2016-09-13 Thread Mattia Rizzolo
On Tue, Sep 13, 2016 at 03:35:58PM +0200, Holger Levsen wrote:
> so I build an Qubes ISO, twice and ran diffoscope against it:
> 
> holger@profitbricks-build3-amd64:~$ sudo schroot --directory /tmp -c 
> source:jenkins-reproducible-unstable-diffoscope diffoscope -- --html 
> /tmp/q.html --text /tmp/q.txt /tmp/q1 /tmp/q2

I wanted to quickly try myself, but you already deleted the files.
Could you please save them somewhere (I suppose they are too big to be
attached to the bug?)

> 1473773034.873399ERROR guestfs can't be launched
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", 
> line 43, in open_archive
> self.g.launch()
>   File "/usr/lib/python3/dist-packages/guestfs.py", line 5398, in launch
> r = libguestfsmod.launch (self._o)
> RuntimeError: /usr/bin/supermin exited with error status 1.
> To see full error messages you may need to enable debugging.
> Do:
>   export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
> and run the command again.  For further information, read:
>   http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
> You can also run 'libguestfs-test-tool' and post the *complete* output
> into a bug report or message to the libguestfs mailing list.
> 1473773034.929533ERROR If memory is too tight for 512 MiB, try running 
> with LIBGUESTFS_MEMSIZE=256 or lower.
> 1473773035.369462ERROR guestfs can't be launched
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", 
> line 43, in open_archive
> self.g.launch()
>   File "/usr/lib/python3/dist-packages/guestfs.py", line 5398, in launch
> r = libguestfsmod.launch (self._o)
> RuntimeError: /usr/bin/supermin exited with error status 1.
> To see full error messages you may need to enable debugging.
> Do:
>   export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
> and run the command again.  For further information, read:
>   http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
> You can also run 'libguestfs-test-tool' and post the *complete* output
> into a bug report or message to the libguestfs mailing list.
> 1473773035.373510ERROR If memory is too tight for 512 MiB, try running 
> with LIBGUESTFS_MEMSIZE=256 or lower.

guestfs is not called directly, but through 
ISTR the consensuos was in diffoscope printing an
error but continuing nonetheless (proposing an e.g. binary diff).

And reading the code suggest that it should do (it's catching
RuntimeError and returning back safely), but it is doing that only in
open_archive, not in e.g. close_archive which seems to be where the
actual crash is:

> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils.py", line 
> 279, in __del__
> self.close_archive()
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", 
> line 56, in close_archive
> self.g.umount_all()
>   File "/usr/lib/python3/dist-packages/guestfs.py", line 9543, in umount_all
> r = libguestfsmod.umount_all (self._o)
> RuntimeError: umount_all: call launch before using this function
> (in guestfish, don't forget to use the 'run' command)
> Exception ignored in:  >
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils.py", line 
> 279, in __del__
> self.close_archive()
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", 
> line 56, in close_archive
> self.g.umount_all()
>   File "/usr/lib/python3/dist-packages/guestfs.py", line 9543, in umount_all
> r = libguestfsmod.umount_all (self._o)
> RuntimeError: umount_all: call launch before using this function
> (in guestfish, don't forget to use the 'run' command)

> Am I missing some dependencies or what does that mean and what should I do 
> now?

If you want to compare it right now you might want to uninstall
python3-guestfs so it falls back to binary comparison, but that's
probably not that much helpful..

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Bug#837681: diffoscope: 'ERROR guestfs can't be launched' when trying to compare to qubes ISOs

2016-09-13 Thread HW42
Since guestfs works by running a modified kernel in an VM to parse the
file system, I think it fails to start the VM (nested virt disabled,
OOM, ...).

So I think you should first try if guestfs works at all (without
diffoscope) and/or enable the debug loggin like suggested in the error
message.



signature.asc
Description: OpenPGP digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Bug#837681: diffoscope: 'ERROR guestfs can't be launched' when trying to compare to qubes ISOs

2016-09-13 Thread Holger Levsen
Package: diffoscope
Version: 60
Severity: normal

Hi,

so I build an Qubes ISO, twice and ran diffoscope against it:

holger@profitbricks-build3-amd64:~$ sudo schroot --directory /tmp -c 
source:jenkins-reproducible-unstable-diffoscope diffoscope -- --html 
/tmp/q.html --text /tmp/q.txt /tmp/q1 /tmp/q2
1473773034.873399ERROR guestfs can't be launched
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", line 
43, in open_archive
self.g.launch()
  File "/usr/lib/python3/dist-packages/guestfs.py", line 5398, in launch
r = libguestfsmod.launch (self._o)
RuntimeError: /usr/bin/supermin exited with error status 1.
To see full error messages you may need to enable debugging.
Do:
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again.  For further information, read:
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
1473773034.929533ERROR If memory is too tight for 512 MiB, try running with 
LIBGUESTFS_MEMSIZE=256 or lower.
1473773035.369462ERROR guestfs can't be launched
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", line 
43, in open_archive
self.g.launch()
  File "/usr/lib/python3/dist-packages/guestfs.py", line 5398, in launch
r = libguestfsmod.launch (self._o)
RuntimeError: /usr/bin/supermin exited with error status 1.
To see full error messages you may need to enable debugging.
Do:
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again.  For further information, read:
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
1473773035.373510ERROR If memory is too tight for 512 MiB, try running with 
LIBGUESTFS_MEMSIZE=256 or lower.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/diffoscope/main.py", line 246, in main
sys.exit(run_diffoscope(parsed_args))
  File "/usr/lib/python3/dist-packages/diffoscope/main.py", line 217, in 
run_diffoscope
parsed_args.path1, parsed_args.path2)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", 
line 124, in compare_root_paths
return compare_directories(path1, path2)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/directory.py", 
line 105, in compare_directories
return FilesystemDirectory(path1).compare(FilesystemDirectory(path2))
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/directory.py", 
line 158, in compare
my_file, other_file, source=name)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", 
line 144, in compare_files
return file1.compare(file2, source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/binary.py", line 
213, in compare
difference = self._compare_using_details(other, source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/binary.py", line 
183, in _compare_using_details
details.extend(filter(None, self.as_container.compare(other.as_container)))
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", 
line 147, in compare_commented_files
difference = compare_files(file1, file2, source=source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", 
line 144, in compare_files
return file1.compare(file2, source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/binary.py", line 
213, in compare
difference = self._compare_using_details(other, source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/binary.py", line 
183, in _compare_using_details
details.extend(filter(None, self.as_container.compare(other.as_container)))
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", 
line 147, in compare_commented_files
difference = compare_files(file1, file2, source=source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", 
line 144, in compare_files
return file1.compare(file2, source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/binary.py", line 
213, in compare
difference = self._compare_using_details(other, source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/binary.py", line 
183, in _compare_using_details
details.extend(filter(None, self.as_container.compare(other.as_container)))
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", 
line 147, in compare_commented_files
difference = compare_files(file1, file2, source=source)
  File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", 
line 133, in compare_files
if file1.has_same_content_as(file2):
  File "/usr/lib/python3/dist-packages/diffoscope/__init__.py", line