Repository: ollama
Issue: Unable to push: 502 Bad Gateway
Labels: bug,networking

CLI:
```
Error: max retries exceeded: http status 502 Bad Gateway: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InternalError</Code><Message>We encountered an internal connectivity issue. Please try again.</Message></Error>
```

Log excerpt:
```
2024/01/19 15:06:25 upload.go:268: 8b5770ff65e7 part 15 attempt 2 failed: http status 502 Bad Gateway: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
, retrying in 4s
2024/01/19 15:06:25 upload.go:268: 8b5770ff65e7 part 27 attempt 1 failed: Put "https://dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com/ollama/docker/registry/v2/repositories/olafgeibig/neuralbeagle14/_uploads/71ccdd2d-1df5-427c-a47e-0336116f6d36/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=66040c77ac1b787c3af820529859349a%2F20240119%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20240119T140540Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&partNumber=28&uploadId=AD3DIyDomRmwHs4yel2vHgQoQv_q5TNC8C5kR8nIqa4F2ZvUSA5nedmmMGzj2Kbb2_Z9uVR7hGLLCBYhqA60HOmaQpQBwih3cDQrt6sEzV4xhSX9wR2lK9ufShFf_kUxapuJbrnt1WKBshhGO_dSLeZyMWnS8TXZEsKwg_nGBrDXUXWW9Wzx2bt4E0CLLpaJFcNaH7PeLiL1rNZYCUYjFT-KKtmCiwFwJAX9ACb_IyZQAEQcQYhWb3Roigy1ru2eQps624gxkuZscCNBCtqqaPYZmzatUD7moRyytzJXpTYqqv2uTEGinOD0uUXuHkT7vsRzwpefEfjHWr7faftIwS8&X-Amz-Signature=60121f8d44aff8e6e97c82531b6301f9b0ba595053da9fc17e7da44a3e794997": write tcp [2003:fc:d703:f400:dcdd:9b3:23c8:d35d]:51090->[2606:4700::6812:95a]:443: write: broken pipe, retrying in 2s
2024/01/19 15:06:26 upload.go:268: 8b5770ff65e7 part 29 attempt 1 failed: http status 502 Bad Gateway: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InternalError</Code><Message>We encountered an internal connectivity issue. Please try again.</Message></Error>, retrying in 2s
2024/01/19 15:06:26 upload.go:268: 8b5770ff65e7 part 46 attempt 0 failed: http status 502 Bad Gateway: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InternalError</Code><Message>We encountered an internal connectivity issue. Please try again.</Message></Error>, retrying in 1s
2024/01/19 15:06:28 upload.go:268: 8b5770ff65e7 part 17 attempt 1 failed: http status 502 Bad Gateway: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
, retrying in 2s
2024/01/19 15:06:29 upload.go:268: 8b5770ff65e7 part 21 attempt 2 failed: http status 502 Bad Gateway: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
, retrying in 4s
2024/01/19 15:06:29 upload.go:268: 8b5770ff65e7 part 36 attempt 1 failed: http status 502 Bad Gateway: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InternalError</Code><Message>We encountered an internal connectivity issue. Please try again.</Message></Error>, retrying in 2s
2024/01/19 15:06:30 upload.go:268: 8b5770ff65e7 part 32 attempt 1 failed: Put "https://dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com/ollama/docker/registry/v2/repositories/olafgeibig/neuralbeagle14/_uploads/71ccdd2d-1df5-427c-a47e-0336116f6d36/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=66040c77ac1b787c3af820529859349a%2F20240119%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20240119T140548Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&partNumber=33&uploadId=AG89I7897734mBeKpPOCcPpfst0ffH-JN0e51MIBKt61RgE0Y04JjO1aEf-GfJ5_HzNOft2o5GxTrGRtydY7QSpp0nTCe4xBEOMOKJtP-533BNLZB4eXwwjdJYPdjnGR9cEbQhDpKcVBgI1EyZd4OA3tHoWdPNxR_LfhsbWCw93noq80CNiHV7a9xd4N9J6FE_-t6Tw2_zFE_DhEA4wYDCieek0O32djyLhkQ7GsUvmpUhE97p5X76b_VE5QLbZVJdzlJtijuOk7rz3hSmHR2JCHlUhZO2YhfUYCHKtJw8kSGi-eao9g9h5WPebdDQLicjkEUEm7oUntQbP0XS_KV4E&X-Amz-Signature=92e0d2533f96ee39e2cbb846157da858fc4d088d62d020db576b7772ad3b2257": write tcp 192.168.2.107:51102->104.18.8.90:443: write: broken pipe, retrying in 2s
2024/01/19 15:06:30 images.go:965: error uploading blob: context canceled
[GIN] 2024/01/19 - 15:06:30 | 200 |         1m30s |       127.0.0.1 | POST     "/api/push"
```