Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

"Unexpected EOF" error when pulling images from VIC Appliance registry (77281)

Last Updated: 9/1/2023Categories: TroubleshootingTotal Views: 16181Language:
Chinese (Simplified)JapaneseEnglish

3 like this article

Subscribe to get an email
newsletter with new updates

3 people found this helpful Please provide article feedback:

Symptoms

When you try to pull any image from the VIC Appliance Harbor registry using a VCH (Virtual Container Host), you receive the following error:

root@PhotonJumpBox [ ~/vic ]# docker -H VCH_IP:2376 --tls pull VIC_APPLIANCE_FQDN/default-project/alpine
Using default tag: latest
latest: Pulling from default-project/alpine
e6b0cf9c0882: Pulling fs layer
a3ed95caeb02: Downloading [==================================================>]      32B/32B
default-project/alpine/cc327eed37d32c79a81925daeedce436c929741892ca53c4b6abbe19e03acf97 returned download failed: unexpected EOF

When you try to pull any image from dockerhub using a VCH, it works fine :

root@PhotonJumpBox [ ~/vic ]# docker -H 192.168.100.50:2376 --tls pull alpine
Using default tag: latest
latest: Pulling from library/alpine
c9b1b535fdd9: Pull complete
a3ed95caeb02: Pull complete
Digest: sha256:ddba4d27a7ffc3f86dd6c2f92041af252a1f23a8e742c90e6e1297bfa1bc0c45
Status: Downloaded newer image for library/alpine:latest

While using a Docker client, you can pull the images from VIC Appliance registry.

root@PhotonJumpBox [ ~/vic ]# docker pull vicappliance00.gsslabs.org/default-project/alpine
Using default tag: latest
latest: Pulling from default-project/alpine
e6b0cf9c0882: Pull complete
Digest: sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937e
Status: Downloaded newer image for vicappliance00.gsslabs.org/default-project/alpine:latest

In /var/log/vic/docker-personality.log on the VCH, you can see similar entries:

Feb 17 2020 15:46:04.908Z ERROR Fetch (https://VIC_APPLIANCE_FQDN/project/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4) to file failed to stream to file: unexpected EOF
Feb 17 2020 15:46:04.908Z DEBUG op=2308.200: [ END ] [VIC_APPLIANCE_FQDN/pkg/fetcher.(*URLFetcher).fetchToFile:324] [104.805863ms]
https://VIC_APPLIANCE_FQDN/project/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
Feb 17 2020 15:46:04.908Z DEBUG Error: download failed: unexpected EOF
Feb 17 2020 15:46:04.908Z DEBUG op=2308.199: [ END ] [VIC_APPLIANCE_FQDN/pkg/fetcher.(*URLFetcher).Fetch:138] [104.851519ms]
https://VIC_APPLIANCE_FQDN/project/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

You can access the VCH logs either using the VCH Admin page : https://VCH_IP:2378
Or you can enable SSH on the VCH, using the vic-machine-OS command line, using the following steps on the documentation below:

https://vmware.github.io/vic-product/assets/files/html/1.5/vic_vsphere_admin/vch_shell_access.html

Cause

This issue occurs when the VIC Appliance had the Garbage Collector enabled, and it has been rebooted.
At VIC Appliance boot time (or when restarting the Harbor service), the Garbage Collector deletes that layer from the File System, which is used for backward compatibility of Docker images, but not from its cache.
All the VCHs which will try to load new images from this registry will fail.

Resolution

To resolve this issue, we have to manually re-create that image layer, following steps below:

Download the attached file named "data.zip", from this KB article.

Unzip the file "data.zip"

Copy this file into the VIC Appliance, using your preferred tool (scp, WinSCP, etc...)

SSH onto the VIC Appliance using your preferred tool (ssh, PuTTY, etc...)

Check that the SHA256 checksum of the file matches the following :

root@vicappliance00 [ ~ ]# sha256sum data
a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4    data

Create the folder structure using:

mkdir -p /storage/data/harbor/registry/docker/registry/v2/blobs/sha256/a3/a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4

Move the file named data into the newly created folder

mv data /storage/data/harbor/registry/docker/registry/v2/blobs/sha256/a3/a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4

Workaround

Back up images from vSphere Integrated Container Appliance localy on a docker client

docker pull VIC_APPLIANCE_FQDN/PROJECT_NAME/IMAGE:TAG

Deploy new vSphere Integrated Container Appliance, and recreate all Projects, and different configurations

Push backed up images from Docker client to new vSphere Integrated Container Appliance

docker tag OLD_VIC_APPLIANCE_FQDN/PROJECT_NAME/IMAGE:TAG NEW_VIC_APPLIANCE_FQDN/PROJECT_NAME/IMAGE:TAG
docker push NEW_VIC_APPLIANCE_FQDN/PROJECT_NAME/IMAGE:TAG

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

data

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
vSAN 磁盘组磁盘显示 “使用中的磁盘” 为 0 (70634)

KB
•
Download and Install VMware Fusion (2014097)

Results 1-3 of 3

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere Integrated Containers

VMware vSphere

Related Versions:

VMware vSphere Integrated Containers 1.x

Take Our Survey

Support Assistant