Skip to content

Issue: invalid tar header #79

@sasasalamon

Description

@sasasalamon

Expected Behavior

xray --target redis:latest

  • outputs the xray report

Actual Behavior

xray --target redis:latest

cmd=xray state=started
cmd=xray info=cmd.input.params add-image-config='false' rm-file-artifacts='false' runtime='auto/docker' target='redis:latest' add-image-manifest='false'
cmd=xray state=image.api.inspection.start
cmd=xray info=image id='sha256:0e69d581912e77276656022e2a7f2d51bf25859a8f3792f1bf0f4be632754801' size.bytes='45872351' size.human='46 MB' architecture='arm64'
cmd=xray info=image.stack message='see report file for details' index='0' name='redis:latest' id='sha256:0e69d581912e77276656022e2a7f2d51bf25859a8f3792f1bf0f4be632754801' instructions='17'
cmd=xray info=image.exposed_ports list='6379/tcp'
cmd=xray state=image.api.inspection.done
cmd=xray state=image.data.inspection.start
cmd=xray info=image.data.inspection.save.image.start
cmd=xray info=image.data.inspection.save.image.end
cmd=xray info=image.data.inspection.process.image.start
time="2024-10-29T07:54:08+01:00" level=error msg="layerFromStream: error reading layer(3aa9d59b5200d674db402a6a1dfd41c4184709896126e5a9254d8683d33f30c2) - archive/tar: invalid tar header"
time="2024-10-29T07:54:08+01:00" level=error msg="dockerimage.LoadPackage: error reading oci layer from archive(/xxx/docker-slim-mint/dist_mac_m1/.mint-state/images/0e69d581912e77276656022e2a7f2d51bf25859a8f3792f1bf0f4be632754801/image/0e69d581912e77276656022e2a7f2d51bf25859a8f3792f1bf0f4be632754801.tar/blobs/sha256/3aa9d59b5200d674db402a6a1dfd41c4184709896126e5a9254d8683d33f30c2) - archive/tar: invalid tar header"
time="2024-10-29T07:54:08+01:00" level=fatal msg="slim: failure" error="archive/tar: invalid tar header" stack="goroutine 1 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:26 +0x64\ngithub.com/mintoolkit/mint/pkg/util/errutil.FailOn({0x107183bc8, 0x1087598e0})\n\tgithub.com/mintoolkit/mint/pkg/util/errutil/errutil.go:32 +0x38\ngithub.com/mintoolkit/mint/pkg/app/master/command/xray.OnCommand(0x140007d7340, 0x14000602780, 0x140007d6e08, {0x14000121f10, 0xc}, 0x1, {0x0, 0x0}, {0x0, 0x0}, ...)\n\tgithub.com/mintoolkit/mint/pkg/app/master/command/xray/handler.go:495 +0x30f8\ngithub.com/mintoolkit/mint/pkg/app/master/command/xray.init.func1(0x14000245d00)\n\tgithub.com/mintoolkit/mint/pkg/app/master/command/xray/cli.go:343 +0x17d4\ngithub.com/urfave/cli/v2.(*Command).Run(0x108797980, 0x14000245d00, {0x140002ada10, 0x3, 0x3})\n\tgithub.com/urfave/cli/v2@v2.27.1/command.go:279 +0x600\ngithub.com/urfave/cli/v2.(*Command).Run(0x1400060b760, 0x140002456c0, {0x14000245640, 0x4, 0x4})\n\tgithub.com/urfave/cli/v2@v2.27.1/command.go:272 +0x83c\ngithub.com/urfave/cli/v2.(*App).RunContext(0x140000db400, {0x1071adae8, 0x108819dc0}, {0x14000245640, 0x4, 0x4})\n\tgithub.com/urfave/cli/v2@v2.27.1/app.go:337 +0x514\ngithub.com/urfave/cli/v2.(*App).Run(...)\n\tgithub.com/urfave/cli/v2@v2.27.1/app.go:311\ngithub.com/mintoolkit/mint/pkg/app/master/command.(*InteractiveApp).execute(0x140004b2180, {0x1400048f1e0?, 0x1?})\n\tgithub.com/mintoolkit/mint/pkg/app/master/command/cliprompt.go:98 +0x36c\ngithub.com/c-bata/go-prompt.(*Prompt).Run(0x14000692300)\n\tgithub.com/c-bata/go-prompt@v0.2.3/prompt.go:85 +0x6d4\ngithub.com/mintoolkit/mint/pkg/app/master/command.(*InteractiveApp).Run(...)\n\tgithub.com/mintoolkit/mint/pkg/app/master/command/cliprompt.go:271\ngithub.com/mintoolkit/mint/pkg/app/master.newCLI.func4(0x14000244980?)\n\tgithub.com/mintoolkit/mint/pkg/app/master/cli.go:194 +0xac\ngithub.com/urfave/cli/v2.(*Command).Run(0x1400060a580, 0x14000244980, {0x1400010e160, 0x1, 0x1})\n\tgithub.com/urfave/cli/v2@v2.27.1/command.go:279 +0x600\ngithub.com/urfave/cli/v2.(*App).RunContext(0x140000db400, {0x1071adae8, 0x108819dc0}, {0x1400010e160, 0x1, 0x1})\n\tgithub.com/urfave/cli/v2@v2.27.1/app.go:337 +0x514\ngithub.com/urfave/cli/v2.(*App).Run(...)\n\tgithub.com/urfave/cli/v2@v2.27.1/app.go:311\ngithub.com/mintoolkit/mint/pkg/app/master.Run()\n\tgithub.com/mintoolkit/mint/pkg/app/master/app.go:15 +0x4c\nmain.main()\n\tgithub.com/mintoolkit/mint/cmd/mint/main.go:15 +0x194\n" version="darwin/arm64|Aurora|1.41.7|a2a53d2348aeedf0d650d47debf477a2cad47111|2024-09-25_03:14:07PM"

Steps to Reproduce the Problem


Specifications

  • Version: mint version darwin/amd64|Aurora|1.41.6|53e8072bb239bc3cad5b26a14f3ab8b678db0c9a|2024-08-25_12:53:40AM
  • Platform:
    Client:
    Version: 27.2.0
    Context: desktop-linux
    Debug Mode: false
    Server:
    Server Version: 27.2.0
    Storage Driver: overlayfs
    driver-type: io.containerd.snapshotter.v1
    Runtimes: io.containerd.runc.v2 runc
    Default Runtime: runc
    Init Binary: docker-init
    containerd version: 8fc6bcff51318944179630522a095cc9dbf9f353
    runc version: v1.1.13-0-g58aa920
    init version: de40ad0
    Security Options:
    seccomp
    Profile: unconfined
    cgroupns
    Kernel Version: 6.10.4-linuxkit
    Operating System: Docker Desktop
    OSType: linux
    Architecture: aarch64
    Name: docker-desktop
    Docker Root Dir: /var/lib/docker
    Debug Mode: false
    HTTP Proxy: http.docker.internal:3128
    HTTPS Proxy: http.docker.internal:3128
    No Proxy: hubproxy.docker.internal
    Experimental: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions