• 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

Migration issue (SSH timeout)

A

a_smith@

Guest
Hi
I have to migrate to the new server.
Had no problem with 6 websites but the last one wont migrate.
PMM hangs out an produce some error messages in the log file.

What is wrong?

Other ( successfull sites) were 50-150MB (include mysql dump).
This failed one has 4GB to migrate.



204852: Debug 19/09/2008 00:11:26.123 : Debug : SSHConnectionWrapper::ExecuteCommand command=(rm -d -r -f '/usr/local/PMMWin/')
204852: Warning 19/09/2008 00:11:26.123 : Warning : SSHConnection#2::Unable to parse 'SSHTimeout' settings value from application configuration file. Default value used
204852: Debug 19/09/2008 00:11:26.123 : Debug : SSHConnection#2:SSHTimeout is set to 300
204852: Debug 19/09/2008 00:11:26.123 : Debug : SSHConnection#2:executeCommandAsync command=(rm -d -r -f '/usr/local/PMMWin/')
204852: Debug 19/09/2008 00:11:26.123 : Debug : SSHConnection#2: onStateChange From (Disconnected) to (Connecting)
204852: Debug 19/09/2008 00:11:28.264 : Debug : SSHConnection#2: onStateChange From (Connecting) to (Connected)
204852: Debug 19/09/2008 00:11:28.264 : Debug : SSHConnection#2:: waitConnect (0) sec
204852: Debug 19/09/2008 00:11:38.311 : Debug : SSHConnection#2:: onStateChange From (Connected) to (Disconnected)
204852: Debug 19/09/2008 00:11:38.311 : Debug : SSHConnection#2::waitConnect (10.046875) sec
204852: Debug 19/09/2008 00:11:38.311 : ----------------------------------------
204852: Debug 19/09/2008 00:11:38.311 : Debug : SSHConnectionWrapper::ExecuteCommand command=(perl -e 'if(-d "/usr/local/PMMWin/7996ac40-cdd0-44f0-bc45-783769dcb8c1"){print "directory";}else {print "nondirectory";}')
204852: Warning 19/09/2008 00:11:38.311 : Warning : SSHConnection#3::Unable to parse 'SSHTimeout' settings value from application configuration file. Default value used
204852: Debug 19/09/2008 00:11:38.311 : Debug : SSHConnection#3::SSHTimeout is set to 300
204852: Debug 19/09/2008 00:11:38.311 : Debug : SSHConnection#3::executeCommandAsync command=(perl -e 'if(-d "/usr/local/PMMWin/7996ac40-cdd0-44f0-bc45-783769dcb8c1"){print "directory";}else {print "nondirectory";}')
204852: Debug 19/09/2008 00:11:38.311 : Debug : SSHConnection#3::eek:nStateChange From (Disconnected) to (Connecting)
204852: Debug 19/09/2008 00:11:39.561 : Debug : SSHConnection#3::eek:nStateChange From (Connecting) to (Connected)
204852: Debug 19/09/2008 00:11:39.576 : Debug : SSHConnection#3::waitConnect (0) sec
204852: Debug 19/09/2008 00:11:39.779 : Debug : SSHConnection#3::eek:nDataReceive Receive (12) bytes
204852: Debug 19/09/2008 00:11:39.779 : Debug : SSHConnection#3::eek:nStateChange From (Connected) to (Disconnected)
204852: Debug 19/09/2008 00:11:39.779 : Debug : SSHConnection#3::waitConnect (0.203125) sec
204852: Debug 19/09/2008 00:11:39.779 : UnixConnection::IsDirectory (/usr/local/PMMWin/7996ac40-cdd0-44f0-bc45-783769dcb8c1):False
204852: Debug 19/09/2008 00:11:39.779 : ----------------------------------------
204852: Debug 19/09/2008 00:11:39.795 : UnixConnection::RemoveDirectory Successfully removed: True
204852: Debug 19/09/2008 00:11:39.795 : ----------------------------------------
204852: Debug 19/09/2008 00:11:39.795 : UnixAgentProxy::Remove finished
204852: Debug 19/09/2008 00:11:39.795 : UnixScoutProxy::RemoveAgent Agent removed
204852: Debug 19/09/2008 00:11:39.795 : UnixScoutProxy::ExtractLogText. Category (Trace)
204852: Debug 19/09/2008 00:11:39.795 : UnixScoutProxy::ExtractLogText. Category (Admin)
204852: Info 19/09/2008 00:11:39.795 : CrossSysAgent::RemoveScout SystemType=(Unix) URI=(http://77.235.37.246:22/WinAgentURI)
204852: Debug 19/09/2008 00:11:39.795 : CrossSysAgent::DisconnectFromScout started
204852: Debug 19/09/2008 00:11:39.795 : CrossSysAgent::DisconnectFromScout finished
204852: Info 19/09/2008 00:11:39.795 : CrossSysAgent::removeScoutFromUnixHost started Host (77.235.37.246)
204852: Info 19/09/2008 00:11:39.795 : CrossSysAgent::connectToUnixHost Try connect to (77.235.37.246) as Unix host via SSH
204852: Debug 19/09/2008 00:11:39.795 : ----------------------------------------
204852: Warning 19/09/2008 00:11:39.795 : Warning : SSHConnection#4::Unable to parse 'SSHTimeout' settings value from application configuration file. Default value used
204852: Debug 19/09/2008 00:11:39.795 : Debug : SSHConnection#4::SSHTimeout is set to 300
204852: Debug 19/09/2008 00:11:39.795 : Debug : SSHConnection#4::eek:nStateChange From (Disconnected) to (Connecting)
204852: Debug 19/09/2008 00:11:40.186 : Debug : SSHConnection#4::eek:nStateChange From (Connecting) to (Connected)
204852: Debug 19/09/2008 00:11:40.186 : Debug : SSHConnection#4::waitConnect (0) sec
204852: Debug 19/09/2008 00:11:40.186 : Debug : SSHConnection#4::eek:nStateChange From (Connected) to (Disconnecting)
204852: Debug 19/09/2008 00:11:40.186 : Debug : SSHConnection#4::eek:nStateChange From (Disconnecting) to (Disconnected)
204852: Debug 19/09/2008 00:11:40.186 : Debug : SSHConnection#4::CheckConnection : True
204852: Debug 19/09/2008 00:11:40.201 : UnixConnection::CheckConnection : True
204852: Debug 19/09/2008 00:11:40.201 : ----------------------------------------
204852: Debug 19/09/2008 00:11:40.201 : UnixScoutProxy::CheckConnection Success
204852: Info 19/09/2008 00:11:40.201 : CrossSysAgent::connectToUnixHost Successfully connected to (77.235.37.246) as Unix host via SSH
204852: Info 19/09/2008 00:11:40.201 : CrossSysAgent::connectToUnixHost remote migrator core version (1.14.3127.30417)
204852: Info 19/09/2008 00:11:40.201 : CrossSysAgent::CheckVersion. remoteVersion (1.14.3127.30417), localVersion (1.14.3127.26282)
204852: Debug 19/09/2008 00:11:40.201 : UnixScoutProxy::OpenSession sessionKey=(7996ac40-cdd0-44f0-bc45-783769dcb8c1)
204852: Debug 19/09/2008 00:11:40.201 : UnixScoutProxy::EndSession sessionKey=(7996ac40-cdd0-44f0-bc45-783769dcb8c1)
204852: Debug 19/09/2008 00:11:40.201 : CrossSysAgent::removeScoutFromUnixHost finished
204852: Debug 19/09/2008 00:11:40.201 : CrossSysAgent::RemoveScout finished
204852: Debug 19/09/2008 00:11:40.201 : MigratorPleskDataManager::GetPleskObjectFactory find Plesk Data file: C:\SWSoft\Plesk\PMM\PleskData86.dll
204852: Debug 19/09/2008 00:11:42.717 : Following migration report was sent:
204852: Debug 19/09/2008 00:11:42.717 : {
204852: Debug 19/09/2008 00:11:42.717 : mipVersion: pmm8.3
204852: Debug 19/09/2008 00:11:42.717 : sourcePlatform: Plesk 8.6.0 CentOS 4.2 86080822.20
204852: Debug 19/09/2008 00:11:42.717 : sourceOs: Linux
204852: Debug 19/09/2008 00:11:42.717 : domainsMigrated: 0
204852: Debug 19/09/2008 00:11:42.717 : transferredData: 0
204852: Debug 19/09/2008 00:11:42.717 : migrationTime: 2812
204852: Debug 19/09/2008 00:11:42.717 : sourceIp: 77.235.37.246
204852: Debug 19/09/2008 00:11:42.717 : destinationIp: 87.230.91.33
204852: Debug 19/09/2008 00:11:42.717 : finishedStep: ScoutDeployed, PlatformSelected
204852: Debug 19/09/2008 00:11:42.717 : success: False
204852: Debug 19/09/2008 00:11:42.717 : destinationPlatform: 8.6.0.3 Windows 2003/2008 20080722.15
204852: Debug 19/09/2008 00:11:42.717 : }
204852: Debug 19/09/2008 00:11:42.717 : Report migration result:
204852: Debug 19/09/2008 00:11:42.717 : {
204852: Debug 19/09/2008 00:11:42.717 : resultCode: 0
204852: Debug 19/09/2008 00:11:42.717 : resultDesc: Migration report successfuly saved
204852: Debug 19/09/2008 00:11:42.717 : detailResultCode: 23
204852: Debug 19/09/2008 00:11:42.717 : }
204852: Debug 19/09/2008 00:11:42.732 : MigrMng75::RemoveScout successfully finished
204852: Debug 19/09/2008 00:11:42.732 : Saving result...
204852: Debug 19/09/2008 00:11:42.732 : migrmng exits with code 0
204852: Debug 19/09/2008 00:11:42.764 : Unload domain.



Any help?
Thanks, Piotr
 
The problem was SSH session timeout during the data data transmission.

Solution:
Find 'migrmng.exe.config' file (default path on Windows Plesk is C:\SWSoft\Plesk\admin\bin\) edit in in wordpad or notepad.

Find <appSettings> section in this file and add <add key="SSHTimeout" value="1500" /> line before closing </appSettings> tag. If this line is already there change the value to 1500 or higher (this is ssh timeout time and default value for Windows Plesk is 300).

In my case the section was:

<appSettings>
<add key="Port" value="6489" />
<add key="ObjectUri" value="WinAgentURI" />
<add key="ChannelType" value="HTTP" />
<add key="DumpDirectory" value="" />
<add key="DumpName" value="" />
<add key="UnixDumpDirectory" value="/usr/local" />
<add key="LogUseDefaultCulture" value="false" />
<add key="SSHTimeout" value="1500" />
</appSettings>

Hope this help others.
 
Back
Top