Skip to main content


 

 

How can we help you?

 

Druva Documentation

Nutanix VM backup fails with error AHV48 “Nutanix AHV API service not available”

Heads up!

We've transitioned to a new documentation portal to serve you better. Access the latest content by clicking here.

 

Problem description

Nutanix VM backup fails with error AHV48 : “Nutanix AHV API service not available”

Cause

The Nutanix API call is failing during backup

Traceback

level=error ts=2023-10-31T14:10:43.050625746-04:00 filename=backup.go:316 message="Failed to get VM by UUID using V3" Error="Nutanix AHV API service not available"

level=info ts=2023-10-31T14:10:43.095485034-04:00 filename=job.go:89 message="Abort set" method=Abort error="Failed to prepare backup sources" msg="Nutanix AHV API service not available"

level=error ts=2023-10-31T14:10:43.050745977-04:00 filename=backup.go:263 message="Failed to init AHV State"
level=error ts=2023-10-31T14:10:43.050774441-04:00 stack="Nutanix AHV API service not available”

Verification

  1. Get the UUID of the VM for which the backup is failing. SSH to the CVM [cluster] and run the command 
    acli vm.list
    Reference : Listing VMs via CLI for importing into Excel
  2. Log on to the proxy and execute the command to fire Nutanix API's to get VM information
    curl -kX GET -u username:<Password> --header "Accept: application/json" "https://<prism central/element ip address>:9440/api/nutanix/v3/vms/<vm_uuid"
    Example :
    curl -kX GET -u test@abc.com:123456 --header "Accept: application/json" "https://192.168.1.2:9440/api/nutanix/v3/vms/dh8cfab1-a95a-406d-ba14-1f37ac4de5c"
  3. It will not return the VM information. Check the  /data/logs/aplos.out logs on prism element
    less /data/logs/aplos.out 
  4. It shows below error when above command is triggered from the proxy
    File "build/bdist.linux-x86_64/egg/aplos/intentgw/middlewares/authn_middleware.py", line 484, in authenticate_request
    File "build/bdist.linux-x86_64/egg/aplos/lib/auth/auth.py", line 98, in session_authenticate
    DsSearchError: Failed to get user with username test@abc.com from domain abc.com, error Invalid credentials for directory url: ldap://192.168.1.1

Resolution

  1. The LDAP account password is changed and not modified in Prism
  2. Follow the steps to update the LDAP account password in Prism
  3. Login to Prism central
  4. Click the settings button next to username at the top right hand corner
    2023-11-12 20_16_42-Nutanix VM backup fails with error “Nutanix AHV API service not available” - Goo.png
  5. Click “Authentication” in the left hand side pane
    2023-11-12 20_16_51-Nutanix VM backup fails with error “Nutanix AHV API service not available” - Goo.png
  6. Update the password for the LDAP account
    2023-11-12 20_17_04-Nutanix VM backup fails with error “Nutanix AHV API service not available” - Goo.png
  7. Once done, retry the curl command from the proxy and it should work
  8. Test a backup and it should complete successfully
  • Was this article helpful?