N2WS-22811 - Backup fails with error "internal agent error"

N2WS-22811 - Backup fails with error "internal agent error"

Issue:

Backup fails with internal agent error in UI, because it fails to auto-remove terminated instances
There is this error in UI
Error - Backup is aborted due to an internal agent error

and this error in server logs
WARNING: run_snapshots(backup.py:2534) instance i-123456 doesn't exist anymore and will be removed from policy
ERROR: backup_function(backup.py:3231) Failing since backup function caught an exception for policy myPolicy , schedule Myschedule , retry: 0.
Traceback (most recent call last):
File "./cpmagent/aws/backup.py", line 3223, in backup_function
File "./cpmagent/aws/backup.py", line 3472, in backup_function_internal
File "./cpmagent/aws/backup.py", line 3597, in do_snapshots
File "./cpmagent/aws/backup.py", line 2560, in run_snapshots
TypeError: 'NoneType' object is not subscriptable

Solution:

Patch for v4.2.0 & v4.2.1 is available and attached to this KB. 

    • Related Articles

    • N2WS-22811 - Backup fails with error "internal agent error"

      Issue: Backup fails with internal agent error in UI, because it fails to auto-remove terminated instances There is this error in UI Error - Backup is aborted due to an internal agent error and this error in server logs WARNING: ...
    • Patch installation fails with Internal Server Error

      Issue: Patch installation fails with this error in the UI Solution: 1. Connect to the N2WS server via SSH, username is cpmuser and your selected keyPair 2. Run the following command sudo grep PrivateTmp /lib/systemd/system/apache2.service 3. If ...
    • N2WS-17820 - Volume DR fails with TypeError: %d format: a number is required, not str

      Issue: When doing cross region DR, it might fail with following error in the cpm_dr logs: 2021-03-02 00:13:04,123:[140450227709760] ERROR: dr_function(dr.py:164) DR function encountered an exception Traceback (most recent call last): ... ... ...
    • N2WS-19463 - SSM backup fails with ValueError

      Issue: During backup of an EC2 instance with SSM option enabled, agent might crash with following error in the cpm_agent.log: ERROR: backup_function(agent.py:2644) Failing since backup function caught an exception for policy policy_name, schedule ...
    • N2WS-22641 - Backup stuck in progress when permission missing

      Issue: When 'ec2:DescribeNetworkInterface' permission is missing, all backups get stuck in progress ERROR: create_instance_record(record_management.py:507) Could not get primary network interface info ( instance: i-12345678, NIC: eni-9876543). ...