Error: "com.vmware.cl.clsp.exception.ClspLibraryNotFoundException: Catalog is not reachable. [404]" when attempting to sync a subscribed catalog
search cancel

Error: "com.vmware.cl.clsp.exception.ClspLibraryNotFoundException: Catalog is not reachable. [404]" when attempting to sync a subscribed catalog

book

Article ID: 425659

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Sync catalog tasks in the Cloud Director UI fail with an error like follows:

    com.vmware.cl.clsp.exception.ClspLibraryNotFoundException: Catalog is not reachable. [404]
    at com.vmware.cl.clsp.sync.RemoteClspEndpoint.handleError(RemoteClspEndpoint.java:197)
    at com.vmware.cl.clsp.sync.RemoteClspEndpoint.postProcessAndExecute(RemoteClspEndpoint.java:313)
    at com.vmware.cl.clsp.sync.RemoteClspEndpoint.getJson(RemoteClspEndpoint.java:136)
    at com.vmware.cl.SyncManager.syncLibraryTask(SyncManager. java:262)
    at com.vmware.cl.SyncManager.executeTask(SyncManager.java:423)

  • Attempts the modify the "Automatically download the content from an external catalog" toggle on a subscribed catalog fails with an error like follows:

    Subscription details for external catalog could not be validated. Reason [Err Code: RESOURCE_NOT_FOUND]: Catalog is not reachable:[404]

  • Within the Cloud Director log /opt/vmware/vcloud-director/logs/vcloud-container-debug.log you observed the following errors:

    ERROR    | pool-jetty-######         | HeaderElementBuilder           | Unable to retrieve property catalogContentSource.id from type com.vmware.vcloud.rest.openapi.model.VmAppTemplate: Null property value for 'catalogContentSource.id' on bean class 'class com.vmware.vcloud.rest.openapi.model.VmAppTemplate' 

Environment

VMware Cloud Director 10.6.1

Cause

This issue occurs if the subscribed catalog has an incorrect "Subscription URL" applied to it.

Resolution

To resolve this issue ensure the correct subscription url is applied on the subscribed catalog.

To do this:

  1. Login to tenant organization where the published catalog is located.
    1. Then navigate to Content Hub -> Catalogs to see all catalogs.
    2. Beside the published catalog click the vertical ellipsis (⋮) and select 'Configure publishing'.
    3. Within the modal window that appears confirm what is the expected 'Subscription url' and take note of it.
  2. Login to tenant organization where the subscribed catalog is located.
    1. Then navigate to Content Hub -> Catalogs to see all catalogs.
    2. Beside the subscribed catalog click the vertical ellipsis (⋮) and select 'Subscribe settings'.
    3. Within the modal window that appears enter the correct subscription url as identified in step 1c above.
    4. Click SAVE.

Catalog synchronization should automatically begin once the correct subscription url is applied. If it doesn't then manually click the 'sync' button.