Another GitLab FOSS/CE issue today, this one occurred when pushing a large image (1.5 GB) to my self-hosted GitLab’s container registry.

...
8d54056fe8e1: Retrying in 6 seconds
8d54056fe8e1: Retrying in 5 seconds
8d54056fe8e1: Retrying in 4 seconds
8d54056fe8e1: Retrying in 3 seconds
8d54056fe8e1: Retrying in 2 seconds
8d54056fe8e1: Retrying in 1 second
received unexpected HTTP status: 500 Internal Server Error

The key factor here is my GitLab registry domain (registry.quinncasey.com) is behind a Cloudflare proxied CNAME.

Fix

This seems to have occurred because Cloudflare limits HTTP POST requests to 100MB for freeloaders like me. However even capital E Enterprise users only get 500MB, which also would have triggered this issue.

Turn off Cloudflare proxy for your registry domain. If, like me, you use a wildcard for all subdomains (*.quinncasey.com), add another CNAME record for just the registry and toggle off the cloud icon.

There might be another way around this without exposing your IP but I haven’t found it yet and this works just fine.