Configuring Content Library Fails with Error “Not Authorized for the Requested Operation”
search cancel

Configuring Content Library Fails with Error “Not Authorized for the Requested Operation”

book

Article ID: 414995

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • When attempting to configure a Subscribed Content Library with Authentication enabled, the operation fails with the error: “Not Authorized for the requested operation.

  • This typically occurs when a local content library is created on one vCenter Server and then shared with another vCenter Server.

  • If Authentication is disabled, the subscribed content library configuration succeeds.

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

You may see entries similar to the following:

<YYYY-MM-DD>T<time></time> | ERROR    | mghmb36q-54398-auto-15z3-h5:70006255 | tomcat-http-15 | VcspClientImpl | error executing vcsp request GET https://<vCenter-IP>:443/cls/vcsp/lib/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/lib.json HTTP/1.1, status line is HTTP/1.1 401 Unauthorized
<YYYY-MM-DD>T<time></time> | ERROR    | mghmb36q-54398-auto-15z3-h5:70006255 | tomcat-http-15 | VcspClientImpl | Authorization for VCSP URL https://<vCenter-IP>:443/cls/vcsp/lib/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/lib.json failed.
com.vmware.cl.vcsp.exceptions.VcspNotAuthorizedException: Not authorized for the requested operation.
        at com.vmware.cl.vcsp.clients.impl.VcspClientImpl.handleError(VcspClientImpl.java:218) ~[cls-main-1.0.0.jar:?]
        at com.vmware.cl.vcsp.clients.impl.VcspClientImpl.postProcessAndExecute(VcspClientImpl.java:196) [cls-main-1.0.0.jar:?]


 

Environment

vCenter Server 8.x

Cause

This issue may occur due to the incorrect password provided for authentication.

Resolution

To resolve this issue, update the password in the Content Library settings in the source vCenter Serve

  • Update the password for configured Content Library in the source vCenter Server:

    Go to Home > Content Libraries > Select the Library > Actions > Edit and update the password.