Error: "class com.vmware.vcloud.common.network.NsxAlbApiException" when viewing AVI Load Balancer virtual service logs in VMware Cloud Director
search cancel

Error: "class com.vmware.vcloud.common.network.NsxAlbApiException" when viewing AVI Load Balancer virtual service logs in VMware Cloud Director

book

Article ID: 439309

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • While attempting to view AVI Load Balancer logs in VMware Cloud Director (VCD), complete logs are not displayed. When accessing older logs, the operation fails with the following exception:

  • Browser developer logs show an internal server error similar to:

"cookies": [],
          "content": {
            "size": 13942,
            "mimeType": "application/json",
            "compression": -13,
            "text": "{\"minorErrorCode\":\"INTERNAL_SERVER_ERROR\",\"message\":\"[ #########-####-####-####-########] class com.vmware.vcloud.common.network.NsxAlbApiException\",\"stackTrace\":\"com.vmware.vcloud.common.network.NsxAlbApiException\\n\\tat com.vmware.vcloud.fabric.net.nsxalb.NsxAlbRestTemplateErrorHandler.handleError(NsxAlbRestTemplateErrorHandler.java:46)\\n\\tat org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)\\n\\tat 

Environment

VMware Cloud Director 10.x

Cause

The error is caused by an expired or invalid authentication session/credentials between VMware Cloud Director and the AVI (NSX Advanced Load Balancer) controller, leading to API failures (NsxAlbApiException) when fetching logs beyond cached data.

Resolution

 

Re-authenticate the AVI Load Balancer controller within VMware Cloud Director:

  1. Log in to the VMware Cloud Director Provider Portal as a System Administrator.
  2. Navigate to Infrastructure Resources from the top navigation menu.
  3. In the left pane, under NSX-T ALB, select Controllers.
  4. Select the target AVI Controller from the inventory list and click Edit.
  5. Re-enter the admin credentials for the AVI Controller and click Save.
  6. Verify the controller status and version display correctly in the VCD UI.