ServerAvatarDocs

Server Sync

Scan a server for applications, users, certificates and settings that already exist outside the panel, then add the ones you want it to manage.

OSS Panel normally knows about a thing because it created it. Server Sync is for everything else: a server you installed the panel onto after it was already running sites, or one you migrated from another control panel. Open it from Server Sync in the sidebar, in the Server group.

It works in two halves, and the first half changes nothing.

  1. Scan: read the whole server and list what is there but not in the panel.
  2. Add to the panel: write panel records for the items you keep.

Server Sync after a scan that found nothing new: the summary Nothing new to add, the Scan again, Dismissed and Refresh buttons, and three applications marked Skipped

Before the first scan the page says "This server hasn't been scanned yet. A scan looks through this server for applications, users, certificates and settings that the panel doesn't know about. It only reads — nothing is changed until you choose to add it."

What it looks for

TypeFound by reading
System usersThe login accounts on the server (read from the account database, not from /home) with a normal user id and a home folder under the panel's home base. System accounts such as root and www-data are never offered.
SSH keysThe authorized_keys of those users.
ApplicationsSites the web server is already serving and the panel has no record of: their config file, folder and owner. The type (for example WordPress) is a guess, and each guess carries the evidence behind it.
PHP settingsThe PHP limits each site actually runs under. Only values the old pool sets explicitly are taken.
PM2 processesApplications kept running by an old panel's PM2 process manager. They are marked, so the panel manages them the way they are really run. Nothing is restarted.
WorkersBackground processes of a site: Supervisor programs and systemd units whose working folder is inside a site. They are added disabled.
Database usersAccounts that can reach a database the panel already tracks. The password cannot be recovered from the database, so it is recorded as unknown.
CertificatesLet's Encrypt certificates already issued on the server, and the custom certificate pair an older panel saved for a site.
Cron jobsJobs in /etc/cron.d and in the personal crontabs of the users the panel manages. root's own cron is never listed.
Firewall rulesThe server's inbound allow and deny rules on a port.

The order is a dependency order, not an importance order. An SSH key belongs to a user, and a worker belongs to an application. If a parent type is left out, its children are skipped rather than invented.

Scan the server

  1. Select Scan the server. The summary reads Scanning the server… and counts up ("3 things found so far"). Rows appear as they are found, so a scan of a busy server shows its work instead of going quiet.

  2. Read the list when it finishes. The summary says what happened: Found N things to add, or Nothing new to add, and under it Nothing has been changed on your server. A scan is a read.

    Every row has a Type, a Name and a Status:

    StatusMeaning
    FoundCan be added to the panel.
    AddedNow in the panel.
    SkippedLeft alone on purpose. The reason is on the row.
    FailedCouldn't be added — see details.
  3. Open a row for the evidence behind it. The chevron (Show details) expands the reason and the facts the scan recorded, such as a folder or a config path. Items the scan was less than certain of also show a band and a score: Confident (90 or more), Likely (60 to 89) or Best guess (below 60), with Match score N of 100.

    A skipped row expanded to show the reason and the facts the scan read, a config path and a document root

  4. Dismiss anything you do not want. The eye icon on a row (Dismiss) drops it from the list and from every future scan. The Dismissed (N) button at the top opens Dismissed items: "These won't appear in future scans and won't be added to the panel. You can undo any of them here." Undo dismissing brings an item back.

    The Dismissed items panel with nothing dismissed yet

The search box (Search by name) matches the name and the reason. When the scan found more than one type, a chip per type (with its count) narrows the list, and the page says Showing N of N while a filter is on. Nothing matches means the filters hide every row. Scan again reads the server again, and Refresh reloads the last result.

A preview only lists the workers, certificates and PHP settings of applications the panel already has. For an application the scan just found, they appear after you add the applications and scan again ("…applying the sync adopts the applications first, then reads these.").

