• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Important Plesk Migrator extension

Hello,

We are upgrading all servers from centos 6 (plesk 17) tot centos 7 (plesk 17), after that we upgrade to plesk 18, but thats not important for this bug.

The last few servers we have noted that the migration manager changes the NS servers to ns1.domain.fqn and ns2.domain.fqn, always, for every domain
i think it started with the latest version of the migration manager.

On the source server the domains have regular dns server. for example: ns1a.linulex.net and ns1b.linulex.net
And the dns template on the target server has the correct dns servers.

regards
Jan
 
Hi,

what is the reason why the migrator does not migrate the backup plans of the customers and their backups?

if you migrate a centos 6 server to centos 8, for example, and then the customers no longer have a backup plan or backups, that's not so great.

if the plesk versions of source and target are exactly the same, should that work or not?
 
Last edited:
Good afternoon @peon or other Plesk Staffmember,

We are migrating two Directadmin servers to Plesk but found out that the databases and database users are not migrated.
Source and Destination MariaDB: 10.2.34 / CentOS7

The log shows no errors and everything is processed succesful.

Hope someone can help us with this issue.
Thank you in advance!
 
In my debug log I found the following:

SQL:
Query:
            SELECT
                Subscriptions.id as subscription_id,
                domains.id as domain_id,
                domains.name as name,
                domains.status as status,
                domains.htype as hosting_type,
                domains.vendor_id as owner_id
            FROM
                Subscriptions JOIN domains ON Subscriptions.object_id = domains.id
            WHERE
                Subscriptions.object_type = "domain" AND domains.webspace_id = 0
         AND domains.name in ('<domain1>', '<domain2>', '<domain3>')

Code:
SQL query results: Empty set
 
hello
Directadmin to Plesk Migration i am doing
but I am getting an error like this.
the service stops before it starts.

Failed to deploy Python on source server
Cause: Source server OS 'linux None x86_64' on the source server 'directadmin' (x.x.x.x) is not supported
That is a critical error, migration was stopped.

uname -r
4.18.0-305.10.2.2.lve.el7h.x86_64

