Skip to content

Caching issue with nginx causes freeze and high CPU usage #183

@ViRb3

Description

@ViRb3

Bug description

There seems to be a cache issue between this project and nginx, causing freeze and high CPU usage.

How to Reproduce

Method 1

  1. Go to any image
  2. Click the 'History' button of any tag
  3. Click the back/left arrow of the UI to go back
  4. Repeat this a few times, usually once is enough

Method 2

  1. Go to any image
  2. Delete any tag
  3. Refresh the page

In both cases, the tag that was operated on will show '?' on each column, the UI will become completely unresponsive (freeze), and the browser will clog one CPU core to 100%. I discovered that if I clear the cache, the problem always goes away until it is reproduced again via one of the methods above. In my nginx reverse proxy, I added the following as a workaround:

    add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';

System information

  • OS: Ubuntu 20.04
  • Browser:
    • Name: Brave
    • Version: 1.23.75, Chromium 90.0.4430.93
  • Docker registry UI:
    • Version: 2.0.0
    • Server: Docker
  • Docker:
    • Docker version: 19.03.8
    • Docker registry ui tag: 2.0
    • OS/Arch: linux/arm64
    • Tools: docker-compose

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions