Content Library Sync Failure (Error 500) on vSAN-backed Clusters
search cancel

Content Library Sync Failure (Error 500) on vSAN-backed Clusters

book

Article ID: 440557

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

When attempting to synchronize or delete a Subscribed Content Library backed by a vSAN datastore, the operation fails with the following symptoms:

  • The vSphere Client displays the error: Source error: Invalid response code: 500.
  • Tasks such as "Delete file" or "Move file" fail in the vCenter Recent Tasks pane.
  • Log entries in /var/log/vmware/content-library/cls.log or vCenter Event Logs may indicate file not found or A specified parameter was not correct when interacting with the storage backing.
  • Attempts to manually remove contentlib-xxx directories via ESXi SSH using osfs-rmdir return errors indicating the directory is not empty or the object is locked.

Environment

vCenter 8.x

Cause

This issue typically occurs when a vSAN cluster has been migrated from one vCenter Server to another.

vSAN datastores use Object Namespaces rather than a traditional file system. During a migration, the underlying vSAN datastore may retain legacy contentlib-xxx namespace objects and folders associated with the original vCenter environment. Because the new vCenter lacks the database references and permissions to manage these orphaned objects, the Content Library service cannot clean up or overwrite the existing directories, leading to an HTTP 500 (Internal Server Error).

Resolution

To restore Content Library functionality, you must bypass the orphaned objects by provisioning a new storage namespace.

Prerequisites

  • Verify the Publisher's Content Library is online and the Subscription URL is accessible.
  • Ensure you have administrative privileges in vCenter Server.

Step 1: Create a New Subscribed Library

  1. Log in to the vSphere Client.
  2. Navigate to Menu > Content Libraries.
  3. Click Create to launch the New Content Library wizard.
  4. Provide a unique Name (different from the failing library).
  5. Select Subscribed content library.
  6. Enter the Subscription URL from the original Publisher.
  7. Select the vsanDatastore as the storage backing.
  8. Complete the wizard and monitor the initial synchronization to ensure it reaches 100%.

Note: This process forces vCenter to create a brand-new vSAN namespace object, bypassing the locks on the orphaned migration folders.

Step 2: Cleanup of Stale UI Entries (Optional)

If the old library entry remains in the UI and cannot be deleted:

  1. Verify the new library is fully functional.
  2. Contact Broadcom Support for assistance with a manual object cleanup.
  3. A vSAN engineer will use the objtool utility via the ESXi CLI to forcefully remove the orphaned namespace objects associated with the old library ID.

Additional Information

Related Information: For issues regarding duplicate vSAN UUIDs in host profiles