* bug#35359: docker-image produces corrupt tar
@ 2019-04-21 13:44 rendaw
2019-04-21 20:35 ` Ludovic Courtès
0 siblings, 1 reply; 8+ messages in thread
From: rendaw @ 2019-04-21 13:44 UTC (permalink / raw)
To: 35359
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#35359: docker-image produces corrupt tar
2019-04-21 13:44 bug#35359: docker-image produces corrupt tar rendaw
@ 2019-04-21 20:35 ` Ludovic Courtès
2019-04-22 11:55 ` rendaw
0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2019-04-21 20:35 UTC (permalink / raw)
To: rendaw; +Cc: 35359
Hi,
rendaw <7e9wc56emjakcm@s.rendaw.me> 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’.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#35359: docker-image produces corrupt tar
2019-04-21 20:35 ` Ludovic Courtès
@ 2019-04-22 11:55 ` rendaw
2019-04-22 12:06 ` Ricardo Wurmus
0 siblings, 1 reply; 8+ messages in thread
From: rendaw @ 2019-04-22 11:55 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 35359
On 4/22/19 5:35 AM, Ludovic Courtès wrote:
> Hi,
>
> rendaw <7e9wc56emjakcm@s.rendaw.me> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#35359: docker-image produces corrupt tar
2019-04-22 11:55 ` rendaw
@ 2019-04-22 12:06 ` Ricardo Wurmus
2019-04-22 14:35 ` rendaw
0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Wurmus @ 2019-04-22 12:06 UTC (permalink / raw)
To: rendaw; +Cc: 35359
rendaw <7e9wc56emjakcm@s.rendaw.me> writes:
> $ 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.
This is the last release, but you should run “guix pull” on a regular
basis to get updates to Guix and to be able to install package updates.
--
Ricardo
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#35359: docker-image produces corrupt tar
2019-04-22 12:06 ` Ricardo Wurmus
@ 2019-04-22 14:35 ` rendaw
2019-04-22 16:10 ` Ricardo Wurmus
0 siblings, 1 reply; 8+ messages in thread
From: rendaw @ 2019-04-22 14:35 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 35359
On 4/22/19 9:06 PM, Ricardo Wurmus wrote:
> rendaw <7e9wc56emjakcm@s.rendaw.me> writes:
>
>> $ 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.
> This is the last release, but you should run “guix pull” on a regular
> basis to get updates to Guix and to be able to install package updates.
>
> --
> Ricardo
>
Thanks! I just did `guix pull` and forced an image rebuild (by changing
host-name), but I get the same tar error.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#35359: docker-image produces corrupt tar
2019-04-22 14:35 ` rendaw
@ 2019-04-22 16:10 ` Ricardo Wurmus
2019-04-22 16:53 ` rendaw
0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Wurmus @ 2019-04-22 16:10 UTC (permalink / raw)
To: rendaw; +Cc: 35359
rendaw <7e9wc56emjakcm@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.
--
Ricardo
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#35359: docker-image produces corrupt tar
2019-04-22 16:10 ` Ricardo Wurmus
@ 2019-04-22 16:53 ` rendaw
2019-04-22 17:12 ` Ricardo Wurmus
0 siblings, 1 reply; 8+ messages in thread
From: rendaw @ 2019-04-22 16:53 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 35359
On 4/23/19 1:10 AM, Ricardo Wurmus wrote:
> rendaw <7e9wc56emjakcm@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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#35359: docker-image produces corrupt tar
2019-04-22 16:53 ` rendaw
@ 2019-04-22 17:12 ` Ricardo Wurmus
0 siblings, 0 replies; 8+ messages in thread
From: Ricardo Wurmus @ 2019-04-22 17:12 UTC (permalink / raw)
To: rendaw; +Cc: 35359-done
rendaw <7e9wc56emjakcm@s.rendaw.me> writes:
> On 4/23/19 1:10 AM, Ricardo Wurmus wrote:
>> rendaw <7e9wc56emjakcm@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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-04-22 17:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-21 13:44 bug#35359: docker-image produces corrupt tar rendaw
2019-04-21 20:35 ` Ludovic Courtès
2019-04-22 11:55 ` rendaw
2019-04-22 12:06 ` Ricardo Wurmus
2019-04-22 14:35 ` rendaw
2019-04-22 16:10 ` Ricardo Wurmus
2019-04-22 16:53 ` rendaw
2019-04-22 17:12 ` Ricardo Wurmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.