Skip to content

Oras pull randomly hangs #214

@kosciCZ

Description

@kosciCZ

I've been hitting a bug that is randomly occurring when pulling large OCI artifacts from the quay.io registry. I cannot provide a reliable reproducer, because I haven't been able to narrow it down, but here's the process:

  1. Prepare a big file in quay.io - 850MiB zip file as an OCI artifact is what I'm using
  2. Pull using python oras API
import oras.client
client = oras.client.OrasClient(insecure=False, tls_verify=True)
client.login(username="USERNAME, password="PASSWORD")
client.pull("quay.io:/org/image:tag", outdir="/tmp")

Sometimes this goes fine (I get ~30 secs pull time) and sometime it will hang indefinitely. When I observe the file while the pull hangs, it will grow up to a point (roughly halfway through, but not a consistent size) and then stay that partial size indefinitely. My guess is that the connection brakes at some point, in which case it should be properly error handled. Or maybe it's the chunk size? Not sure.

I've also turned on all possible debug loggers I could think of (oras, requests, urllib3), and nothing seems to error out at any level.

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