<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 02/08/2011 09:36 AM, Reinhard Nappert wrote:
<blockquote
cite="mid:DF7F294AF4153D498141CBEFADB177049BA7789829@EMBX01-WF.jnpr.net"
type="cite">
<title></title>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18928">
<div dir="ltr" align="left"><span class="115293417-08022011"><font
color="#0000ff" face="Arial" size="2">I did use the perl
scripts (because, I want to import and export as non-root
users). I did not restart the server before I tried to
import. This should be ok, right?</font></span></div>
</blockquote>
Yes, it has to work... :)<br>
--noriko<br>
<blockquote
cite="mid:DF7F294AF4153D498141CBEFADB177049BA7789829@EMBX01-WF.jnpr.net"
type="cite">
<div dir="ltr" align="left"><span class="115293417-08022011"></span> </div>
<div dir="ltr" align="left"><span class="115293417-08022011"><font
color="#0000ff" face="Arial" size="2">-Reinhard</font></span></div>
<br>
<div dir="ltr" class="OutlookMessageHeader" align="left"
lang="en-us">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:389-users-bounces@lists.fedoraproject.org">389-users-bounces@lists.fedoraproject.org</a>
[<a class="moz-txt-link-freetext" href="mailto:389-users-bounces@lists.fedoraproject.org">mailto:389-users-bounces@lists.fedoraproject.org</a>] <b>On
Behalf Of </b>Noriko Hosoi<br>
<b>Sent:</b> Tuesday, February 08, 2011 12:32 PM<br>
<b>To:</b> General discussion list for the 389 Directory
server project.<br>
<b>Subject:</b> Re: [389-users] Export/import with 389 DS
1.2.7.5<br>
</font><br>
</div>
Rich Megginson wrote:
<blockquote cite="mid:4D517D55.6020904@redhat.com" type="cite">On
02/08/2011 10:26 AM, Reinhard Nappert wrote:
<blockquote
cite="mid:DF7F294AF4153D498141CBEFADB177049BA77897F3@EMBX01-WF.jnpr.net"
type="cite">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18928">
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"
size="2"><span class="030372517-08022011">I haven't seen
any responses so far. Any idea?</span></font></div>
</blockquote>
Sorry. Please file a bug. Any chance you could try to
reproduce this with 1.2.8?<br>
</blockquote>
Not sure what is happening, but does it occur if you use ldif2db
(after shutting down the server)? Or how about running ldif2db.pl
after restarting the server?<br>
<blockquote cite="mid:4D517D55.6020904@redhat.com" type="cite">
<blockquote
cite="mid:DF7F294AF4153D498141CBEFADB177049BA77897F3@EMBX01-WF.jnpr.net"
type="cite">
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"
size="2"><span class="030372517-08022011"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"
size="2"><span class="030372517-08022011">Thanks,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"
size="2"><span class="030372517-08022011">-Reinhard</span></font></div>
<br>
<div dir="ltr" class="OutlookMessageHeader" align="left"
lang="en-us">
<hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
Reinhard Nappert <br>
<b>Sent:</b> Tuesday, February 01, 2011 9:40 AM<br>
<b>To:</b> '<a class="moz-txt-link-abbreviated"
href="mailto:389-users@lists.fedoraproject.org"
moz-do-not-send="true">389-users@lists.fedoraproject.org</a>'<br>
<b>Subject:</b> Export/import with 389 DS 1.2.7.5<br>
</font><br>
</div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">Hi,</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011"></span></font> </div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">I have a working MM setup and
I exported my db with db2ldif.pl with the -r option:</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011"></span></font> </div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">db2ldif.pl -D 'cn=Directory
Manager' -w password -n userRoot -r -a
/tmp/db_replica.ldif</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011"></span></font> </div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">The errors file do not
indicate an issue:</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">[01/Feb/2011:09:23:59 -0500]
- Beginning export of 'userRoot'<br>
[01/Feb/2011:09:23:59 -0500] - export userRoot:
Processed 1000 entries (10%).<br>
[01/Feb/2011:09:23:59 -0500] - export userRoot:
Processed 2000 entries (21%).<br>
[01/Feb/2011:09:23:59 -0500] - export userRoot:
Processed 3000 entries (32%).<br>
[01/Feb/2011:09:24:00 -0500] - export userRoot:
Processed 4000 entries (43%).<br>
[01/Feb/2011:09:24:00 -0500] - export userRoot:
Processed 5000 entries (54%).<br>
[01/Feb/2011:09:24:00 -0500] - export userRoot:
Processed 6000 entries (65%).<br>
[01/Feb/2011:09:24:00 -0500] - export userRoot:
Processed 7000 entries (76%).<br>
[01/Feb/2011:09:24:00 -0500] - export userRoot:
Processed 8000 entries (87%).<br>
[01/Feb/2011:09:24:00 -0500] - export userRoot:
Processed 9000 entries (98%).<br>
[01/Feb/2011:09:24:00 -0500] - export userRoot:
Processed 9160 entries (100%).<br>
[01/Feb/2011:09:24:00 -0500] - Export finished.<br>
</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">and the ldif file itself
looks fine to me as well.</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011"></span></font> </div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">Then, I tried to import the
ldif file with</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011"></span></font> </div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">ldif2db.pl -D 'cn=Directory
Manager' -w password -n userRoot -i /tmp/db_replica.ldif</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011"></span></font> </div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">This fails with the following
errors log:</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">[01/Feb/2011:09:29:45 -0500]
- Bringing userRoot offline...<br>
[01/Feb/2011:09:29:45 -0500] NSMMReplicationPlugin -
multimaster_be_state_change: replica o=umc is going
offline; disabling replication<br>
[01/Feb/2011:09:29:46 -0500] - entrycache_clear_int:
there are still 1 entries in the entry cache. :/<br>
[01/Feb/2011:09:29:49 -0500] - WARNING: Import is
running with nsslapd-db-private-import-mem on; No other
process is allowed to access the database<br>
[01/Feb/2011:09:29:49 -0500] - import userRoot:
Beginning import job...<br>
[01/Feb/2011:09:29:49 -0500] - import userRoot: Index
buffering is disabled.<br>
[01/Feb/2011:09:29:49 -0500] - import userRoot:
Processing file "/tmp/db_replica.ldif"<br>
[01/Feb/2011:09:29:49 -0500] - BAD CACHE ASSERTION at
../ldap/servers/slapd/back-ldbm/cache.c/883:
e->ep_refcnt > 0<br>
</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011"></span></font> </div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">Any idea, what is going on
there.</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011"></span></font> </div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">Thanks,</span></font></div>
<div><font face="Arial" size="2"><span
class="387023114-01022011">-Reinhard</span></font></div>
<div><font face="Arial" size="2"><br>
</font></div>
<div><font face="Arial" size="2"><br>
</font></div>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
--
389 users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-users@lists.fedoraproject.org" moz-do-not-send="true">389-users@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-users" moz-do-not-send="true">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
</blockquote>
<br>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
--
389 users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
</blockquote>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
389 users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
</blockquote>
<br>
</body>
</html>