• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Plesk migrate

unsuwe0

New Pleskian
Hi
I have Problems to Migrate Plesk to Plesk.
It says

Plesk for Linux is not found on the specified source server.
Debian 9 Obsidian 18.0.25 on both Server.
Where is the bug?

Uwe
 
This problem usually related to different shells on the source and target servers. Please check log file /usr/local/psa/var/modules/panel-migrator/sessions/<session ID>/debug.log and try to find there error message like:

Code:
|D|MT|sub.example.com|||stderr: LANG=en_US.utf-8: Command not found.
The default shell from root account on the source server is /bin/csh (or other than /bin/bash). LANG=en_US.utf-8 will fail under this shell.

If you see this, you have to change shell for the root user on the source server to bash.
 
Code:
+|2020-03-31_17:58:33,614|D|MT|core.runners.base|||Execute command on the source server 'source' (...........): /bin/cat /etc/psa/psa.conf
+|2020-03-31_17:58:33,644|D|MT|core.runners.base|||Command execution results:
=|2020-03-31_17:58:33,644|D|MT|core.runners.base|||stdout: ***hidden***
=|2020-03-31_17:58:33,644|D|MT|core.runners.base|||stderr: ***hidden***
=|2020-03-31_17:58:33,644|D|MT|core.runners.base|||exit code: 1
+|2020-03-31_17:58:33,646|D|MT|plesk.source.plesk.connections.source_connections|||Exception:
=|Traceback (most recent call last):
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/plesk/connections/source_connections.py", line 142, in _check_source_version
=|    unused(source_server.plesk_dir)
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/common/__init__.py", line 253, in wrapper
=|    value = func(*args, **kw)
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/plesk_server.py", line 192, in plesk_dir
=|    return self._psa_conf_reader.get_product_root_dir()
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/plesk_server.py", line 457, in get_product_root_dir
=|    ('PRODUCT_ROOT_D',), messages.DEBUG_UNIX_PRODUCT_ROOT_DIRECTORY
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/common/__init__.py", line 253, in wrapper
=|    value = func(*args, **kw)
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/plesk_server.py", line 478, in _get_var
=|    conf_variables = self._get_psa_conf_vars()
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/common/__init__.py", line 253, in wrapper
=|    value = func(*args, **kw)
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/plesk_server.py", line 500, in _get_psa_conf_vars
=|    '/bin/cat /etc/psa/psa.conf', execution_options=ExecutionOptions(log_output=False)
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/runners/base.py", line 125, in execute_command
=|    execution_options.log_output, output_encoding
=|  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/runners/base.py", line 162, in _check_exit_code
=|    exit_code=exit_code
=|NonZeroExitCodeException: Command execution failed on the source server 'source' (...............) with non-zero exit code.
=|command: /bin/cat /etc/psa/psa.conf
=|exit code: 1
=|stdout: ***hidden***
=|stderr: ***hidden***
+|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||Exception:
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||Traceback (most recent call last):
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/workflow/runner/by_subscription.py", line 164, in run_multi_attempts
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||    run()
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/workflow/runner/by_subscription.py", line 153, in run
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||    action.run(self._context)
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/actions/base/legacy_action.py", line 68, in run
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||    self.function(global_context)
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/workflow/shared_hosting_workflow.py", line 345, in <lambda>
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||    function=lambda ctx: ctx.migrator._check_connections(ctx.options)
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/migrator.py", line 250, in _check_connections
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||    self._check_sources()
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/migrator.py", line 397, in _check_sources
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||    self.global_context.conn.check_source_servers()
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/plesk/connections/source_connections.py", line 107, in check_source_servers
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||    self._check_source_version()
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/plesk/connections/source_connections.py", line 152, in _check_source_version
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||    raise MigrationNoContextError(error_message)
=|2020-03-31_17:58:33,648|D|MT|core.workflow.runner.by_subscription|||MigrationNoContextError: Plesk for Linux is not found on the specified source server.
+|2020-03-31_17:58:33,652|D|MT|core.workflow.runner.by_subscription|||START: Uninstall migration agent files
+|2020-03-31_17:58:33,652|D|MT|core.workflow.runner.by_subscription|||FINISH: Uninstall migration agent files
+|2020-03-31_17:58:33,653|D|MT|core.workflow.runner.by_subscription|||START: Remove temporary users and SSH keys that were required to transfer files
+|2020-03-31_17:58:33,653|D|MT|core.workflow.runner.by_subscription|||FINISH: Remove temporary users and SSH keys that were required to transfer files
+|2020-03-31_17:58:33,654|D|MT|core.workflow.runner.by_subscription|||START: Remove temporary SSH keys
+|2020-03-31_17:58:33,665|D|MT|core.workflow.runner.by_subscription|||FINISH: Remove temporary SSH keys
+|2020-03-31_17:58:33,666|D|MT|core.workflow.runner.by_subscription|||START: Close SSH connections
+|2020-03-31_17:58:33,666|D|MT|core.connections.ssh.connection_pool|||Closing SSH connection to the source server 'source' (..........)
+|2020-03-31_17:58:33,667|D|MT|core.connections.ssh.lazy_open_ssh_connection|||Close SSH connection to the the source server 'source' (..........)
+|2020-03-31_17:58:33,781|D|MT|core.workflow.runner.by_subscription|||FINISH: Close SSH connections
+|2020-03-31_17:58:33,782|D|MT|core.workflow.runner.by_subscription|||START: Shutdown Windows rsync servers
+|2020-03-31_17:58:33,783|D|MT|core.workflow.runner.by_subscription|||FINISH: Shutdown Windows rsync servers
+|2020-03-31_17:58:33,783|D|MT|core.workflow.runner.by_subscription|||START: Stop remote Windows agents
+|2020-03-31_17:58:33,784|D|MT|core.workflow.runner.by_subscription|||FINISH: Stop remote Windows agents
+|2020-03-31_17:58:34,536|D|MT|core.workflow.runner.base|||MIGRATOR END: /opt/psa/admin/sbin/modules//panel-migrator/plesk-migrator generate-migration-list /opt/psa/var/modules/panel-migrator/sessions/20200331124448/config.ini --migration-list-format=json --migration-list-file=/opt/psa/var/modules/panel-migrator/sessions/20200331124448/migration-list-raw.json --skip-services-checks --include-existing-subscriptions --overwrite --reload-source-data
+|2020-03-31_17:58:34,536|E|MT|core.cli.common_cli|||Plesk for Linux is not found on the specified source server.
I can´t see wot´s wrong?
 
