External Migrations: from cPanel or DirectAdmin into this server ​
The Migrate from cPanel or DirectAdmin page moves hosting accounts from a remote cPanel or DirectAdmin server into this AdminBolt server, and you drive the whole run from the panel. The sidebar's Migration item opens it directly. You connect the source once, review the accounts it reports, choose which of them to bring over, and approve the DNS cutover when the run asks for it.
The work itself runs on the source server, not in your browser. Once a run starts it survives a closed tab, a dropped SSH session, and a restart of its own process, so a migration that takes hours does not depend on your workstation staying awake.
Migrating into AdminBolt, not between AdminBolt servers
This page brings a cPanel or DirectAdmin server's accounts into AdminBolt, with their files, databases, and mailboxes. Moving an account from one AdminBolt node to another under a hub is a different feature, driven from the hub and documented in Cluster Accounts. The same source server can also be attached to a hub as a read-only external DNS source, which moves no hosting at all. All of these are compared in Migration: which one do you need?.
This page covers the prerequisites, running a migration step by step, the DNS cutover, recovery after an interruption, and troubleshooting.
Overview ​
URL: /admin/migration/external-migrations - the sidebar's Migration item, which opens this page directly. /admin/migration leads here too.
Move hosting accounts from another server running cPanel or DirectAdmin to this AdminBolt server.
Since panel 1.9.1, Migration has no tabs: it opens this page, and the earlier Export, Import, and History pages are gone. Their old addresses lead here. See Earlier export and import pages.
The page starts with a short How a migration works section: what is moved, how the run is started on the source server and reports back here, that you choose which accounts to move and the source keeps serving its sites until you approve the DNS cutover, and what you need before you start.
The screen lists your migration runs and starts new ones. Each run has its own page at /admin/migration/external-migrations/<run id>, which is where discovery results, account selection, progress, decisions, and the final report live.
Notification links about a run take you straight to its run page.
Import a backup file ​
Since panel 1.9.3, the page header has an Import a backup file button. It opens Import a backup file, at /admin/migration/backup-import, for the case where you have a cPanel backup file of an account but no access to the server it came from. That page reads one account from one file and restores it into a new or an existing account. It is not an external migration: it never connects to a source server, and it has no runs, discovery, or DNS cutover.
Two ways to migrate from cPanel or DirectAdmin ​
AdminBolt has two paths from the same kind of source server, and they suit different jobs:
| External migration (this page) | bolt-migrate on the source | |
|---|---|---|
| You drive it from | This panel | A terminal on the source server |
| Scope | The accounts you select | The whole server, every account at once |
| Converts the source in place | No, the source keeps running | Yes, that is one of its two paths |
| Survives a closed browser | Yes | The run is tied to your terminal session unless you detach it |
| Needs a shell on the source | Once, to paste a bootstrap command, or not at all if the panel connects over SSH for you | Yes, throughout |
Pick this page when you want a subset of accounts, or when you want the panel to keep the state for you. Pick bolt-migrate when you are converting a server in place or moving everything in one pass.
Before your first external migration ​
- Outbound HTTPS from this server to
get.adminbolt.com. The panel pins one exact release of the migration runner and fetches it the first time you create a run, then verifies its checksum and keeps the verified copy. If the download fails or does not match the pin, the wizard refuses to create the run rather than start an unverified program as root on a customer's server. - Network from the source to this server. The source needs outbound HTTPS to this panel's port (
8443by default), which is also where it downloads the runner from, and outbound SSH for the data path. On the source itself you need nothing beyondcurlandsha256sum. Since panel 1.9.6, the runner also starts on CentOS 7 source servers; see CentOS 7 source servers. - SSH from this server to the source, but only if you choose the upload bootstrap mode. The one-time command mode needs no inbound access to the source at all.
- A second factor on your administrator account. When your account has one, the DNS cutover decision on the run page asks for its code. Enable it before you need it, not while a run waits. An administrator API key can also answer the decision, without a code, see The DNS cutover over the API and, since panel 1.9.5, The administrator API, so keep such keys to the people who may approve a cutover.
- Free space on this server for the incoming accounts. Since panel 1.9.5, preflight compares what the accounts need with the free space in
/homeon this server; see When the accounts do not all fit. - A working backup of the source server. You confirm you have one before a run starts.
Running an external migration ​
1. Connect the source server ​
Open Migration. While no run exists, the Connect a source server form is open; once there are runs it is collapsed, and Start a migration in its header opens it. Enter the source host and SSH port. Add notes if you want the run labelled for a colleague.
2. Approve the host fingerprint ​
The panel reads the source's SSH host key and shows its fingerprint. Compare it with the source before you approve, by running this on the source server:
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pubRead fingerprint reads the key and fills in Fingerprint. Approving the fingerprint, by creating the run with Create run and bootstrap, pins that key for the whole run. A key that changes mid-run stops the run instead of trusting the new one.
Since panel 1.9.5, the fingerprint shown is the source's ED25519 key when the source has one, and its RSA key otherwise, so reading it twice shows the same key. The panel connects to the source only with the key you approved, and compares the type and the key itself:
- When the host or the port changed after the fingerprint was read, the run is not created: "The source host or port changed after the fingerprint was read. Read it again and compare it with the source server."
- When the source presents another key before the run is created: "The source server now presents a different host key than the approved one. Read the fingerprint again and compare it with the source server."
- When it presents another key when the runner is started over SSH: "The source presented a different SSH host key than the one approved for this run. Nothing was sent." The run is marked failed.
3. Choose how to start the runner ​
| Bootstrap method | What happens | When to use it |
|---|---|---|
| One-time command | You paste a command as root on the source. It downloads the runner from this panel over the panel's pinned certificate, verifies the checksum carried in the command, and starts it. Nothing connects inbound to the source. | The source is behind a firewall or a bastion, or you would rather not hand over an SSH key. |
| Upload over SSH | This server connects to the source once, with the private key file or root password you supply, uploads the runner over that session, starts it, and drops the connection. | You already have SSH access and want fewer manual steps. |
Either way the SSH connection is never a control channel. It reads the host key and, in the upload mode, starts the runner. Everything after that flows over HTTPS from the source to this panel.
Since panel 1.9.6, with the root password, the bootstrap uses hardened handling of its enrollment token.
The SSH key file ​
Since panel 1.9.6, the key for Upload over SSH is a private key file in the folder this server keeps for external migration keys. The wizard names that folder under the key field and creates it when the page opens. Copy the key file there, readable by its owner only, and without a passphrase. A key anywhere else is refused, and so is a key file the wizard cannot use, each with the notification The run was not created:
- "Other users of this server can read or change the SSH key file. Make it readable by its owner only (chmod 600) and try again. Nothing was sent."
- "The SSH key file could not be read as a private key without a passphrase. Nothing was sent."
The key is used once, to start the runner, and is never stored in the run.
CentOS 7 source servers ​
Since panel 1.9.6, the runner starts on CentOS 7 source servers, with either bootstrap method. The curl of such a server cannot check this panel's certificate the way the one-time command asks for, so the command downloads the runner from get.adminbolt.com and verifies the same checksum. For the One-time command on such a source, allow outbound HTTPS from the source to get.adminbolt.com as well as to this panel. Upload over SSH needs neither, because this server uploads the runner itself.
A source that another run still uses ​
One source server runs one external migration at a time. Since panel 1.9.6, a new run from a source where the runner of another run is still alive is refused before anything is started, and the refusal names the other run and its panel: "The source server still runs the migration runner of run run for the panel panel. One source runs one migration at a time, so nothing was started. Cancel that run on its panel, or stop its runner on the source with "systemctl stop unit", then start again. You can also start again with the option to stop that runner first." The new run is kept in the list as failed, with the same reason on its page.
After such a refusal, the form shows a Stop the runner already running on the source first switch for that host: "Run run stops at once and does not finish; its panel shows it as stalled." Turn it on and create the run again to take the source over.
The run that lost its source says so on its page: "Run run took this source over: its start stopped the runner of this run on the source server, so this run does not continue. Cancel it to release its credential."
A runner whose panel is gone, for example because the target server was deleted, does not hold the source forever: after a long time without an answer from its panel it stops on its own and cleans up after itself on the source.
4. Review discovery ​
The runner enumerates the source and reports the account list with sizes, the capabilities it detected, and preflight results. This step is read-only: nothing on either server has changed yet.
5. Select accounts and start ​
This is where you choose the scope of the run:
| Control | What it does |
|---|---|
| Accounts to migrate | The accounts discovery found. Select one, several, or all of them. A run with nothing selected is refused. |
| Source plan mapping | Maps each hosting plan found on the source onto a plan on this server, so migrated accounts land on the limits and features you intend. |
| PHP version mapping | Maps each PHP version the source's sites use onto a version on this server. Since panel 1.9.5, when this server can install the source's version but has not, Install PHP 8.1 on this server for these sites (with the version) is offered and preselected, so the sites keep their version. The import waits only a short time for the installation: if it takes longer, those sites start on another installed version, and the import result says so. Picking a version that no longer gets security fixes shows a warning. See Sites brought from another server. |
| Skip file transfer | Provisions the accounts without copying website files and mail content. |
| Skip database transfer | Provisions the accounts and their database users without copying database contents. |
| I have a working backup of the source server | A required acknowledgement. The run does not start without it. |
A failing preflight blocks the start. Fix what it names, then start the run.
Usernames the import refuses ​
Since panel 1.9.6, the run page names the source accounts whose username AdminBolt does not accept before the run starts, not at the import:
- Preflight lists them with the reason: "These accounts cannot be migrated because AdminBolt does not accept their username: accounts. Rename them on the source server before migrating; until then they cannot be selected." The row is a warning while other accounts are left to move, and it blocks the run only when no account is left.
- In Accounts to migrate, such an account cannot be selected and reads "cannot be migrated:" with the reason. The reason is either that the username has characters AdminBolt does not accept (lowercase letters, digits,
_, and-are accepted, starting with a letter or_, at most 32 characters), or that the username is reserved for a system account on AdminBolt. - Over the API, a selection that contains such an account is refused with
422: "AdminBolt does not accept the username of accounts. Rename the account on the source server before migrating."
Rename the account on the source server before you move it.
Reseller limits ​
Since panel 1.9.6, an external migration warns about the reseller limits its accounts go over. Before the import, the run compares the accounts that belong to a reseller with that reseller's limits on this server: the number of accounts, disk space, bandwidth, and, on CloudLinux, the reseller's resource pool. Each limit the import goes over has its own line in Activity, for example "Reseller reseller will exceed its account limit: limit limit, used used, after the import after."
The warning does not stop the run: "The migration goes ahead: every account is imported and attached to its reseller, which the panel then shows as over its limit. Raise the limits or move accounts afterwards; no limit is changed automatically." The account table repeats the warnings under Resources, with the reseller's first account. When every account fits, Activity says "The migrated accounts fit the limits of their resellers."
Document roots that move ​
AdminBolt serves every domain from its own folder in the account's home, so a site's document root on this server can differ from the one it had on the source. Since panel 1.9.6, the run page lists every document root that moves in a Document roots moved section, at the decision that reviews the export and for as long as the run is kept. Each entry names the domain, its old and new document root, and what to check:
- "Check: PHP files in the old folder above, now at path: files" - files kept next to the site, outside its document root.
- "Check: relative includes that leave the site: list" - code that loads a file outside the site by a path relative to its own folder.
- "Nothing found that reaches outside the site."
Code that reaches such a file by a relative path looks in a different folder after the move and fails with HTTP 500. Make such include paths absolute, or move the file into the new folder above the site. See also Home directories and document roots.
Since panel 1.9.8, the section and Activity name the moves that did not happen as planned, in plain sentences:
- A document root that is a symbolic link on the source is shown as Not moved: "Not moved: the old document root is a symbolic link on the source server, which the migration does not follow. The domain does not serve the files of the site until they are put into path." Copy the site's files there.
- A site's own folders that stay next to the new document root are named, for example "The own folders folder of the site stays in parent, next to the new document root, not in it."
- A move that was refused, stopped, or failed is named with its reason. Such a site is not taken for moved, and its domains keep their DNS on the source.
- A link in the home that the run put back but whose target is gone after the move is named, with the count of any more such links.
When the accounts do not all fit ​
Since panel 1.9.5, preflight checks the free space in /home on this server, where AdminBolt keeps every account, with some room to spare. When not every account the source has fits, the home_space row is a warning, not a failure, so you can still start a run with fewer accounts: "Not every account fits on this server: all discovered accounts need size but the /home filesystem has size free (size headroom required). You can still migrate a selection that fits; it is checked again when you start."
The selection is checked again when you start the run. A selection that does not fit is refused before anything is copied, with the notification The migration was not started: "Not enough space on this server: the selected accounts need size but the /home filesystem has size free (size headroom required). AdminBolt keeps every account on one filesystem at /home - enlarge or replace it first." Select fewer accounts, or make room on this server, then start again.
6. Watch the run ​
The run page shows overall progress, per-account resource states, and the event log, and it updates while you watch. Closing the browser does not affect the run; reopen the page to pick it back up.
Since panel 1.9.6, the import reloads the web server once for each account and spaces the reloads, so the sites already on this server keep answering while many accounts are imported. A reload that fails is reported as a failed step of its account. Health shows a web server that runs but does not answer as failing.
Accounts with failed provisioning steps ​
Since panel 1.9.3 an account that was imported but whose parts could not all be created on this server is no longer reported as a plain success. The run page lists such accounts above the account table, in a section headed Accounts with failed provisioning steps. Each account shows how many steps failed, the steps in plain words, for example "Virtual host: example.com" or "Mailboxes", and a reference to the details in the panel log. It also says what the failure means for the account:
- "The site cannot be served on this server until this is fixed. Its domains are left out of the DNS change unless you include them." This is the case when the system user, the virtual host, the PHP-FPM pool, or the DNS zone of the account could not be created. Those steps are shown in red.
- "The site is served; the parts listed are missing on this server." This is the case for any other step, such as a mailbox, a cron job, or a certificate.
In the account table, such an account reads provisioning incomplete next to its state, its failed steps follow its resources, and the DNS cutover column says "excluded by default: the site cannot be served" for an account whose site cannot be served. The account's own page shows the reason under its Provisioning failed badge. Recreate the missing parts on the account; the list on the run page stays as it was at the import.
Activity ​
Since panel 1.9.3 the Activity panel shows the runner's messages in plain words. A message that carries technical detail is replaced by a short sentence with a reference, for example "Step step failed. Details are in the panel log under reference reference.", and the details stay in the panel log under that reference. The last line states how the run ended, for example "The migration completed with warnings. Check the accounts listed above."
Pausing and cancelling ​
You can Pause, Resume, or Cancel a run. Both pause and cancel take effect at the next safe point, between accounts and between resources, so the page shows cancelling until the runner confirms it has actually stopped. It never reports a stopped run while work is still in flight.
Since panel 1.9.6, Cancel also stops a run that waits for the account selection: the run ends as cancelled, its access to this server is revoked, and the runner removes what it left on the source server. Nothing was imported at that point, so nothing changes on this server.
7. Answer the decisions the run asks for ​
The run stops and waits at each gate:
- Export finished, import into this panel? confirms that the exported packages should be provisioned here.
- Repoint DNS for the migrated domains to this server? is the cutover decision, covered below. It is always present and always requires an explicit answer.
Since panel 1.9.6, a decision other than the DNS cutover that changes something offers Continue the migration and Stop the migration. Stopping ends the whole run: "The run ends as cancelled. Accounts already imported on this server stay as they are." A decision that only asks you to acknowledge something has one answer. Two more decisions can appear, each only when its step did not finish:
- Credential sealing did not complete - retry it? See When the credential seal does not complete.
- Document root moves did not finish - run them again? The move of a document root into its place on this server stopped part way, so its site does not answer yet, and Activity names each move. DNS was not changed. Yes runs the moves of these accounts again and keeps what was already moved. No continues without them: these accounts keep their DNS on the source server, their DNS cutover column reads "excluded: a document root move did not finish", and the run ends with errors. If a move was refused, fix the cause on this server first.
Since panel 1.9.3 the cutover decision lists the accounts with failed provisioning steps and marks those whose site cannot be served. When you choose to repoint DNS, Include these accounts in the DNS change anyway offers a checkbox for each account whose site cannot be served, all unticked: "Their site cannot be served on this server. Accounts left unchecked keep pointing at the source." Tick an account only when you know its site works here, for example after you recreated its virtual host. Accounts with other failed steps are repointed as usual.
The DNS cutover over the API ​
Since panel 1.9.3 the administrator REST API can answer the cutover decision of a run that waits at it:
POST /api/external-migrations/runs/{run}/gates/dns-cutover{run} is the run id shown on the run page. The body carries decision, yes to repoint DNS or no to leave it, and with yes optionally include_accounts, the usernames of the accounts whose site cannot be served that you want in the DNS change anyway. When the run asks for a typed confirmation, send it as typed. The answer is 202 with the decision and the included accounts. A run that is not waiting at the cutover answers 409, and an account that cannot be included answers 422 with the account names.
Since panel 1.9.5, POST /api/external-migrations/runs/{run}/decision answers this decision and every other one a run asks for; see The administrator API.
8. Read the report ​
When the run finishes, the page shows the final report and the cleanup status of the runner, the target, and the panel. A cleanup that did not complete appears as a visible warning with a retry action, not as a silent condition.
Since panel 1.9.3 a run in which some accounts have failed provisioning steps ends as Completed with warnings in the list of runs, also when the runner itself reported success.
Since panel 1.9.6, Activity shows the notes of the run that ask something of you as sentences in your language, with the account, the address, or the path they concern, where it earlier showed a reference into the panel log. They are described in What a migrated account brings with it. A long run keeps its warnings and errors on the page when newer lines follow them.
Domains of migrated accounts ​
Since panel 1.9.5, the main domain and the addon domains of an account brought over from cPanel or DirectAdmin are domains like any other on this server:
- They get their
mail,autoconfig, andwebmailnames, and AutoSSL covers those names. - On a CloudLinux server, moving sites to alt-php covers their sites too.
- Addon domains count towards the plan's Addon Domains limit. An account that arrives with more addon domains than its plan allows keeps them, and adding another is refused with "You have reached the limit of addon domains for this hosting plan."
The update to 1.9.5 applies the same to accounts migrated earlier and keeps the PHP version each of their sites runs.
What a migrated account brings with it ​
Since panel 1.9.6, an account brought over by an external migration keeps more of what it had on the source server, and the run page says in plain sentences where something could not be kept. The sections below name what to expect and what each note asks of you.
Database users ​
- Passwords. A database user keeps its password, also on a server that runs MariaDB, so applications reconnect with the credentials they have. When a password cannot be carried, Activity names the user: "The database user user has a new password on this server." followed by the reason, for example "The source server had no password hash for it.", and "Set a new password for it in the panel and put it into the applications that use it." Since panel 1.9.8, a database user whose password could not be read on the source counts as a failure of the run, which then ends with "The migration completed with errors."
- Hosts. A migrated database user can connect the way it did on the source: locally, and through the server's hostname and addresses. Privilege changes, password changes, account backups, and restores cover every one of those hosts, so a site whose configuration names the server's hostname or address as the database host keeps working. The update to 1.9.6 applies the same to database users migrated earlier.
- phpMyAdmin. Opening phpMyAdmin from the panel leaves the database users the account brought, and their passwords, unchanged.
Mail ​
- Autoresponders. A migrated autoresponder stays linked to its mailbox and answers as it did. An autoresponder on an address that has no mailbox is not carried, because AdminBolt runs autoresponders on mailboxes only: "count autoresponders were not carried: addresses. The addresses have no mailbox, and this panel runs autoresponders on mailboxes only. Create the mailboxes, then set the autoresponders there; a forwarder on an address still delivers."
- The account's own mailbox. The mailbox that belongs to the cPanel account itself becomes the mailbox username@main domain and keeps its password: "account: the own mailbox with count messages becomes the mailbox address and keeps the cPanel password." Mail to unknown addresses of the account's domains reaches that mailbox as on the source: "Mail to unknown addresses of domains is delivered to it, as on cPanel." When that address is already a mailbox, a forwarder, or a mailing list on the source, the own mailbox is not moved, and the note says so.
- Mailbox limits. Every mailbox is imported, the account's own included, also when the account then holds more mailboxes than its plan allows. The import warnings say so, and no mailbox can be added to the account until it has fewer or its limit allows more.
- Mail filters. Mail filters a mailbox brings do not replace the filters the customer has active in Roundcube. When the filter set that was active on the source could not be activated, the note names the mailbox: "address: the filter set that was active on the source server was not activated here." Since panel 1.9.8, filters that file mail into folders name the folders as they are called on this server, and a filter set whose folder names could not all be changed is named: "address: some filter sets from the source server still name its folders, so their rules do not file mail into folders here. Details are in the panel log under reference reference." Correct those rules in Roundcube.
- Deleting a migrated account. Since panel 1.9.8, deleting a migrated account, or one of its domains, also removes from the mail server the mail domains and catch-alls the run set up for its subdomains and parked domains, so they stop accepting mail and a later run that brings the same account back is not in their way. When the mail server's bolt-agent is too old for this, the deletion ends with a warning that names the domain: "The bolt-agent of the mail server is too old to remove the mail rows of domain, so they stay on that server. Update bolt-agent on the mail server."
Activity shows these mail notes of the run as they are, where earlier it showed only a reference into the panel log.
Home directories and document roots ​
- The main domain's site. The paths the main domain's site had on the source keep working: the account's home gets a
public_htmllink for the main domain, and Activity confirms it, for example "account: path now points to target, so the paths of the old document root keep working." When the link could not be made, for example because something else is already at that place, the note says so and names what to do by hand. - Links in the home. Symbolic links inside the home that point to a place inside the home work after the transfer: "account: count symbolic links inside the home were restored after the transfer." A link that points outside the home is left without effect, and the note names it: "Point it at the right place by hand if a site needs it." The symlink protection of the server can remove a restored link by its own policy; the note says that this is not a failure of the run.
- Paths in site files. Where a configuration file or a cron job of the account names a path of the old document root, Activity names the file and the line, and says whether the path works through the
public_htmllink or has to be changed by hand. - PHP settings. After a document root moves, the panel writes the PHP settings of its domains again. When a site brought a
.user.iniof its own into its document root, the PHP limits set in the panel do not apply there, and the note asks you to check that file. When the panel could not write the settings, save the PHP settings of the domain in the panel. - Permissions. A migrated account's document root uses the restricted permissions of every AdminBolt account, which keep other accounts out. The update to 1.9.6 applies them to the document roots already on the server, and Health checks them from then on.
The document roots that move are listed before the import; see Document roots that move.
Cron jobs and PHP ​
A migrated cron job runs the PHP of its account. On a CloudLinux server where the account uses alt-php, the job keeps that alt-php version. When a job still names a PHP version this server lacks, Activity says so: "account: a cron job still runs binary, but PHP version is not installed on this server. Install PHP version or change the job." A job that runs a script that is not on this server is named the same way.
Since panel 1.9.8, the Python and Node.js applications of the CloudLinux selector come along too; see CloudLinux settings.
CloudLinux settings ​
Since panel 1.9.8, an external migration from a CloudLinux cPanel server brings the CloudLinux settings of its plans, accounts, and resellers along. This server applies them where it runs CloudLinux and MySQL Governor; see CloudLinux.
- Resource limits. Each plan gets the resource limits its cPanel package set itself. A limit the package left to the server defaults keeps following the defaults here. An account or a reseller with limits of its own keeps them.
- Inode limits. A package's own inode limit becomes the plan's file allowance, and an account with inode limits of its own keeps them.
- MySQL Governor limits. Each plan gets its package's Governor CPU, read, and write limits, and each account its own limits and whether Governor ignores it. An account that only had its package's limits follows its plan, so a later change of the plan's Governor limits reaches it. The source's Governor mode and defaults are reported, not applied: this server keeps its own.
- PHP Selector. Each account keeps the PHP version, the extensions, and the
php.inioptions it chose in the PHP Selector. An account that used the PHP of its site keeps following its site. - Python and Node.js applications. Each selector application becomes an application of this server at the domain or the path it had, and keeps running; the customer finds it under Applications. Its dependencies are installed again here. When the Python or Node.js version it runs is not on this server yet, AdminBolt installs it under Application Runtimes and starts the application once it is there. An application that lived inside its site's folder now answers every path below it itself, so the run names the folder to move its static files to. When its dependencies could not be installed or it could not be restarted, the run names the step to take; for the notes that name
bolt-cli migrated-apps, see CloudLinux settings in the bolt-migrate guide.
Anything that cannot be carried is named with the reason in Activity and in the run's report. An application this server cannot serve is not set up, its path is closed, and the account's failed steps give the reason, for example "app is on domain, which already has an application at its root. Set it up at a path of its own under Applications." Set it up again under Applications. When this server refuses the resource limits of a plan or an account, Activity names them and the run ends Completed with warnings.
Dedicated IP addresses ​
An account that had an IP address to itself on the source keeps it when this server can give it that address: the address is under Network IPs on this server, active, not reserved, and not used by another hosting account or assigned to another reseller. Activity then says "account keeps its dedicated IP address.", and the DNS cutover leaves the records on that address as they are.
An external migration never adds an address to this server. When the account does not get its address, Activity names the account, the address, and the reason, for example "This server has no Network IP with this address. Add it under Network IPs and assign it to the account." or "Another hosting account on this server already has this address.", and says which address its sites answer on. Assign an address afterwards as in Dedicated IP for a Hosting Account.
DNS zones ​
- A zone the import creates on a server without a DNS cluster gets its SOA and NS records, with this server's nameservers, and the DKIM key, as a zone created in the panel does. The records the zone brought are not changed.
- The records of a migrated subdomain go into the zone of the domain it belongs to, as for a subdomain created in the panel, when this server serves that zone.
The update to 1.9.6 applies both to zones imported earlier.
Certificates ​
A migrated certificate is registered only on a domain of its own account.
Import scope ​
Imported resources stay in the account approved for the external migration. An account whose package does not fit that rule is not imported, with "The migration package would write a resource outside the approved account; the account was not imported.", and the run goes on with its other accounts. A forwarder whose address is not on a domain of its own account is left out and named in the import warnings.
DNS and the cutover ​
A migration never changes DNS without your approval, and even then it changes only what lives on a server it controls.
| What | Who changes it |
|---|---|
Zones on this AdminBolt server: A, AAAA, SPF, and DKIM records | The migration, after you approve the cutover |
| Zones on the source server, when the source is authoritative | The migration, if you approve that option |
| Registrar nameserver delegation | You, by hand |
| DNS hosted with an external provider such as Cloudflare, registrar DNS, or a third party | You, by hand. The report lists the exact records |
Accounts that failed verification are left out of the DNS change, so a broken account never takes traffic. Since panel 1.9.3 so are the accounts whose site cannot be served because their system user, virtual host, PHP-FPM pool, or DNS zone could not be created, unless you include them at the cutover decision.
When the credential seal does not complete ​
Before the DNS cutover, the run applies the original passwords, certificates, and mail routing of the migrated accounts on this server. The run page calls this step the Credential seal, and shows "Sealing the credentials of the migrated accounts" while it runs.
Since panel 1.9.6, a run holds the DNS cutover when this step fails or does not finish in time. The Credential seal section then says "The credential seal did not complete.", with the reason and a reference into the panel log, and "DNS was not changed: the source keeps serving the sites. Fix the cause, then answer the decision to run the seal again, or cancel the run." The run waits at the decision Credential sealing did not complete - retry it?; continuing runs the step again. When the earlier attempt may still be running on this server, the page says so, and a retry is refused until it has finished.
A run that ends without a completed seal ends as failed, not as completed, and does not change DNS. Accounts whose import failed are left out of the step and named in Activity.
Warning: The source keeps serving until DNS propagates, and this version has no delta sync. Treat the source as frozen from the moment the transfer starts: content changed there afterwards is not migrated. Lower your zone TTLs before the migration if you want a fast switch, because propagation takes as long as the old TTL.
If something is interrupted ​
| Situation | What happens | What you do |
|---|---|---|
| You close the browser | Nothing. The run continues | Reopen the run page |
| The bootstrap SSH session drops | Nothing. It only started the runner | Nothing |
| The runner process dies | It is restarted and resumes from its checkpoints, without repeating completed imports, file syncs, or database copies | Watch the run return to running |
| The source server reboots | The run stops reporting and shows stalled | Run the bootstrap again with the same run id. The working directory and checkpoints are reused |
| No heartbeat for three minutes | The status flips to stalled and a notification is sent. The runner may still be working behind a broken uplink | Check the source: systemctl status bolt-migrate-<run id> |
| One account fails | It is isolated. The other accounts continue, and the failed one is excluded from the DNS cutover | Fix the cause, then retry that account |
| The panel API times out during an import | The runner retries with the same idempotency key and receives the recorded result, rather than provisioning the account twice | Nothing |
Credentials and cleanup ​
Every credential a run uses is scoped to that run and short-lived. No permanent API key and no agent token is ever placed on the source server.
| Credential | Where it lives | When it goes away |
|---|---|---|
| Enrollment token, valid for minutes and single use | The bootstrap command or a file on the source | Consumed on first use, and the file is deleted |
| Run credential, scoped to the run and its endpoints, 12 hour lifetime | Runner memory and the run working directory, mode 0600 | Revoked on success, failure, cancellation, watchdog expiry, or when the feature is disabled |
| Transfer key, an SSH key locked to the source address and a forced command, 4 hour lifetime | The runner working directory, with its public half in this server's authorized_keys | Removed when the run reaches a terminal state, retried by the watchdog, and expired by the agent's own sweep |
| Per-run database account, granted only on the approved schemas | This server's database, with credentials in a 0600 option file | Dropped together with the transfer key |
What the transfer key can reach is bounded by this server rather than by good behaviour on the source: file transfer is confined to the staging root and cannot carry ownership, setuid bits, device nodes, or live symlinks across, and the database connection is granted only on the schemas you approved.
Since panel 1.9.8, the file transfer writes only into the homes of the accounts the run moves, and the transfer key accepts only the copy the runner sends. A copy that names anything else fails. When this server cannot keep a copy to those homes, it refuses the copy before anything is written, and the transfer of the account fails.
Since panel 1.9.6, Activity says where the runner keeps the snapshot it takes of the source server before discovery: "The runner saved a snapshot of the source server before discovery, in path on the source server. It stays there after the run and holds the password hashes of the accounts and the MySQL root login (readable by root only)." The snapshot stays on the source server only. Delete it by hand once you no longer need it.
To confirm by hand on this server that a finished run left nothing behind:
grep bolt-migration-run /root/.ssh/authorized_keys # expect no output
ls /var/lib/bolt-agent/migration-targets # expect an empty directoryThe administrator API ​
Since panel 1.9.5, the administrator REST API runs an external migration the way this page and the run page do, from reading the source server's fingerprint to cleaning up after the run. The calls need an administrator API key and none of them needs an explicit grant. With an expired license, the reads keep working and the other calls answer 403.
| Method and path | What it does |
|---|---|
POST /api/external-migrations/host-key | Read the source server's host key fingerprint, as step 2 of the wizard does. Send source_host and optionally source_ssh_port (22 by default). The answer carries fingerprint and its sha256 value. A source that does not answer on SSH answers 502. |
POST /api/external-migrations/runs | Create a run, as the wizard does. See Approving the source server. Answers 201 with the run. |
GET /api/external-migrations/runs | The runs, newest first; limit takes 1 to 100 (25 by default). |
GET /api/external-migrations/runs/{run} | One run, as its page shows it: the status, the decision it waits for under pending_decision, the latest events (events takes 1 to 100, 50 by default), the discovered accounts and plans, the PHP versions this server lacks, the preflight results, the accounts of the run with their outcome, and the cleanup state. Since panel 1.9.6, also status_reason and seal; see Run state since panel 1.9.6. |
POST /api/external-migrations/runs/{run}/start | Start the run with the accounts you select, as Start migration does. |
POST /api/external-migrations/runs/{run}/decision | Answer the decision the run waits for. |
POST /api/external-migrations/runs/{run}/pause | Pause a running run, as Pause does. |
POST /api/external-migrations/runs/{run}/resume | Resume a paused run, as Resume does. |
POST /api/external-migrations/runs/{run}/cancel | Cancel a run that has not finished, as Cancel run does. Accounts already imported stay on this server. |
POST /api/external-migrations/runs/{run}/cleanup | Remove the transfer credential of a finished run from this server, as Retry cleanup does. |
{run} is the run id shown on the run page, r- followed by 24 letters and digits. A run that does not exist answers 404. A field a call does not take is refused by name with 422, and pause, resume, cancel, and cleanup take no fields at all. Refusals carry a message you can show as it is, often with a next_step. While another change to the same run is under way, a call answers 409 with "Another change to this migration is in progress. Try again in a moment."
The run's password, keys, and other secrets are never returned, and neither is the runner's own report. Start, decisions, pause, resume, and cancel are recorded on the run with the administrator who owns the key and the calling address, as the same buttons on the page are. The run page asks for a second factor before a decision that changes something; the API does not, because the key stands in for it. Keep keys that may call these routes to the people who may approve a DNS cutover.
Approving the source server over the API ​
The API approves the source server's host key the way the wizard does:
- Read the fingerprint with
POST /api/external-migrations/host-key. - Compare it with the fingerprint of the source server, as in Approve the host fingerprint.
- Create the run with
POST /api/external-migrations/runsand send the approved fingerprint asssh_fingerprint, either the whole line or itsSHA256:value.
When the run is created, the panel reads the source server's host key again and accepts the run only when it has the approved fingerprint. A source that now presents another key answers 409 with "The source server now presents a different host key than the approved one. Read the fingerprint again and compare it with the source server." and the fingerprint it presents now, so you can compare again. A request without a fingerprint answers 422.
The other fields of a new run:
| Field | Meaning |
|---|---|
source_host | Required. The hostname or IP address of the source server. |
source_ssh_port | The source server's SSH port, 22 by default. |
bootstrap_mode | Required. command for the one-time command, ssh for the upload over SSH. |
ssh_auth | With ssh: password or key. |
ssh_password | With password: the source server's root password. It is used for this request only and is never stored or returned. |
ssh_key_path | With key: a private key file in the folder this server keeps for external migration keys. A key anywhere else is refused with 422, and the answer names that folder. Since panel 1.9.6, a key file there that other users can read or change, or that is not a private key without a passphrase, is refused with 422 and its own message. See The SSH key file. |
notes | Up to 500 characters. |
stop_other_runner | Since panel 1.9.6. true stops the runner of another run that the source still runs before this one starts; that run does not finish. false by default. |
With command, the answer carries the one-time command under enrollment_command, only in this answer; paste it on the source server as root. With ssh, discovery starts at once. When the runner cannot be started over SSH, the run is kept as failed and the answer is 502.
Since panel 1.9.6, a source that still runs the runner of another run answers 409: other_runner names that run with its run_id, panel_url, and unit, and next_step says how to stop it. The run is kept as failed. Send the request again with stop_other_runner set to true to take the source over, as in A source that another run still uses. A panel address or runner download address that cannot be handed to the source server also answers 409, and no run is created.
A run imports its accounts with a credential of its own, so it carries the Allow writes that run commands as root permission of the key that created it. A run created with a key without the permission does not import an account that carries custom Apache directives, and says why. A run created on this page always carries it. See Writes that run commands as root.
Starting the run ​
Once the run's status is awaiting_selection, POST /api/external-migrations/runs/{run}/start starts it:
| Field | Meaning |
|---|---|
accounts | Required. The usernames of the source accounts to move, at least one. |
plan_mapping | For each source plan name, the id of a plan on this server. A source plan you leave out is created here with its own limits. |
php_mapping | For each PHP version of the source that this server lacks, the installed version the sites move to. |
skip_files, skip_databases | Leave the files or the databases out, as on the page. |
backup_confirmed | Required, true: you confirm a working backup of the source server. |
The answer is 202. The start is refused with 409 when the run is not waiting for a selection, when preflight found a blocking problem, or when the selected accounts do not fit on this server, with the sizes. An account that is not on the source, a plan that does not exist here, or a PHP version that is not installed answers 422 naming it. Since panel 1.9.6, so does an account whose username the import refuses.
Answering a decision ​
pending_decision on the run names the decision the run waits for: its id, its title and text, and expect, the text to type when it asks for one. Answer it with POST /api/external-migrations/runs/{run}/decision:
| Field | Meaning |
|---|---|
prompt_id | Required. The id of the decision you read. A run that waits at another decision answers 409, so a stale answer is never applied. |
decision | yes or no. A decision that only asks you to acknowledge something accepts only yes. For the DNS cutover, no finishes the run and leaves DNS as it is. Since panel 1.9.6, no at any other decision that changes something ends the run as cancelled, as Stop the migration does. |
typed | The confirmation text, when expect asks for one. |
include_accounts | For the DNS cutover with yes only: the accounts whose site cannot be served that you want in the DNS change anyway. |
The answer is 202 and the run goes on. A run that waits for no decision answers 409.
Pausing, resuming, and cancelling ​
Pause, resume, and cancel are passed to the runner and answer 202; the run's status changes once the runner reports it, except that a cancelled run shows cancelling at once. Only a running run can be paused and only a paused run resumed; anything else answers 409. A run that has already finished cannot be cancelled. Cleanup works on a finished run only and answers 200 with complete set to true, or to false when this server could not be reached, in which case the credential expires on its own and you can call it again.
Run state since panel 1.9.6 ​
GET /api/external-migrations/runs/{run} carries two more fields:
| Field | Meaning |
|---|---|
status_reason | Why the run is stalled or why its bootstrap failed, in the sentence the run page shows, for example that another run took the source over. null otherwise. |
seal | The credential seal while it runs or when it did not complete: state (in_progress, running for a seal that started and has not answered, or failed), reason, may_still_run, reference, and at. null when the run has not reached the step or the step completed. While seal reports a problem, the run holds its DNS cutover; see When the credential seal does not complete. |
The events of a run keep the warnings and errors that came before the newest ones, so a problem reported early stays in the answer.
Turning the feature off ​
To stop every active run and revoke its credentials:
bolt-cli external-migration-disableTo act on one run only:
bolt-cli external-migration-disable --run=<run id>Add --force to skip the confirmation prompt.
This revokes every active run credential, removes the transfer credentials through the agent, deletes the run-private SSH material, and marks the runs cancelled. Hosting accounts that were already imported are untouched and keep working as ordinary accounts on this server. To start again afterwards, create a new run.
Troubleshooting ​
| Symptom | Cause and fix |
|---|---|
| Runner is not available | This server could not fetch the pinned runner release from get.adminbolt.com, or the download did not match the pinned checksum. The message names which one. Never bypass a checksum mismatch |
| Could not read the host key | The source did not answer on SSH. Check the host, the port, and the firewall |
Bootstrap fails on curl | The source cannot reach this panel's port, or the panel certificate changed after the command was generated, so the pin no longer matches. Generate a new run |
Bootstrap fails on sha256sum | What the source received is not what this panel serves. Do not bypass it. Check for a proxy between the source and this panel |
| The one-time command stops on a CentOS 7 source with "This curl is too old to pin the panel certificate, so the runner is fetched from get.adminbolt.com instead, and that failed" | The source cannot reach get.adminbolt.com. Allow outbound HTTPS from the source to it, or choose Upload over SSH. See CentOS 7 source servers |
| The run was not created, with "The panel address ... cannot be handed to the source server" | The panel hostname in the settings is not a host name or IP address the bootstrap command can carry. Nothing was created. Correct the hostname the message names, then start again |
| The bootstrap is refused because the source still runs the runner of another run | One source runs one external migration at a time. See A source that another run still uses |
A run is stalled while it waits for the account selection or for a decision | The runner stopped reporting, so the run cannot be started or answered. Another run may have taken the source over, or the source lost its connection to this panel. The run page says which it knows of. Check the source server, then cancel this run, and start a new one once the source is free |
| Credential seal: "The credential seal did not complete." | DNS was not changed. See When the credential seal does not complete |
The run stays in bootstrapping | The runner never enrolled. Check systemctl status bolt-migrate-<run id> on the source, and its outbound HTTPS to this panel |
E_CRED_REVOKED in the runner log | The run ended, was cancelled, or the watchdog expired its credential. Start a new run |
E_RUN_SCOPE on import | The account is not in the approved selection, or the run is no longer active |
E_IDEMPOTENCY_CONFLICT | The same import key was reused with a different payload, which means the source data changed mid-run. Restart the run for that account |
| Transfer fails although imports succeeded | The transfer credential is missing or expired. Check grep bolt-migration-run /root/.ssh/authorized_keys and the agent log, then restart the run for the transfer phase |
Status stalled while the source is clearly working | The uplink from the source to this panel is broken, and the migration continues regardless. Restore outbound HTTPS and the run resumes reporting |
Earlier export and import pages ​
Before panel 1.9.1, Migration opened on an Export tab, with Import and History next to it. Those pages exported an account's panel records to a file and imported such a file, without moving any files, databases, or mail. They are removed, and their addresses, /admin/migration/export-hosting-account, /admin/migration/import-hosting-account, and /admin/migration/exported-accounts-list, lead to this page.
Exporting and importing accounts keeps working where the panel uses it: account migration between AdminBolt nodes, the REST API, bolt-cli, and JetBackup.
The removed Import page is not the Import a backup file page of panel 1.9.3. The old page took a file of panel records exported from an AdminBolt server. Import a backup file takes a cPanel account backup, with the files, databases, and mail it holds, and is opened from the button in this page's header.
Related ​
- Migration: which one do you need? - how this differs from the other features called migration.
- Migrating to AdminBolt - the
bolt-migratetool run from the source server, for whole-server moves and in-place conversions. - Import a backup file - bring one account in from a cPanel backup file, without access to the old server.
- Hosting Accounts - where migrated accounts appear once they are provisioned.
- Cluster Accounts - account migration between AdminBolt nodes.