Back to Article List

How to read the ispmanager import log after a migration

How to read the ispmanager import log after a migration

The ispmanager import log has one row per item the Migration tool handled, each with a status, and it's the first place to look when an import finishes and something doesn't work. Open Migration tool, select the import and open its log. I read the logs of three cPanel imports: all three said Completed, and all three left problems that the log flagged in one word or didn't mention at all.

What a normal ispmanager import log looks like

My first import, a cPanel account with a WordPress site, two databases and two mailboxes, produced 18 rows in about 30 seconds. They covered the user, the domain, the site, the certificates, each database and database user, each mailbox, the FTP account and the cron job. 16 rows were marked successful.

ispmanager Migration tool log of a cPanel import, 18 rows, with a warning on the two mailbox rows

An import log with 18 rows. The two mailbox rows carry the passwd warning.

According to the Data import page in ispmanager's documentation, each row ends in one of five states: pending, in progress, skipped, imported with warnings or error, the last meaning that item wasn't imported. Read every row that isn't plainly successful. In my three imports there were two kinds.

Fix the "passwd" warning on imported mailboxes

Each mailbox row carried the warning passwd. The mailbox was created and its mail copied, but the password wasn't set from cPanel, so no mail login works until you set a new password on the mailbox under Mail.

I got this warning on every mailbox in all three imports, with a weak password and a strong one, and with the panel's password strength check on and off. Plan for it: list the mailboxes before you start and send each owner a new password once the move is done.

A user row marked Skipped with the reason Exists

In my rsync import the user's row was marked Skipped, reason Exists. The import had created the user at the start in order to copy the files, and the later step found it already there. The account's data arrived in full. On a server where a user with the same name really existed before the import, the same row would mean something else, so check who owns the files afterwards.

Problems a Completed import doesn't flag

These four sat on my imported accounts with every row of theirs marked successful:

ProblemWhere to look
The site has no PHP, so pages come out as source codeThe Handler column in Sites ("Not used" means off), and the user's default PHP mode, which was set to none
The site serves cPanel's old self-signed certificate while a valid one sits unusedThe SSL certificate field of the site's form
The cron line calls a PHP binary and a folder that don't exist hereCRON jobs, entered as the site's owner
The user is limited to 1 websiteThe Websites limit on the user

One thing the log doesn't mention works in your favour. Each imported user arrives with a converted copy of the cPanel account in Backup copies, labelled "User copy", which you can restore from like any other backup.

The wizard misled me once as well. The summary step before my rsync import listed no databases, with Database import ticked, and the database arrived anyway. Trust the log and the result over that summary.

Get ispmanager on a server of your own

Pick a plan by how many websites you host. The panel comes installed and licensed, ready for your first login.
Ciclo di fatturazione

Lite.VPS

$6.99 Save  14 %
$5.99 Mensile

Ottieni 20% di sconto su ispmanager

La scelta migliore per uso personale o piccoli progetti.

  • Fino a 10 siti web
  • 50 GB NVMe archiviazione
  • 2 GB memoria RAM
  • 2 vCPU AMD EPYC
  • ✔1 Gbps non misurato rete
  • ✔ IPv4 & IPv6 incluso Il supporto IPv6 non è attualmente disponibile in France, Finland o nei the Netherlands.
  • ✔Automatico gratuito backup
  • ✔PHP, Python, Node.js supportato
  • La licenza ispmanager viene aggiunta al checkout

Host.VPS

$22.99 Save  22 %
$17.99 Mensile

Ottieni 20% di sconto su ispmanager

Pensato per agenzie, rivenditori e hosting ad alta capacità.

  • Illimitati siti web
  • 200 GB NVMe archiviazione
  • 8 GB memoria RAM
  • 4 vCPU AMD EPYC
  • ✔1 Gbps non misurato rete
  • ✔ IPv4 & IPv6 incluso Il supporto IPv6 non è attualmente disponibile in France, Finland o nei the Netherlands.
  • ✔Automatico gratuito backup
  • ✔PHP, Python, Node.js supportato
  • La licenza ispmanager viene aggiunta al checkout

When an ispmanager import stops with an error

None of mine did, so these are the causes ispmanager's documentation prepares you for, with what I saw of each:

  • Disk space. The Data import page asks for the size of the data plus 200 MB over rsync, and five times the data plus 200 MB from a backup file. My 36 MB archive was nowhere near a limit.
  • Missing software. The receiving server needs the PHP versions and services the account used. Mine had them, and the import picked 8.3 for sites that ran 8.3.
  • Password strength check. The documentation says to switch it off before importing. It made no difference in my tests, so I'd leave it on.
  • MySQL authentication plugin. The documentation asks for default-authentication-plugin=mysql_native_password. My server ran MariaDB 10.11 without that line, and the databases and their passwords imported fine.
  • SSH access for rsync imports. The wizard's key has to be in root's authorized_keys on the cPanel server, and the SSH port has to be reachable from the new one.

For more than the log's one word, the panel records what it does in its own log file, /usr/local/mgr5/var/ispmgr.log. Searching it for the user name around the time of the import showed me the exact request the importer made for each site and mailbox:

grep USERNAME /usr/local/mgr5/var/ispmgr.log | less

If an import stops with an error you can't place, copy the failing row and the matching lines from ispmgr.log. On a LumaDock server, send them to our support team in a ticket and we'll take it to ispmanager's team.

Fix by hand or run the import again

For the problems above, fixing by hand in the panel took me a few minutes per account, and I didn't re-import. A second run over an imported user meets its own leftovers, and the import's "The data exists on the server" setting decides what happens to them, so read that step carefully before you start one. The cPanel migration guide has every fix in order.

Questions?

What does "Error 1227. Access denied" mean when importing a database?

Error 1227 during an import means the dump contains triggers or similar objects that only a database root user may create, according to ispmanager's knowledge base article on importing databases with triggers. The panel restores dumps with the site's database user, which lacks that right. Restoring that one dump as root from the shell, with mysql DATABASE_NAME < dump.sql, gets around it.

Jörg L. Günther
About the author

Jörg L. Günther

Jörg has spent much of his career in enterprise software, working first with database deployments and customer environments, then in technical training and documentation. Since then he has written for companies working in virtualisation, database tooling and cloud infrastructure. The subjects he takes on often have a large operational component: database migrations, high-availability setups, storage configuration and procedures carried out on live systems. Jörg lives near Frankfurt. He plays piano and cycles for transport as much as for recreation. He's also been doing woodworking for several years - he says most of the furniture in his study is his own work.

Run your sites on an ispmanager VPS

The panel comes installed and licensed, with full root access when you need it. Support is available 24/7.