cat /proc/version
Linux version 4.18.0-305.10.2.2.lve.el7h.x86_64 (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Wed Jul 28 13:09:44 UTC 2021
 
Failed to deploy Python on source server
Cause: Source server OS 'linux None x86_64' on the source server 'directadmin' (x.x.x.x) is not supported
That is a critical error, migration was stopped.
This is the Plesk Migrator extension bug with ID PMT-5007 which is planned to be fixed in future extension updates.

Until the bug is fixed use the following workaround:
  1. Open the /usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/os_version.py file in a text editor:
    Code:
    # vi /usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/os_version.py
  2. Replace the line as below:
    • Before:
      Code:
      if "CentOS" in release_info:
    • After:
      Code:
      if "CentOS" in release_info or "AlmaLinux" in release_info:
  3. Save the changes and close the file. Start the migration anew.
 
This is the Plesk Migrator extension bug with ID PMT-5007 which is planned to be fixed in future extension updates.

Until the bug is fixed use the following workaround:
  1. Open the /usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/os_version.py file in a text editor:
    Code:
    # vi /usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/os_version.py
  2. Replace the line as below:
    • Before:
      Code:
      if "CentOS" in release_info:
    • After:
      Code:
      if "CentOS" in release_info or "AlmaLinux" in release_info:
  3. Save the changes and close the file. Start the migration anew.
hello Igor i have changed this as you mentioned but now i am facing a new error

Plesk Migrator returned non-zero exit code

COMMAND: '/usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator' 'generate-migration-list' '/opt/psa/var/modules/panel-migrator/sessions/20221216095717/config.ini' '--migration-list-format=json' '--migration-list-file=/opt/psa/var/modules/panel-migrator/sessions/20221216095717/migration-list-raw.json' '--skip-services-checks' '--include-existing-subscriptions' '--async' '--overwrite' '--reload-source-data'

EXIT CODE: 1

STDOUT:
[2022-12-16 10:01:41][ERROR] Internal Plesk Migrator error: 'unexpected indent (os_version.py, line 172)', migration is aborted. See the traceback in debug log for more information.


STDERR:
 
Hi

I've started migrating to Plesk from direct admin,

I received this error:

Failed to deploy Python on the source server
Cause: Source server OS 'cloudlinux 8 x86_64' on the source server 'directadmin' (xx.xx.xx.xx) is not supported
That is a critical error, migration was stopped.

It is unclear if cloudlinux 8 is supported or if the issue is different.

Please guide.
 
Plesk Migrator used to migrate a user with one subscription, one domain, with a Joomla installation in it from one Plesk server to another Plesk server. Both servers identical setup. Plesk 18.0.57 #5, Almalinux 8.9

error during migration
Restoration of hosting settings (addon domains, mailboxes, PHP settings, etc) of subscription failed.
Check PMM restoration logs for more details.
Error code: 1000
Error message: PHP Warning: Attempt to read property "guid" on null; File: /usr/local/psa/admin/plib/backup/Conflicts/Detector.php, Line: 439

PHP Warning: Attempt to read property "guid" on null in /usr/local/psa/admin/plib/backup/Conflicts/Detector.php on line 439
Error: Can not find IP addresses for owner specified as [2023-12-19 09:52:09.985] 631320:65814ba9c7cf3 ERR [panel] PleskUserException: Can not find IP addresses for owner specified as in /usr/local/psa/admin/plib/backup/Conflicts/PleskDataManager.php:702
Stack trace:
#0 /usr/local/psa/admin/plib/backup/Conflicts/Detector.php(439): backup_Conflicts_PleskDataManager->getIpsByOwnerGuid(NULL)
#1 /usr/local/psa/admin/plib/backup/Conflicts/Detector.php(384): backup_Conflicts_Detector->_getIpAddressesForMapping(Object(DOMDocument))
#2 /usr/local/psa/admin/plib/backup/Conflicts/Detector.php(45): backup_Conflicts_Detector->_findConflicts(Object(DOMDocument))
#3 /usr/local/psa/admin/plib/backup/Conflicts/ConflictsRunner.php(81): backup_Conflicts_Detector->findConflicts()
#4 /usr/local/psa/admin/plib/backup/Conflicts/Runner.php(16): ConflictsRunner::run(Array)
#5 {main}
The migration does seem to have worked though. Site on new server appears functional. Am still checking the details.
 
still regarding above. From the pmmcli.log

[2023-12-19 09:52:10.004|631244] CRITICAL: PMMUtilityException:
<class 'pmmcli_exceptions.PMMUtilityException'> Conflict Detector was finished with exit code 1
Traceback (most recent call last):
File "/usr/local/psa/admin/sbin/pmmcli/pmm_conflict_detector.py", line 117, in run
cmd.spawn()
File "/usr/local/psa/admin/sbin/pmmcli/subproc.py", line 284, in spawn
self.proc.run()
File "/usr/local/psa/admin/sbin/pmmcli/subproc.py", line 224, in run
BaseSubprocess.run(self)
File "/usr/local/psa/admin/sbin/pmmcli/subproc.py", line 198, in run
self.wait()
File "/usr/local/psa/admin/sbin/pmmcli/subproc.py", line 232, in wait
BaseSubprocess.wait(self)
File "/usr/local/psa/admin/sbin/pmmcli/subproc.py", line 212, in wait
raise NonzeroExitException(self, self.__retcode)
subproc.NonzeroExitException: was finished with exit code 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/psa/admin/sbin/pmmcli/pmmcli.py", line 1006, in doActivity
File "/usr/local/psa/admin/sbin/pmmcli/pmmcli_session.py", line 543, in detectConflicts
return self.__doDetectConflicts()
File "/usr/local/psa/admin/sbin/pmmcli/pmmcli_session.py", line 538, in __doDetectConflicts
pmm_conflict_detector.ConflictDetector.run(owner_guid,self.__conflict_description,self.__session_path, self.__dump_index)
File "/usr/local/psa/admin/sbin/pmmcli/pmm_conflict_detector.py", line 122, in run
raise PMMUtilityException('Conflict Detector', x)
pmmcli_exceptions.PMMUtilityException: Conflict Detector was finished with exit code 1

[2023-12-19 09:52:10.005|631244] DEBUG: send-error-report /usr/local/psa/admin/bin/send-error-report <?xml version="1.0" ?><error><file>pmmcli, NonzeroExitError</file><line>0</line><message>Command: /usr/local/psa/bin/sw-engine-pleskrun -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/backup/Conflicts/Runner.php --detect-conflicts --owner-guid=None --restore-specification=/usr/local/psa/PMM/rsessions/20231219095208922/dump/dump_index.xml --conflicts-description-out=/usr/local/psa/PMM/rsessions/20231219095208922/conflict_description --session-path=/usr/local/psa/PMM/rsessions/20231219095208922 --log=conflict-detect.log --debug
Code: 1
STDOUT:
STDERR: PHP Warning: Attempt to read property &quot;guid&quot; on null; File: /usr/local/psa/admin/plib/backup/Conflicts/Detector.php, Line: 439

PHP Warning: Attempt to read property &quot;guid&quot; on null in /usr/local/psa/admin/plib/backup/Conflicts/Detector.php on line 439
Error: Can not find IP addresses for owner specified as [2023-12-19 09:52:09.985] 631320:65814ba9c7cf3 ERR [panel] PleskUserException: Can not find IP addresses for owner specified as in /usr/local/psa/admin/plib/backup/Conflicts/PleskDataManager.php:702
Stack trace:
#0 /usr/local/psa/admin/plib/backup/Conflicts/Detector.php(439): backup_Conflicts_PleskDataManager-&gt;getIpsByOwnerGuid(NULL)
#1 /usr/local/psa/admin/plib/backup/Conflicts/Detector.php(384): backup_Conflicts_Detector-&gt;_getIpAddressesForMapping(Object(DOMDocument))
#2 /usr/local/psa/admin/plib/backup/Conflicts/Detector.php(45): backup_Conflicts_Detector-&gt;_findConflicts(Object(DOMDocument))
#3 /usr/local/psa/admin/plib/backup/Conflicts/ConflictsRunner.php(81): backup_Conflicts_Detector-&gt;findConflicts()
#4 /usr/local/psa/admin/plib/backup/Conflicts/Runner.php(16): ConflictsRunner::run(Array)
#5 {main}

</message><trace> File &quot;/usr/lib64/python3.6/runpy.py&quot;, line 193, in _run_module_as_main
&quot;__main__&quot;, mod_spec)
File &quot;/usr/lib64/python3.6/runpy.py&quot;, line 85, in _run_code
exec(code, run_globals)
File &quot;/usr/local/psa/admin/sbin/pmmcli/__main__.py&quot;, line 25, in &lt;module&gt;
bootstrap_pex(__entry_point__)
File &quot;/usr/local/psa/admin/sbin/pmmcli/.bootstrap/_pex/pex_bootstrapper.py&quot;, line 98, in bootstrap_pex
pex.PEX(entry_point).execute()
File &quot;/usr/local/psa/admin/sbin/pmmcli/.bootstrap/_pex/pex.py&quot;, line 332, in execute
self._wrap_coverage(self._wrap_profiling, self._execute)
File &quot;/usr/local/psa/admin/sbin/pmmcli/.bootstrap/_pex/pex.py&quot;, line 262, in _wrap_coverage
runner(*args)
File &quot;/usr/local/psa/admin/sbin/pmmcli/.bootstrap/_pex/pex.py&quot;, line 294, in _wrap_profiling
runner(*args)
File &quot;/usr/local/psa/admin/sbin/pmmcli/.bootstrap/_pex/pex.py&quot;, line 375, in _execute
return self.execute_entry(self._pex_info.entry_point)
File &quot;/usr/local/psa/admin/sbin/pmmcli/.bootstrap/_pex/pex.py&quot;, line 433, in execute_entry
runner(entry_point)
File &quot;/usr/local/psa/admin/sbin/pmmcli/.bootstrap/_pex/pex.py&quot;, line 438, in execute_module
runpy.run_module(module_name, run_name='__main__')
File &quot;/usr/lib64/python3.6/runpy.py&quot;, line 208, in run_module
return _run_code(code, {}, init_globals, run_name, mod_spec)
File &quot;/usr/lib64/python3.6/runpy.py&quot;, line 85, in _run_code
exec(code, run_globals)
File &quot;/usr/local/psa/admin/sbin/pmmcli/pmmcli.py&quot;, line 2583, in &lt;module&gt;
File &quot;/usr/local/psa/admin/sbin/pmmcli/pmmcli.py&quot;, line 2534, in main
File &quot;/usr/local/psa/admin/sbin/pmmcli/pmmcli.py&quot;, line 2395, in restore
File &quot;/usr/local/psa/admin/sbin/pmmcli/pmmcli.py&quot;, line 102, in doActivity
File &quot;/usr/local/psa/admin/sbin/pmmcli/pmmcli.py&quot;, line 1006, in doActivity
File &quot;/usr/local/psa/admin/sbin/pmmcli/pmmcli_session.py&quot;, line 543, in detectConflicts
return self.__doDetectConflicts()
File &quot;/usr/local/psa/admin/sbin/pmmcli/pmmcli_session.py&quot;, line 538, in __doDetectConflicts
pmm_conflict_detector.ConflictDetector.run(owner_guid,self.__conflict_description,self.__session_path, self.__dump_index)
File &quot;/usr/local/psa/admin/sbin/pmmcli/pmm_conflict_detector.py&quot;, line 117, in run
cmd.spawn()
File &quot;/usr/local/psa/admin/sbin/pmmcli/subproc.py&quot;, line 284, in spawn
self.proc.run()
File &quot;/usr/local/psa/admin/sbin/pmmcli/subproc.py&quot;, line 224, in run
BaseSubprocess.run(self)
File &quot;/usr/local/psa/admin/sbin/pmmcli/subproc.py&quot;, line 198, in run
self.wait()
File &quot;/usr/local/psa/admin/sbin/pmmcli/subproc.py&quot;, line 232, in wait
BaseSubprocess.wait(self)
File &quot;/usr/local/psa/admin/sbin/pmmcli/subproc.py&quot;, line 212, in wait
raise NonzeroExitException(self, self.__retcode)
File &quot;/usr/local/psa/admin/sbin/pmmcli/subproc.py&quot;, line 61, in __init__
self.stackTrace = stackTrace if stackTrace else traceback.format_stack()
</trace></error>
[2023-12-19 09:52:10.010|631244] INFO: Executing asynchronously <subprocess[631325] '/usr/local/psa/admin/bin/send-error-report send-error-report pmm'>
[2023-12-19 09:52:10.012|631244] DEBUG: <__main__.RestoreAction object at 0x7f0171d39a20>: response
[2023-12-19 09:52:10.017|631244] INFO: Outgoing packet:
<?xml version="1.0" ?><response>
<errcode>1000</errcode>
<errmsg>PHP Warning: Attempt to read property &quot;guid&quot; on null; File: /usr/local/psa/admin/plib/backup/Conflicts/Detector.php, Line: 439

