ServerAvatarDocs
Servers

Server sync

Find the applications, users, keys, jobs and settings that are already on a server and add them to ServerAvatar, and finish a move from the old v7 agent.

Server sync finds what is already on a server, for example a server that was moved from ServerAvatar v7 or set up by hand, and adds it to ServerAvatar so you can manage it from Central. Open Server sync in the server's sidebar (under Server).

A scan only reads the server. Nothing is added until you choose to add it.

  1. Open Server sync in the server's sidebar. Before the first scan the page says "No scan yet".

    The Server sync page before the first scan, with the Scan server and Ignored items buttons

Scan the server

  1. Select Scan server. The page says "Scanning the server…" and "n items read" while it works.

  2. Read the result. The message says "Preview: nothing has been added yet. Last scan finished time."

    The result of a scan: the Found and Skipped totals and a list of items with their kind, status and confidence

  3. Read the totals at the top, such as Found (what can be added) and Skipped (what ServerAvatar left alone, with the reason), later also Added and Failed. Items ServerAvatar already manages are not listed. If the scan finds nothing to add the page says "The scan found nothing to add."

Each item has a Kind, the Item (name, path and details), a Status (Found, Added, Skipped or Failed, with the reason) and a Confidence (High, Medium or Low). The kinds are Applications, System users, SSH keys, Cron jobs, Workers, PM2 processes, Database users, Certificates, PHP settings and Firewall rules. Use Search items… and the kind filter to narrow the list. Some kinds are read only after the applications are added: they show "Read after the applications are added".

Select Scan again to scan again. If a run stops reporting the page says "The run stopped reporting. Scan again to start a new one." If it failed: "The last run failed on the server. Scan again to retry."

Add what was found

  1. After a scan that found items, select Add to ServerAvatar….
  2. In the dialog Add to ServerAvatar tick the kinds to add. "Adds everything found of the ticked kinds. Ignored items stay out."
  3. Firewall rules have their own box, Also add firewall rules (n), with the warning "A wrong rule can lock you out of the server." Tick it only if you are sure.
  4. Select Add n items. The page says "Adding to ServerAvatar…" and then "Added to ServerAvatar. The run finished time."

You can only add after a scan: "Wait for the current run to finish." while a run is going, "The last scan didn't finish. Scan again first." if a scan stalled, and "The last run already added items. Scan again to add more." after an add.

Ignore items

If an item should never be added, select Ignore on its row ("Item ignored."). Ignored items are left out of every scan and every add.

  1. Select Ignored items (n) to see them.
  2. Select Stop ignoring on an item to bring it back ("Item no longer ignored.").

Finish the move from the old v7 agent

A server that was moved from v7 may still run v7's agent. In that case the page shows Finish the move from the old agent: "This server still runs v7's agent. Finishing stops and turns it off, makes Node.js (PM2) apps start after a reboot and rotates their logs. No app restarts."

  1. Read the card. It shows the Old agent (Running or Stopped), Start on boot and Log rotation (yes or no).
  2. Select Finish handover and confirm Finish the handover? It "stops and turns off the old agent, makes Node.js (PM2) apps start after a reboot and rotates their logs. No app restarts."
  3. You see "Handover finished. The old agent is stopped and turned off."

The card does not show on a server that has no old agent.

Limits

  • Only one run can be active at a time.
  • Starting a scan or add is limited to 10 times a minute, and the handover to 5 times a minute.

Who can do this

  • Seeing the page, the last run, the ignored items and the handover status needs View on Server Sync (server.sync). Scanning, adding, ignoring and finishing the handover need Manage. Without it the page says "Your role can view this page but not change it."
  • A Control Panel customer can use it only if the owner ticked Server Sync for the customer's permissions.

Common errors

  • The run stopped reporting. Scan again to start a new one.
  • The last run failed on the server. Scan again to retry.
  • Wait for the current run to finish. Another scan or add is running.
  • The last scan didn't finish. Scan again first.
  • The last scan found nothing to add.

On this page