Add the results to the panel

  1. Select Add to the panel. The button appears only when at least one item can be added.
  2. In Add these to the panel? ("Everything found is added except what you've dismissed. Untick a type to leave it out entirely."), tick the types under What to add. Only types that have something to add are listed. The dialog warns about dependencies: "Workers need applications to be added too. Without it, every one of them will be skipped."
  3. Read the summary line and the warning at the bottom: "There's no undo for this — added items must be removed one by one."
  4. Select Add N things.
  5. Watch the outcomes. Each row changes from Found to Added, Skipped or Failed. The summary says Added N things to the panel and, if any, N were skipped. If some could not be added, it says N things couldn't be added and counts them (2 added · 1 skipped · 1 failed).

Failures and skips are listed on purpose. A sync that showed only its successes would be indistinguishable from one that silently missed half the server.

Anything added is now an ordinary panel record. A system user appears under System users like any other.

Firewall rules need a decision

Firewall rules are off by default in the add dialog, behind Also add firewall rules and their own warning:

Once the panel manages your firewall rules, a later change here can close the port you connect on. Leave this off unless you're sure.

That warning matters. Adding the rules makes the panel's Firewall screen the source of truth for them. Add them when you intend to manage the firewall from the panel from now on, not merely to have a tidy list.

The panel manages only inbound rules that allow or deny a port. These are skipped, with the reason on the row:

  • An outbound rule ("The panel only manages inbound rules…").
  • A rule that limits or rejects instead of allowing or denying.
  • A rule that uses an application profile instead of a port, because the ports behind a profile can change when the package updates.

Why a row is skipped

Some things are skipped with the reason on the row:

ReasonWhat it means
This is the panel itself, not an application it can host. Left alone deliberately.The panel's own web server entry. Adding it would put the panel under its own application management.
This application is not laid out the way the panel manages applications…It cannot be added without moving its files. It is still being served and nothing has changed.
Another application in the panel already uses a folder with this name…Folder names must be unique.
This application is being served, but its config is not in a shape the panel could read. Adopt it by hand, or check the file.The site works, but the panel could not read its config file.
The Linux account that owns this application is not one the panel manages. Sync system users first, then run this again.Add the system users, then scan again.
This line is not a public key the panel can read…An authorized_keys line the panel could not parse. It may still grant access: check it by hand.

Finish moving from the old agent

On a server that was run by an older panel, applications can still be kept alive by that panel's PM2 agent. When the panel has such applications and something is left to move, the page shows a card, Finish moving from the old agent: "Your applications are added, but the old agent still has jobs this panel should take over." It lists what is left:

  • The old agent (…) is still running.
  • <user>: its applications won't start again after a reboot.
  • <user>: its logs are never rotated, so they keep growing.

Select Finish the move. The panel retires the old agent, repairs start-on-boot for the users' applications and gives their logs a rotation policy. It does not restart your applications. The toast says "The old agent is retired and its jobs are now run by this panel." If a step fails, the card lists what did not finish ("Some steps didn't finish:") and you can try again. The card is not shown on servers where nothing is left to move.

Stopped and stalled scans

  • If a scan stops before it finishes, the summary says The scan stopped before it finished. Everything found so far is listed, nothing has been changed on the server, and Scan again gives the full list.
  • If a run stops adding midway, the summary says Adding stopped before it finished. Items marked Added are in the panel and the rest were not touched. Scan again to see what is left.
  • If a scan stops reporting progress, the page says "This scan has stopped reporting progress. It may have failed on the server." with a Scan again link.

Limits

  • One run at a time. Starting a scan while one is running is refused ("A sync is already running. Wait for it to finish before starting another."). A new scan can be started up to ten times a minute.
  • Adding cannot be undone in bulk. Remove added items one at a time from the screens that own them.
  • Server Sync reads what is on the server now. It does not import another panel's database, settings or users.
  • Workers are added disabled. Turn one on only after you have stopped the original, or two processes will pull the same queue.
  • A second scan on an unchanged server finds nothing. That is the correct answer, not an error. Items already in the panel are not offered again, and dismissed items stay hidden.

Who can do this

  • Server Sync has the permission sync. View lets someone open the page and follow a scan. Manage is needed to scan, add, dismiss and finish the move. A read-only operator can follow a migration without being able to begin one.
  • Without View, the page shows the permission-denied card.

On this page