PHP Warning: Attempt to read property &quot;guid&quot; on null in /usr/local/psa/admin/plib/backup/Conflicts/Detector.php on line 439
Error: Can not find IP addresses for owner specified as [2023-12-19 09:52:09.985] 631320:65814ba9c7cf3 ERR [panel] PleskUserException: Can not find IP addresses for owner specified as in /usr/local/psa/admin/plib/backup/Conflicts/PleskDataManager.php:702
Stack trace:
#0 /usr/local/psa/admin/plib/backup/Conflicts/Detector.php(439): backup_Conflicts_PleskDataManager-&gt;getIpsByOwnerGuid(NULL)
#1 /usr/local/psa/admin/plib/backup/Conflicts/Detector.php(384): backup_Conflicts_Detector-&gt;_getIpAddressesForMapping(Object(DOMDocument))
#2 /usr/local/psa/admin/plib/backup/Conflicts/Detector.php(45): backup_Conflicts_Detector-&gt;_findConflicts(Object(DOMDocument))
#3 /usr/local/psa/admin/plib/backup/Conflicts/ConflictsRunner.php(81): backup_Conflicts_Detector-&gt;findConflicts()
#4 /usr/local/psa/admin/plib/backup/Conflicts/Runner.php(16): ConflictsRunner::run(Array)
#5 {main}
 
I got this error while migrating :

Failed to generate migration list file
Cause: Violation of BIDI requirement 3


(Plesk Obsidian latest edition - Windows server)

What is this issue for ?
 
Back
Top