Messaging Server 6.1 116588-99, imsrestore -m mapfile Hangs (Doc ID 1346965.1)

Last updated on JANUARY 11, 2017

Applies to:

Oracle Communications Messaging Server - Version 6.1 to 6.2.0 [Release 6.1 to 6.2.0]
Information in this document applies to any platform.

Symptoms

In Messaging Server 6.1 patch 116568-99, "imsrestore -m mapfile" hangs.

Note: this was working in 116568-53.

Steps to reproduce the issue:
---------------------------------
1. Create new user entry (e.g. restore1) in Directory Server. At this point, the user does not have a mailbox yet.

2. Run imsrestore with a mapping from an existing user (e.g. "user1") to the new user, i.e. restore mailbox from "user1" to "restore1":

a.) Create a mapfile called "mapfile" with an entry like this:
test1=restore1

b.) Run imsrestore ("test1-imsbackup" is the backup of test1's mailbox):
# ./imsrestore -v2 -m mapfile -f test1-imsbackup /primary/user/test1

The resulting output is:

--------------------------------------------
Tape Version  : 2
Backup Date   : Tue, 12 Jul 2011 15:29:53
Message Store : mailstore1.domain1.com
Block factor  : 20
--------------------------------------------
/primary/user/test1 ->mailrestore restoring...
/primary/user/test1/INBOX ->mailrestore restoring...

=> imsrestore is hung (deadlocked).

3. Pstack of the imsrestore process:

# pstack 8323
8323:   ./imsrestore -v2 -m mapfile -f test1-imsbackup-file /primary/
fe24c7f4 lwp_cond_wait (f9544c50, f9544c38, 0, 0)
fef1c40c __db_pthread_mutex_lock_4002 (159938, f9544c38, f8da3a20, f9544c50, fefe9ddc, 0) + ac
fefa981c __lock_get_internal (a9bd0, 3c, 0, f8da3a20, 2, 0) + cac
fefa8b24 __lock_get_4002 (159938, 3c, 0, ffbfe1d0, 2, 213bbc) + 70
fefa8a90 __lock_get_pp_4002 (159938, 3c, 0, ffbfe1d0, 2, 213bbc) + 138
ff248ed8 lock_internal (f, ffbfe250, 1, 0, ffbfde8c, 0) + 288
ff249200 lock_blocking (f, 74117, ffbfe42b, 0, ffbfe3dc, 0) + 50
000425b4 mailbox_lock_index (ffbfe950, 0, 0, ffbfe950, 80808080, 1010101) + 124
000533d4 mboxlist_setacl (18a6bc, b9e0c, b9e12, 18a2bc, 0, 1010101) + e4
000291d4 __1cHMailboxLrestoreData6MpnFVdata__i_ (18a058, ffbff514, b9e08, 1, b9e08, baddc800) + 53c
0001f450 __1cOrestore_object6FpnFBKDEV_pnFBkObj_I_i_ (19f7a8, 18a058, 14, 90d68, 28a2c, d) + c0
0001ef44 __1cLrestore_ims6FpnJBkSession_pnFBKDEV_pnIUserList_pnIUserHash__i_ (a9900, 19f7a8, b9cf0, 159128, 1f4b8, ffbffd68) + 5d4
0001e25c main     (7, ffbffdf4, ffbffe14, 88400, fdc70040, 0) + 9d4
0001d860 _start   (0, 0, 0, 0, 0, 0) + 108
#


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