Troubleshooting VSS backup failed with error "find_and_set_instance_id failed"

Troubleshooting VSS backup failed with error "find_and_set_instance_id failed"

Issue

Application consistent backup and VSS are enabled on the agent, but the backup keeps failing.

Symptoms

  • In the Agents page, the “Last Heard from” status shows as “Never”.
  • The CPM agent error file contains an error similar to the following error:
    2024-10-28 07:40:52,924:[3168] ERROR:  run_main(remote_agent.pyo:319)  find_and_set_instance_id failed!, exiting
    

Resolution Steps

  1. Verify Instance Metadata Options in AWS Console

    • Go to the AWS Console and navigate to the EC2 instance in question.
    • Select the instance.
    • Go to Actions > Instance settings > Modify instance metadata options.

    • Ensure that the metadata options are enabled.

  2. Check Metadata Access from the Instance

  3. Reset Metadata Routes if Access Fails

    • If the command fails to return the instance ID, reset the routes for metadata access.

Additional Notes

  • Ensure that the instance has the necessary permissions to access the metadata service.
  • Verify network configurations and security group settings to ensure they allow metadata access.

By following these steps, you should be able to resolve the issue with the application consistent backup failures. If the problem persists, consider reaching out to AWS support for further assistance.