All CPM operations may fail with the "Name or service not known" error
CPM operations may start failing with the following error in the logs:
ERROR: cleanup_function(.\cpmagent\agent.py:2543) could not delete AMI ami-87654321 in policy PolicyName.Reason: [Errno -2] Name or service not known (code: None)
ERROR: run_snapshots(.\cpmagent\agent.py:1130) (instance: i-12345678) could not get object from aws. Reason: [Errno -2] Name or service not known Exception: [Errno -2] Name or service not known
This means that there is a problem with either DNS name resolution to AWS services or a proxy refusing connections.
To test this outside of the CPM application itself, please connect to
the instance using SSH (username: cpmuser and your assigned private key)
and try this command:
wget https://aws.amazon.com/
This command must return a proper IP (as well as other information) to ensure CPM is able to communicate with Amazon Web Services.
If a proper IP is not returned, please check that DHCP options in VPC settings (or custom DHCP/DNS, if used) allow name resolution to Amazon Web Services.
Related Articles
Cross-account DR may fail with the "RequestLimitExceeded" error
The Cross-Account DR may fail with the following error in the Backup Log: Error,"Volume DR copy snapshot failed for region <Region Name>, snapshot snap-<Snapshot Number> (to DR account). Reason: Failed adding share permission to snapshot ...
IDP/SAML integration may fail with "Failed getting CPM public host name"
Description: If you have installed the base image of CPM 2.2.0 and started using IDP/SAML authentication, and have also configured a custom hostname URL for the IDP redirect, you may get a "Error 500" in your web browser when trying to connect. If ...
Error "Policy "Policy_Name" doesn't exist/attached to account" may be printed into CPM server log during the tag scanning operation
The following may be printed into the CPM server log during the tag scanning operation: ERROR: manage_account_tagged_resources(.\cpmserver\cpm\backup_tag.py:336) Policy_Name doesn't exist/attached to account To resolve: Find error in CPM server logs, ...
Backup of RDS may fail with the error “can not take snapshot, db is in stopped state" error
Backup of RDS may fail with the below error: "(database: >DB name>) can not take snapshot, db is in stopped state" This is due to an AWS limitation. AWS automatically backs up a stopped RDS, so there is no need for manual backups: ...
CPM IDP configuration may fail if CPM is configured with custom DNS
When CPM is used with a custom DNS (not AWS DNS or public IP), IDP configuration may fail with the following error in the logs: Failed getting CPM public host name. Exception: HTTP Error 404: Not Found If you face this issue, please upgrade to latest ...