build icon indicating copy to clipboard operation
build copied to clipboard

BUG: run: extracttar error: exit status 1, output: error extracting tar

Open Andrei-Pozolotin opened this issue 9 years ago • 6 comments

  1. in a test, we have 3 linearly dependent images:

image/test-1

acbuild ...

image/test-2

acbuild dep add image/test-1
acbuild ...

image/test-3

acbuild dep add image/test-2
acbuild ...
  1. when each image is small, build for all of them works fine

  2. when each image size gets to some 100 MB (individually, compressed), the following error starts to occur during image/test-3 build, after image/test-2 download:

run: extracttar error: exit status 1, output: error extracting tar
  1. the only apparent breaking point trigger is adding more packages to the image, not clear why: https://github.com/appc/acbuild/blob/master/vendor/github.com/coreos/rkt/pkg/tar/chroot.go#L89

  2. the following workaround makes the build work again:

image/test-3

acbuild dep add image/test-1
acbuild dep add image/test-2
acbuild ...
  1. but that does not scale due to lack of cache https://github.com/appc/acbuild/issues/125

  2. using release https://github.com/appc/acbuild/releases/tag/v0.3.1

Andrei-Pozolotin avatar Jul 17 '16 16:07 Andrei-Pozolotin

Sorry about the slow responses, currently in the middle of some other work.

Unless you're able to make an acbuild script that can reproduce this, that tar error is nowhere near descriptive enough for me to start hunting around as to what is causing this. I threw together a little patch to get acbuild to always print the full details for tar errors, would you be willing to run this patch on your system and share the output?

cgonyeo avatar Jul 22 '16 23:07 cgonyeo

  1. thank you for the PR

  2. patch did not help, still same error run: extracttar error: exit status 1, output: error extracting tar

  3. I will try to produce build script decoupled from internal dependencies

  4. please bake version/branch/tag into acbuild - its easy to get lost in patches

Andrei-Pozolotin avatar Jul 24 '16 18:07 Andrei-Pozolotin

The patch didn't work? That's really interesting...

As far as baking version/branch/tag into acbuild, at the very least acbuild version should report the most recent tag + a commit hash (assuming you're building with the build tag). Would adding branch information also be useful there?

cgonyeo avatar Jul 25 '16 18:07 cgonyeo

Experiencing the same issue. acbuild version v0.4.0 appc version 0.8.5

sanicheev avatar Apr 02 '17 12:04 sanicheev

@sanicheev would you be able to share more information about your setup? If I can reproduce this, I might be able to fix it.

Things that might be useful:

  • distribution
  • filesystem
  • are you using a release from github, or did you build it yourself?
  • if you built it yourself, golang version?
  • would you be willing to share your build script?

cgonyeo avatar Apr 03 '17 09:04 cgonyeo

hello - Is there an issue with size of files that go into build "acbuild dep add filename.tar" . I have a big file filename.tar/10GB that goes as part of that. I noticed acbuild completes successfully but during the time of rkt run image I get following error: rkt --debug --insecure-options=image run --interactive sas94m5-linux-amd64.aci image: using image from local store for image name coreos.com/rkt/stage1-coreos:1.29.0 image: using image from file /usr/lib/rkt/stage1-images/stage1-coreos.aci image: using image from file /opt/rkt_images/sas94m5-linux-amd64.aci run: └─error rendering tree store └─cannot render aci └─error extracting ACI └─extracttar error: exit status 254, output: error extracting tar:

Sudhir Nallagangu

nallagangus avatar Mar 13 '18 15:03 nallagangus