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:

  1. v4.2.1: Patch for v4.2.1 is available and attached to this KB. 
  2. v4.2.0: Upgrade to 4.2.1 and apply the patch
    • 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-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 ...
    • 4.1.1a Fix pack

      Issue: This patch bundle include the following fixes. N2WS-21693 - Enable modification to Preserve Tags checkbox on root volumes N2WS-21639 - Recovery scenario doesn't restore the instance role of a backed up instance N2WS-21638 - After upgrade, ...
    • N2WS-18908 - backups are aborting due to an internal agent error.

      Issue: backups are aborting due to an internal agent error and the logs show the following: cpm_agent.log 2021-07-08 18:53:23,963:[140084355565376][----------] ERROR: <module>(cpmagent_upstart.py:27) Caught exception from run_main. Will crash now ...