opencontainers / artifacts

OCI Artifacts
https://opencontainers.org
Apache License 2.0
224 stars 54 forks source link

Unable to upload 9gb vhd as an artifact to ACR #55

Closed somahanta closed 2 years ago

somahanta commented 2 years ago

Hi, I am trying to push a VHD file as an oci artifact to azure container registry using oras push command. The file size is 9gb approx and I'm seeing the following error:

Preparing vhdfilename.vhd Uploading 2fff39d3fd1a vhdfilename.vhd time="2022-06-01T12:59:21+05:30" level=warning msg="reference for unknown type: application/vnd.unknown.config.v1+vhd" digest="sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" mediatype=application/vnd.unknown.config.v1+vhd size=0 time="2022-06-01T12:59:21+05:30" level=warning msg="reference for unknown type: application/vnd.oci.image.config.v1+vhd" digest="sha256:2fff39d3fd1a01c5fb6287dc5f62e08b87f78ef32da0f5264821cd8b30e7f4c4" mediatype=application/vnd.oci.image.config.v1+vhd size=10000269824 Error: failed to copy: failed to do request: Put "_https://somahantaregistry.azurecr.io/v2/images/vhdimagename/blobs/uploads/a064371b-522c-444e-a1c9-7a4d49d1189d?_nouploadcache=false&_state=HwNK2cj-sTQ_eOUO1LwCqyS4N_JMBTMKmNFsV8nJzXt7Ik5hbWUiOiJpbWFnZXMvc2ltcGx2bWltYWdlIiwiVVVJRCI6ImEwNjQzNzFiLTUyMmMtNDQ0ZS1hMWM5LTdhNGQ0OWQxMTg5ZCIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyMi0wNi0wMVQwNzoyOTozMC4wMDUyMzQxNzRaIn0%3D&digest=sha256%3A2fff39d3fd1a01c5fb6287dc5f62e08b87f78ef32da0f5264821cd8b30e7f4c4": write tcp 192.168.29.71:51899->52.168.114.2:443: wsasend: An existing connection was forcibly closed by the remote host._

Just FYI, to check if I'm doing something wrong, I tried pushing another VHD file of approx. 500Mb size using same command (just changed the filename), and was successfully able to push and pull it as well.

I am not able to understand why I am not able to push the bigger file.

Thanks

SteveLasker commented 2 years ago

Hi @somahanta, you're likely hitting layer size constraints, which are registry implementation specific. To best support the issue above, can you open an ACR support ticket to followup: https://aka.ms/acr/support/create-ticket

I'm going to close this issue, as it's not related to OCI Artifacts, rather registry specific implementations.