Skip to content

Failure to fetch a helm chart with a docker://URL and analyze_docker_image #1675

Description

@pombredanne

See the failure trace:
input: docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0
pipeline: analyze_docker_image

analyze_docker_image
Analyze Docker images.
Run Failure
Exit code 1
Execution time 1 seconds
ScanCode.io version 34.11.0
Task ID b8ce4e61-e7a7-4e5a-b674-7aec8a9bb0b7
Created date 2025-05-22 09:10
Start date 2025-05-22 09:10
End date 2025-05-22 09:10
Run log

2025-05-22 07:10:27.645 Pipeline [analyze_docker_image] starting
2025-05-22 07:10:27.648 Step [download_missing_inputs] starting
2025-05-22 07:10:27.650 Fetching input from docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0
2025-05-22 07:10:29.553 docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0 could not be fetched.
2025-05-22 07:10:29.555 Pipeline failed

Task output

InputFilesError encountered with the following issues:

Error 1: Error while executing cmd="('/opt/scancodeio/.venv/lib/python3.12/site-packages/fetchcode_container/bin/skopeo', 'copy', '--insecure-policy', 'docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0', 'docker-archive:/tmp/tmpjioznenn/ghcr_io_mercedes_benz_sechub_helm_charts_pds_xray_1_4_0.tar')": "time="2025-05-22T07:10:29Z" level=fatal msg="Error creating an updated image manifest: Unknown media type during manifest conversion: \"application/vnd.cncf.helm.chart.content.v1.tar+gzip\"""

Traceback (most recent call last):
  File "/opt/scancodeio/scanpipe/pipelines/__init__.py", line 146, in download_missing_inputs
    input_source.fetch()
  File "/opt/scancodeio/scanpipe/models.py", line 1890, in fetch
    downloaded = fetch_url(url=self.download_url)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/scancodeio/scanpipe/pipes/fetch.py", line 390, in fetch_url
    downloaded = fetcher(url)
                 ^^^^^^^^^^^^
  File "/opt/scancodeio/scanpipe/pipes/fetch.py", line 321, in fetch_docker_image
    output = run_command_safely(cmd_args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/scancodeio/scanpipe/pipes/fetch.py", line 93, in run_command_safely
    raise subprocess.SubprocessError(error_msg)
subprocess.SubprocessError: Error while executing cmd="('/opt/scancodeio/.venv/lib/python3.12/site-packages/fetchcode_container/bin/skopeo', 'copy', '--insecure-policy', 'docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0', 'docker-archive:/tmp/tmpjioznenn/ghcr_io_mercedes_benz_sechub_helm_charts_pds_xray_1_4_0.tar')": "time="2025-05-22T07:10:29Z" level=fatal msg="Error creating an updated image manifest: Unknown media type during manifest conversion: \"application/vnd.cncf.helm.chart.content.v1.tar+gzip\"""


Traceback:
  File "/opt/scancodeio/aboutcode/pipeline/__init__.py", line 199, in execute
    step(self)
  File "/opt/scancodeio/scanpipe/pipelines/__init__.py", line 154, in download_missing_inputs
    raise InputFilesError(error_tracebacks)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions