N2WS uses temporary EC2 worker instances for several operations (copy to S3, FLR, etc), In cases where a worker is failing before it could communicate with the main server, the logs will not be automatically copied to the main server. in such cases support may request logs directly from the EC2 worker instance.
These logs can be collected in two ways
- by setting termination protection on a running EC2 worker instance and SSH into it.
- Configure the server to retain worker or worker root volume of a failed worker
Option 1: Setting termination protection
If the issue is easy to reproduce, you can run the scenario, enable termination protection on the instance, connect to it and collect logs manually
Go to N2WS UI -> Worker Configuration, then make sure that the configuration for the relevant worker has a AWS SSH keyPair configured
If no Key Pair is configured, Select the relevant configuration, click on "Edit" and select a keyPair

Step 2: re-run scenario and enable termination protection
Rerun the scenario (worker test or Copy to S3 or File Level recovery), when the worker is launch enable termination protection on it from the AWS EC2 console
Wait for the scenario to fail and continue to next step.
Step 3: Connect to the worker instance & Collect logs
Connect to the worker instance with username ubuntu and the KeyPair you configured. you can use software such as MobaXterm which also allow to easily copy files out of the instance.
Collect the following from the instance:
- the entire folder: /var/log/cpm/
- file: /var/log/cloud-init-output.log
- file: /var/log/syslog.log
- file: /var/log/cloud-init.log
Step 4: Cleanup
- Disable the termination protection !!
- Terminate the worker
Option 2: Keep root volume or worker
If the issue is happening intermittent or you have many instances and not sure which worker is the relevant one, you can configure CPM to keep either the root volume of the worker or the entire worker.
Go to N2WS UI -> Worker Configuration, then make sure that the configuration for the relevant worker has a AWS SSH keyPair configured
3. when no backup is running, restart apache server: