Skip to content

ERROR download task failed: status: Internal, messagge: "invalid content length" #4366

@zhantanfeng

Description

@zhantanfeng

Bug report:

ERROR download task failed: status: Internal, messagge: "invalid content length", details: [], metadata:MetadataMap { headers: {"content-type": "application/grpc", "date": "Sat, 11 Oct 2025 07:09:32 GMT", "content-length": "0"}"}

Image

Expected behavior:

The download image should have been downloaded back to the source, but the task creation failed, resulting in not being downloaded from Dragonfly

How to reproduce it:

Environment:

  • Dragonfly version: v0.2.19
  • OS: Ubuntu 22.04 LTS
  • Kernel (e.g. uname -a): 5.15.0-89-generic Feature/dfget daemon boot #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • Others:
    client-cm:
    dfdaemon.yaml: |-
    host:
    idc: ""
    location: ""
    server:
    cacheDir: /var/cache/dragonfly/dfdaemon/
    pluginDir: /var/lib/dragonfly/plugins/dfdaemon/
    download:
    concurrentPieceCount: 16
    pieceTimeout: 30s
    rateLimit: 50GiB
    server:
    requestRateLimit: 4000
    socketPath: /var/run/dragonfly/dfdaemon.sock
    upload:
    disableShared: false
    rateLimit: 50GiB
    server:
    port: 4000
    requestRateLimit: 4000
    manager:
    addr: http://dragonfly-manager.dragonfly-system.svc.x86test.shzhisuan.local:65003
    scheduler:
    announceInterval: 5m
    enableBackToSource: true
    maxScheduleCount: 5
    scheduleTimeout: 30s
    dynconfig:
    refreshInterval: 5m
    storage:
    dir: /var/lib/dragonfly/
    keep: true
    readBufferSize: 4194304
    writeBufferSize: 4194304
    gc:
    interval: 900s
    policy:
    distHighThresholdPercent: 80
    distLowThresholdPercent: 60
    taskTTL: 168h
    proxy:
    disableBackToSource: false
    prefetch: true
    prefetchRateLimit: 5GiB
    readBufferSize: 4194304
    registryMirror:
    addr: https://registry.x86test.shzhisuan.com
    rules:
    - regex: .*
    server:
    port: 4001
    health:
    server:
    port: 4003
    metrics:
    server:
    port: 4002
    stats:
    server:
    port: 4004

harbor: registry-cm
s3:
region: ***
bucket: registry
regionendpoint: http://***:8060
cache:
layerinfo: redis
maintenance:
uploadpurging:
enabled: false
delete:
enabled: true
redirect:
disable: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions