GNU bug report logs - #35359
docker-image produces corrupt tar

Previous Next

Package: guix;

Reported by: rendaw <7e9wc56emjakcm <at> s.rendaw.me>

Date: Sun, 21 Apr 2019 13:45:02 UTC

Severity: normal

Found in version 0.16.0

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#35359: closed (docker-image produces corrupt tar)
Date: Mon, 22 Apr 2019 17:59:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 22 Apr 2019 19:12:05 +0200
with message-id <871s1u6k2i.fsf <at> elephly.net>
and subject line Re: bug#35359: docker-image produces corrupt tar
has caused the debbugs.gnu.org bug report #35359,
regarding docker-image produces corrupt tar
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
35359: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35359
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: rendaw <7e9wc56emjakcm <at> s.rendaw.me>
To: submit <at> debbugs.gnu.org
Subject: docker-image produces corrupt tar
Date: Sun, 21 Apr 2019 22:44:32 +0900
Package: guix
Version: 0.16.0

I took the sample system configuration at the top of
https://www.gnu.org/software/guix/manual/en/html_node/Using-the-Configuration-System.html#Using-the-Configuration-System
and ran:

```
$ 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
```

Qemu (?) clears my scroll history but I don't see any errors or warnings
from that point on.

My system is pretty typical - x86 Arch Linux with standard core binaries
and such.


[Message part 3 (message/rfc822, inline)]
From: Ricardo Wurmus <rekado <at> elephly.net>
To: rendaw <7e9wc56emjakcm <at> s.rendaw.me>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 35359-done <at> debbugs.gnu.org
Subject: Re: bug#35359: docker-image produces corrupt tar
Date: Mon, 22 Apr 2019 19:12:05 +0200
rendaw <7e9wc56emjakcm <at> s.rendaw.me> writes:

> On 4/23/19 1:10 AM, Ricardo Wurmus wrote:
>> rendaw <7e9wc56emjakcm <at> s.rendaw.me> writes:
>>
>>> Thanks! I just did `guix pull` and forced an image rebuild (by changing
>>> host-name)
>> Changing the host name is not needed.  After getting the new Guix most
>> of the packages that should end up in the image would be updated
>> anyway.
>>
>>> but I get the same tar error.
>> I’m guessing that you are not actually using the pulled Guix because
>> your shell may have cached the former location of the “guix”
>> executable.  Please try again with ~/.config/guix/current/bin/guix
>> instead of just “guix”.
>>
>> You can also run “hash guix” in Bash to invalidate the cache.
> Thanks, that was the issue. I replaced the path and now the build uses
> fresh packages and the tar is not corrupt. This can be closed.

Excellent.  Thanks for the confirmation!

Closing.

-- 
Ricardo



This bug report was last modified 6 years and 28 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.