Rehostuser Hangs Because SSH Has Hung (Doc ID 2271288.1)

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.

Symptoms

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:

.
.
/io/user/john_smith/Vendors/Oracle restoring...
/io/user/john_smith/Vendors/Qlogic restoring...
/io/user/john_smith/Vendors/SafeNet restoring...
/io/user/john_smith/Vendors/Symantec restoring...
Mailbox john_smith copied successfully.
disconnecting john_smith

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.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms