vCenter Content Library sync fails with error "Timeout while searching folder for library"
search cancel

vCenter Content Library sync fails with error "Timeout while searching folder for library"

book

Article ID: 437105

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Subscribed Content Library synchronization fails within 60 seconds of initiation.

In the vSphere Client, the Sync task fails with the following error message: "A general runtime error occurred. An error occurred: java.util.concurrent.TimeoutException: Timeout while searching folder for library #####-####-####-####-######### on storage Datastore:datastore-#####:#####-####-####-####-########## after 60 seconds."  

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

vmware.content.library.item.updatesession.preview_info) => {
state = UNAVAILABLE,
certificateInfo = <null>,
warnings = <null>,
certChain = <null>
is set for session ######-####-####-####-#########

Cause

Service-Level Thread Exhaustion within the vmware-content-library service prevents it from completing. This occurs when stale or hung activity threads occupy the internal thread pool.

Resolution

Ensure to take the snapshot of the vCenter Snapshot Best practices for vCenter Server Virtual Machines

To resolve this issue, the Content Library service must be restarted to clear the hung activity threads.

  1. Log in to the Subscriber vCenter Server via SSH as a root user
  2. Restart the Content Library service: service-control --restart vmware-content-library
  3. Once the service is back online, manually trigger a synchronization:
    1. Navigate to Content Libraries > Subscribed Library.
    2. Select Actions > Synchronize.

Additional Information

Updating Content Library Configuration Settings in the vCenter Appliance

Failure Deploying OVF with Multiple Disks to vCenter