Rehostuser Hangs Because SSH Has Hung
Last updated on MAY 30, 2017
Applies to:Oracle Communications Messaging Server - Version 8.0.1 and later
Information in this document applies to any platform.
We run rehostuser command with -i -x options in a script which logs to stdout and stderr.
What I see, for example, is like the following on the source system:
Mailbox john_smith copied successfully.
So we know the imsbackup==>ssh==>imsrestore of the first "half" of rehostuser completed, rehostuser has changed the user's mailUserStatus to "defer" and done imsconnutil -k.
'ptree' command on that rehostuser process shows it started ssh and imsbackup, but there is no indication of that new imsrestore process on the destination system.
For some reason, in the middle of doing multiple migrations, the key for the remote system changed, causing SSH to need to prompt.
This was duplicated (and solved) the problem manually:
mailhost:/gcs/app/mail/imsadmin/migration/log$ ssh mailserver.abc.com pwd
The authenticity of host 'mailserver.abc.com (17.179.xxx.xx)' can't be established.
RSA key fingerprint is d4:0d:ff:79:ad:d7:92:0b:a2:9f:6c:6c:07:11:a6:4c.
Are you sure you want to continue connecting (yes/no)?
After saying yes to that, it now works without prompting.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms