502 Bad Gateway error when pulling images from mirror registry for Red Hat OpenShift

Solution Verified - Updated -

Issue

  • Pulling an image from the mirror registry fails with 502 Bad Gateway error.
  • FileNotFoundError: [Errno 2] No such file or directory error when pulling an image from mirror registry:

    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout | 2024-07-03 08:32:03,186 [186] [ERROR] [gunicorn.error] Socket error processing request.
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout | Traceback (most recent call last):
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base_async.py", line 65, in handle
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     util.reraise(*sys.exc_info())
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/usr/local/lib/python3.9/site-packages/gunicorn/util.py", line 626, in reraise
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     raise value
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base_async.py", line 55, in handle
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     self.handle_request(listener_name, req, client, addr)
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     super().handle_request(listener_name, req, sock, addr)
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base_async.py", line 130, in handle_request
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     util.reraise(*sys.exc_info())
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/usr/local/lib/python3.9/site-packages/gunicorn/util.py", line 626, in reraise
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     raise value
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base_async.py", line 115, in handle_request
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     for item in respiter:
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/usr/local/lib/python3.9/site-packages/werkzeug/wsgi.py", line 506, in __next__
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     return self._next()
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/usr/local/lib/python3.9/site-packages/werkzeug/wrappers/base_response.py", line 45, in _iter_encoded
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     for item in iterable:
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |   File "/quay-registry/storage/local.py", line 42, in stream_read
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout |     with open(path, mode="rb") as f:
    Jul 03 14:02:03 registry.example.com podman[225346]: gunicorn-registry stdout | FileNotFoundError: [Errno 2] No such file or directory: '/datastorage/sha256/12/08aad1fc6695fe75b1ba328092e16310a7276a8dee5134c567095f96835230a4'
    

Environment

  • mirror registry for Red Hat OpenShift
    • 1
  • Red Hat Enterprise Linux (RHEL)
    • 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content