Uploads of a library item to Content Library stuck at 0%
search cancel

Uploads of a library item to Content Library stuck at 0%

book

Article ID: 446205

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • The 'Upload files to a Library item' task progress remains stuck at 0% in the vCenter UI while Importing an item in the Content library. Navigate to Content Libraries> Import item on the vCenter server.



  • The task eventually fails or is aborted automatically.

  • Log entries are similar to below on the vcenter server:


/var/log/vmware/content-library/cls.log: 

<timestamp> DEBUG CLS 51 [vc@4413 threadName="cls-simple-activity-9" logger="CreateSessionActivity"] [activityId=c5d26d66-####-####-####-####] Created new session 13e6f9d3-####-####-####-####] for library item 12c74fce-####-####-####-####]
<timestamp> DEBUG CLS 58 [vc@4413 threadName="cls-simple-activity-16" logger="UpdateSessionServiceImpl"] [activityId=f6989b5f-####-####-####-####]] failing update session 13e6f9d3-####-####-####-####] with error message Unable to finish importing

/var/log/vmware/envoy/envoy-access.log:

<timestamp> info envoy[473774] [Originator@6876 sub=Default] PUT /cls/data/xxx/ISO 500 via_upstream - 120929ms -ms X.X.X.X:60925 5259440b -ms TLSv1.3 HTTP/2 1008+5190875b 207+424+0b gzip 2211b 0ms X.X.X.X:443 0ms 1 127.0.0.1:40570 5191947b  -ms - HTTP/1.1 976+5190875b 211+424+0b 909b 0ms 127.0.0.1:16666 - - -
<timestamp> info envoy[473774] [Originator@6876 sub=Default]  PUT /cls/data/xxx/ISO 500 via_upstream - 120511ms -ms X.X.X.X:60925 5226633b -ms TLSv1.3 HTTP/2 989+5190875b 207+424+0b gzip 2198b 0ms X.X.X.X:443 0ms 1 127.0.0.1:40106 5191928b  -ms - HTTP/1.1 976+5190875b 211+424+0b 909b 0ms 127.0.0.1:16666 - - -

Environment

vCenter 9.x

Cause

This issue is typically caused by stale or hung import sessions within the vmware-content-library service. These sessions occupy the available transfer threads, preventing new upload tasks from initializing and progressing beyond 0%.

Resolution

To resolve this issue, you must clear the stale sessions by restarting the Content Library service on the vCenter Server Appliance (VCSA).

1.Log in to the vCenter Server Appliance via SSH as root.

2.Restart the content library service by running the following command:

service-control --restart content-library

Once the service has successfully restarted, log back into the vSphere Client. Retry the upload or import task in the Content Library.

In case the issue persists raise a ticket with Broadcom Support

Additional Information

Import Items to a Content Library