Subject: bug#35359: docker-image produces corrupt tar

From: rendaw <[email-masked]>
Date: Mon, 22 Apr 2019 20:55:05 +0900

On 4/22/19 5:35 AM, Ludovic Courtès wrote:
> Hi,
>
> rendaw <[email-masked]> skribis:
>
>> $ guix system docker-image testsystem2.scm --on-error=backtrace
>> successfully built
>> /gnu/store/l3psqh73xjb5h11y1hwrlfvl1yr920x4-guixsd-docker-image.tar.gz.drv
>> /gnu/store/giaw69wla9zdf4k7nddyyglvhq3629jq-guixsd-docker-image.tar.gz
>> $ tar -ztf
>> /gnu/store/d8rr8ilwm7l0xjachp7glbhp9qf4hjyg-guixsd-docker-image.tar.gz ^C
>> $ docker load <
>> /gnu/store/giaw69wla9zdf4k7nddyyglvhq3629jq-guixsd-docker-image.tar.gz
>> Error processing tar file(exit status 1): unexpected EOF
>> $ tar -ztf
>> /gnu/store/giaw69wla9zdf4k7nddyyglvhq3629jq-guixsd-docker-image.tar.gz
>> ./
>> ./41bc17c3316805da9a209f5835327160c8993ab4311c9cb649911a4ae41d1603/
>> ./41bc17c3316805da9a209f5835327160c8993ab4311c9cb649911a4ae41d1603/VERSION
>> ./41bc17c3316805da9a209f5835327160c8993ab4311c9cb649911a4ae41d1603/json
>> ./41bc17c3316805da9a209f5835327160c8993ab4311c9cb649911a4ae41d1603/layer.tar
>>
>> gzip: stdin: unexpected end of file
>> tar: Unexpected EOF in archive
>> tar: Error is not recoverable: exiting now
>> ```
> What’s the output of ‘guix describe’?
>
> This problem was initially fixed in
> 0dc7d298a33f83d5f02a962b5f1bd24ee0e8ef07 (March 22), with a followup in
> 66ec389580d4f1e4b81e1c72afe2749a547a0e7ca (Apr. 14).
>
> Thanks,
> Ludo’.
$ guix describe
guix describe: error: failed to determine origin

$ guix --version
guix (GNU Guix) 0.16.0
Copyright (C) 2018 the Guix authors
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I tried `guix describe` as root too, same error.

I downloaded guix a couple weeks ago, so it's possible it's out of
date.  It looks like the same version as is listed on the website though.

Cheers,

rendaw