Please check the output of the following command on source server:

# /bin/cat /etc/psa/psa.conf
 
Code:
### Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
#
# This file is used to declare the location of different utilities,
# services, and/or packages within Plesk.  No changes should be made
# to this file without first consulting support. Any changes made can
# affect service availability and performance.
#
# Each line in this file follows the following format:
#
# variable [whitespace characters] value
#
# That is, the name of the field, followed by spaces or tabs, followed
# by field value. Trailing spaces are removed.
#

# Plesk tree
PRODUCT_ROOT_D /opt/psa

# Directory of SysV-like Plesk initscripts
PRODUCT_RC_D /etc/init.d

# Directory for config files
PRODUCT_ETC_D /opt/psa/etc

# Directory for service utilities
PLESK_LIBEXEC_DIR /usr/lib/plesk-9.0

# Virtual hosts directory
HTTPD_VHOSTS_D /var/www/vhosts

# Apache configuration files directory
HTTPD_CONF_D /etc/apache2

# Apache include files directory
HTTPD_INCLUDE_D /etc/apache2/conf-enabled

# Deprecated, will be removed. Apache binary
HTTPD_BIN /usr/sbin/apache2

# Apache log files directory
HTTPD_LOG_D /var/log/apache2

# Apache startup script
HTTPD_SERVICE apache2

# Qmail directory
QMAIL_ROOT_D /var/qmail

# Location of qmail maildirs
PLESK_MAILNAMES_D /var/qmail/mailnames

# Path to rblsmtpd
RBLSMTPD /usr/sbin/rblsmtpd

# Bind
NAMED_RUN_ROOT_D /var/named/run-root

# Webalizer
WEB_STAT /usr/bin/webalizer

# MySQL
MYSQL_VAR_D /var/lib/mysql
MYSQL_BIN_D /usr/bin
MYSQL_SOCKET /var/run/mysqld/mysqld.sock

# PostgreSQL
PGSQL_DATA_D /var/lib/postgresql/9.4/main
PGSQL_CONF_D /etc/postgresql/9.4/main
PGSQL_BIN_D /usr/lib/postgresql/9.4/bin

# Backups directory
DUMP_D /var/lib/psa/dumps
# Backups temporary directory. DUMP_TMP_D should not be inside of (or equal to)                                                                                                                                DUMP_D.
DUMP_TMP_D /tmp

# Mailman directories
MAILMAN_ROOT_D /usr/lib/mailman
MAILMAN_VAR_D /var/lib/mailman

# Python binary
PYTHON_BIN /usr/bin/python

# DrWeb
DRWEB_ROOT_D /opt/drweb
DRWEB_ETC_D  /etc/drweb

# GnuPG binary
GPG_BIN /usr/bin/gpg

# Tar binary
TAR_BIN /bin/tar

# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/lib/cgi-bin
AWSTATS_TOOLS_D /usr/share/awstats/tools
AWSTATS_DOC_D /usr/share/awstats

# openssl binary
OPENSSL_BIN /usr/bin/openssl

LIB_SSL_PATH /lib/libssl.so
LIB_CRYPTO_PATH /lib/libcrypto.so

CLIENT_PHP_BIN /opt/psa/bin/php-cli

# SNI
SNI_SUPPORT true

# APS controller
APS_DB_DRIVER_LIBRARY /usr/lib/x86_64-linux-gnu/sw/libmysqlserver.so.2.0

# SpamAssassin max mail size (in bytes)
SA_MAX_MAIL_SIZE 256000
 
Execute command on the source server 'source'

Is this really the same source server you want to migrate from? Are you definitely not mixed up?
 
Do you use root account foк migration? And what are the permissions for /etc/psa/psa.conf file? Сheck it with

# stat /etc/psa/psa.conf
 
Back
Top