Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jf scan failed to index tar file as container image #150

Open
chelyshev opened this issue Aug 20, 2024 · 0 comments
Open

jf scan failed to index tar file as container image #150

chelyshev opened this issue Aug 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chelyshev
Copy link

chelyshev commented Aug 20, 2024

Describe the bug

source: jfrog/jfrog-cli#2333

$ jf -v
jf version 2.63.2

Current behavior

$ jf s ./artifacts/images/registry_2.8.1.tar
18:09:33 [Info] JFrog Xray version is: 3.95.7
18:09:33 [Info] [Thread 2] Indexing file: ./artifacts/images/registry_2.8.1.tar
18:09:40 [Info] 2024/08/16 18:09:33 maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined
2024-08-16T18:09:37.334Z [jfxia] [WARN ] [] [docker_tar:74 ] [UnnamedContext ] Failed to index tar file as container image, continue to generic tar indexer. Error: failed to analyze docker tar archive
--- at /go/src/jfrog.com/xray/xray/backend/backend/indexer/indexer_core/docker_tar.go:134 (DockerTarOpener.analyzeTarAsContainer) ---
Caused by: failed to read manifest.json found in tar
--- at /go/src/jfrog.com/xray/xray/backend/backend/indexer/indexer_core/docker_tar.go:192 (DockerTarOpener.handleDockerManifestFile) ---
Caused by: manifest has no repo tags
--- at /go/src/jfrog.com/xray/xray/backend/backend/indexer/indexer_core/docker_tar.go:218 (prepareDockerManifestOnDemandData) ---
2024-08-16T18:09:37.354Z [jfxia] [INFO ] [] [extractor:185 ] [UnnamedContext ] Encountered release info file 'etc/alpine-release'
2024-08-16T18:09:37.355Z [jfxia] [INFO ] [] [extractor:185 ] [UnnamedContext ] Encountered release info file 'etc/os-release'
2024-08-16T18:09:40.177Z [jfxia] [INFO ] [] [archive_helper:61 ] [BackgroundContext ] SPDX license IDs from licenses.json and exceptions.json were loaded successfully
2024-08-16T18:09:40.445Z [jfxia] [INFO ] [] [golang:113 ] [UnnamedContext ] Couldn't get Go module component info: couldn't get go module name
18:09:40 [Info] Waiting for scan to complete on JFrog Xray...

Reproduction steps

$ skopeo copy --format v2s2 docker://registry:2.8.2 docker-archive:registry_2.8.1.tar
$ jf s registry_2.8.1.tar 

Expected behavior

No response

JFrog CLI-Security version

2.63.2

JFrog CLI version (if applicable)

2.63.2

Operating system type and version

ubuntu 24.04

JFrog Xray version

3.95.7

@chelyshev chelyshev added the bug Something isn't working label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant