

# Local console and offline troubleshooting

The backup appliance has a menu-driven local console. Use it to activate the appliance, configure networking, check the appliance's health, troubleshoot connectivity, and collect diagnostics for AWS Support. You can use the local console on appliances that run on Amazon EC2 (through EC2 Serial Console) and on VMware (through the VM console).

## Before you start
<a name="appliance-local-console-before"></a>

On Amazon EC2, complete the following before you connect:
+ Turn on EC2 Serial Console access for your account. It is off by default and is set per Region, so turn it on in each Region you use. In the Amazon EC2 console, go to **Dashboard**, **Account attributes**, **EC2 Serial Console**, **Manage**, select **Allow**, and choose **Update**.
+ Give your IAM role permission to start a serial console session. Your role needs `ec2-instance-connect:SendSerialConsoleSSHPublicKey` on the appliance instance. Administrator roles usually have this permission, unless a service control policy (SCP) or permission boundary denies it.
+ Confirm the appliance is a running, Nitro-based or bare-metal instance.

## Connect to the console
<a name="appliance-local-console-connect"></a>

How you open the console depends on where you deployed the appliance.

### On Amazon EC2
<a name="appliance-local-console-connect-ec2"></a>

1. In the Amazon EC2 console, select the appliance instance and choose **Connect**.

1. Open the **EC2 serial console** tab and choose **Connect**.

### On VMware
<a name="appliance-local-console-connect-vmware"></a>

Open the VM's console. In the vSphere Client, choose **Launch Web Console** or **Launch Remote Console**. In the ESXi Host Client, choose **Console**.

If the screen ever looks wrong, press **Ctrl\+R** to redraw it.

## Log in
<a name="appliance-local-console-login"></a>

When the console starts, for example after the appliance boots, it shows **Waiting for services...** and waits up to 7 minutes for the appliance services to start.

The only console account is `console-admin`, and the username is prefilled.

**Set a password.** If no password has been set yet, the console prompts you to set one before you can do anything else. The password must meet these rules:
+ Be 8 to 128 characters long
+ Contain both letters and numbers
+ Not match the username

Setting the password logs you in. Later sessions start at the login screen.

**Lockout.** Five failed attempts within 15 minutes lock the account for up to 15 minutes. A wrong current password on **Change password** also counts as a failed attempt.

**Session timeouts.** After you log in, you have 30 minutes to press your first key. From then on, the session ends after 10 minutes without a keypress. A session ends no more than 12 hours after login.

## Navigate the console
<a name="appliance-local-console-navigate"></a>

The console has a set of tabs along the top. The bottom bar lists the keys for the currently available actions. The most common keys are:


| Key | Action | 
| --- | --- | 
| Left and right arrows | Switch tabs. On a selector, change the value instead. | 
| Up and down arrows | Move through lists and form fields. | 
| Enter | Select or submit. | 
| Esc | Go back or cancel. | 
| Ctrl\+R | Redraw the screen. | 

On some edit screens, pressing **Esc** with unsaved changes asks whether to save (S) or discard (Esc).

The top-right corner of the header shows the appliance's state. Before activation, it shows **Not activated** or **Activating**. After activation, it shows **Connected** when every AWS endpoint is reachable, **Unreachable** when any endpoint is not, or **Status unknown** when it cannot tell.

## Activation tab
<a name="appliance-local-console-activation"></a>

If the appliance is not activated, you land on the **Activation** tab after you log in. The tab disappears once activation starts.

The activation form has these fields:
+ **Activation token.** Required.
+ **Region.** The AWS Region to activate in. Prefilled from the instance's Region when possible.
+ **HTTP proxy.** Optional. The value must start with `http://`; the port is optional. Do not include a username or password.
+ **PrivateLink endpoints.** Optional. If you reach AWS through VPC endpoints, enter the Regional VPC endpoint DNS name for each endpoint you use: `activation`, `edge`, `backup-external`, `backup-storage`, `kms`, `sqs`, `secretsmanager` and `s3`. Leave the rest blank, and press **Esc** to return. For the endpoints and how to create them, see [Network requirements and ports](appliance-network.md).

Set the HTTP proxy and PrivateLink endpoints before you activate. You cannot change them afterward.

To check the AWS endpoints before you activate, choose **Test connectivity**. It checks each AWS endpoint, using your HTTP proxy if you set one. Choose **Show details** to list each one. Then choose **Activate**. When activation is accepted, the console shows **Activation initiated** and the appliance begins activating.

If an endpoint fails, use the tools on the **Health** tab to find out why: **DNS lookup** confirms that each VPC endpoint name resolves to a private IP address, **Test port** checks that port 443 is reachable, and **Validate certificate** checks the endpoint's TLS certificate. Fix the network path before you activate, because you can't change the proxy or PrivateLink settings afterward.

Activation is complete when the header shows **Connected** and the Health tab shows a status of **Active**. The screen updates on its own. If activation fails, the console shows the error and keeps your entries so that you can retry.

For the full activation and registration procedure, see [Deploy a backup appliance](appliance-deploy.md).

## Health tab
<a name="appliance-local-console-health"></a>

After the appliance is activated, you land on the **Health** tab when you log in. The **Status** on this tab is the node's activation status. It isn't the node's or the appliance's health status. To see health status, use the AWS Backup console or the API. For details, see [Monitor appliance health](appliance-monitor.md).

The Health tab shows the following:
+ **System.** Identity, activation status, time sync, and certificate status. A certificate status of **OK** is normal. **Renewing**, **Pending commit**, and **Finalizing** are also normal during automatic renewal.
+ **Connectivity.** Whether the appliance can reach its AWS endpoints.

The System section shows the **Node ID** and **Group ID**. Include both values when you open a case with AWS Support.

The **Actions** on this tab are:
+ **Test connectivity.** Re-checks every AWS endpoint, using your HTTP proxy if you set one.
+ **Force time sync.** Syncs the clock with the configured NTP servers.
+ **Show connectivity details.** Lists each endpoint with its latency, or the reason it failed.

The **Troubleshooting** tools run on the appliance, so results reflect its network and DNS settings.


| Tool | What it does | 
| --- | --- | 
| Ping | Checks whether a host is reachable over ICMP or TCP (1 to 20 packets). TCP needs a port. | 
| DNS lookup | Resolves a hostname. You can optionally set the record type and nameserver. | 
| Test port | Checks whether a TCP or UDP port on a host is reachable and reports latency. UDP results need the service to reply. | 
| Validate certificate | Checks a host's TLS certificate: hostname match, expiry, chain, and whether it is self-signed. | 

## Network tab
<a name="appliance-local-console-network"></a>

Use the **Network** tab to view and change the appliance's network settings. The Configuration menu has these items:


| Item | What you can do | 
| --- | --- | 
| Interfaces | Add, update, or delete an interface; set the gateway and MTU; test connectivity to AWS endpoints. Don't change the IP address of an activated node or switch it to DHCP. The node disconnects from the cluster. | 
| DNS | Edit nameservers, search domains, and resolver options; flush the DNS cache. | 
| Hostname | Change the appliance's hostname. | 
| Firewall | View firewall status, open ports, and rules (read-only). | 
| Time | View sync status and edit NTP servers (primary, secondary, or pool); force a time sync. | 

Network changes apply immediately, with no undo. Double-check your entries before you submit.

## Support tab
<a name="appliance-local-console-support"></a>

Use the **Support** tab to collect diagnostics and run scripts from AWS Support. When you open a case, include the **Node ID** and **Group ID** from the Health tab.

The actions on this tab are:
+ **Collect diagnostics.** Choose a category (All, Network, Software, or Storage) and confirm the share CIDR, then wait for **Bundle ready** and copy the bundle to your machine.
+ **Upload signed script.** Opens an upload share. Copy the signed `.tar.gz` script from AWS Support into it, and leave the share open until you have run it.
+ **Execute signed script.** Lists scripts in open upload shares. Choose one to run it and see its exit code and output.
+ **Packet capture.** Captures traffic on one interface for 1 to 120 seconds. When it finishes, confirm the share CIDR to open a download share for the capture file.
+ **Set share CIDR.** Changes which IP range can mount shares.

### How temporary file shares work
<a name="appliance-local-console-support-shares"></a>

Actions that transfer files use a temporary NFS share. You mount it from a Linux machine (a transfer host) that can reach the appliance's private IP. On Amazon EC2, a small instance in the appliance's subnet works. On VMware, use a VM on the same network. Install NFS client tools on the transfer host, for example `sudo dnf install -y nfs-utils` on Amazon Linux. To move files between the transfer host and your workstation, use a method you already trust, such as an Amazon S3 bucket in your account or Session Manager. Diagnostic bundles and packet captures are shared read-only for you to download, and signed scripts are uploaded through a read-write share.

Only machines in the share CIDR can mount a share. Set it to your machine's IP, for example `10.0.1.25/32`. Forms show it as **Client CIDR**, and the console saves it for later actions.

The appliance's NFS server listens on TCP port **20490**, not the standard 2049. On Amazon EC2, allow inbound TCP 20490 from your machine in the instance's security group.

When a share is ready, the console shows its path. Run these commands on the transfer host, replacing {{appliance-ip}} with the appliance's private IP and {{share-id}} or {{upload-id}} with the number at the end of the path the console shows.

```sh
sudo mount -t nfs4 -o ro,port=20490 {{appliance-ip}}:/log-download/{{share-id}} /mnt
cp /mnt/*.tar.gz .
sudo umount /mnt
```

To upload a signed script, mount the upload share read-write:

```sh
sudo mount -t nfs4 -o rw,port=20490 {{appliance-ip}}:/package-upload/{{upload-id}} /mnt
sudo cp {{script}}.tar.gz /mnt/
sudo umount /mnt
```

Close shares when you are done. Select one under **File shares** and press **C**, or choose **Close all shares**. Shares that you leave open close on their own after 6 hours.

## Settings tab
<a name="appliance-local-console-settings"></a>

The **Settings** tab has these items:
+ **License information.** Shows the license agreements that apply to the appliance.
+ **Change password.** Changes the `console-admin` password. You need the current password, and the new one must meet the rules under Log in.
+ **Log out.** Ends your session and returns to the login screen.

## Troubleshooting
<a name="appliance-local-console-troubleshooting"></a>


| Symptom | What to do | 
| --- | --- | 
| Screen is blank or garbled | Press Ctrl\+R. | 
| Waiting for services... doesn't clear | Services are still starting. The console moves to the login screen within 7 minutes. | 
| Authentication failed | The password is wrong. Five failures lock the account. | 
| Account locked | Wait for the lockout to expire (up to 15 minutes). | 
| Forgot the password | There is currently no way to recover it. | 
| Authentication service unavailable | Wait a minute and try again. If it continues, reboot the instance. | 
| Last activation attempt failed | Read the reason shown. For network errors, choose Test connectivity on the Activation tab to find the endpoint it cannot reach. | 
| Proxy isn't used after activation | The HTTP proxy value must start with http:// and must not include a username or password. You can't change it after activation, so deploy a new node with the corrected value. | 
| The activation or edge endpoint service isn't listed when you create a VPC endpoint | Create an appliance in that Region first. The activation-backup-external and edge-backup-external endpoint services become available in your AWS account usually within a few seconds to a few minutes after you first create an appliance there. Search for the service again, and make sure you're creating the endpoint in the same account and Region as the appliance. | 
| Unreachable after activation with PrivateLink | Choose Show connectivity details to find the failing endpoint. Use DNS lookup to check that its VPC endpoint name resolves to a private IP, and check that the endpoint's security group allows inbound TCP 443 from the appliance. | 
| Endpoints not configured (Health tab) | This usually means the appliance isn't activated yet. Activate it from the Activation tab. | 
| Unreachable (Health tab) | Choose Show connectivity details to see which endpoints fail and why, then use the troubleshooting tools. Proxy and PrivateLink settings cannot change after activation, so fix the network path. | 
| Not synchronized (Health tab, Time) | Choose Force time sync. If it persists, check that the NTP servers under Network, Time are reachable. | 
| Status unknown or Unavailable | A service on the appliance isn't responding. Wait a minute. If it continues, reboot the instance. | 
| The Activation tab is gone | The appliance is activated or activating. Check its status on the Health tab. | 