<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>The Ninja tool can be used like this:</p>
1) Do an export of users to see if the hypothesis is true and if so,
to learn OID of the "wrong" administrator.<br>
<br>
<tt>java [-cp <jdbc_driver_jar>] -jar ninja.jar
--midpoint-home <midpoint home dir> <b>export -t USER</b></tt><br>
<br>
2) Find OID of the conflicting object and delete it (in this sample
I have chosen to delete 00000000-0000-0000-0000-000000000160):<br>
<br>
<tt>java [-cp <jdbc_driver_jar>] -jar ninja.jar
--midpoint-home <midpoint home dir> <b>delete -o
00000000-0000-0000-0000-000000000160 -r -a</b></tt><br>
<p>It then goes like this:<br>
</p>
<p><tt>Initializing repository using midpoint home</tt><tt><br>
</tt><tt>Starting delete</tt><tt><br>
</tt><tt>Do you really want to delete object
'report:00000000-0000-0000-0000-000000000160(Certification
decisions report)'? Yes/No/Cancel</tt><tt><br>
</tt><tt>Yes</tt><tt><br>
</tt><tt>Delete finished. Processed: 1 objects, avg. 12414,0ms</tt><tt><br>
</tt><br>
And then you can just restart midPoint and have the correct
"administrator" object be imported.<br>
</p>
<p>Hope this helps.<br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 06.02.2018 10:32, Pavol Mederly
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5ffba860-d83a-5814-5669-982d4deb002e@evolveum.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>Hello Ramón,</p>
<p>after looking at the logs I think the situation is like this:</p>
<ol>
<li>there is no object with OID
00000000-0000-0000-0000-000000000002</li>
<li>however, there is some user with the name of "administrator"
(before or after normalization, so the name could be e.g.
"Administrator")</li>
</ol>
<p>Because of (1), initial import procedure tries to import file
050-user-administrator.xml. And because of (2) the import fails.</p>
<p>It should be possible to fix that using various means, e.g. by
manually renaming or deleting the conflicting object in the
repo, but I would suggest using the <a moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Ninja">Ninja</a>
tool. (It has also a delete option that is not shown in the
wiki. Just start it and it will print the help to sysout.) <br>
</p>
<p>I will try that and provide you with a sample usage; but just
now I have to go offline for a while. You can try it in the
meanwhile if you want.<br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 25.01.2018 15:49, Ramón Cahenzli
wrote:<br>
</div>
<blockquote type="cite" cite="mid:20180125154900.700eea30@castle">
<pre wrap="">Hi again Pavol and everyone,
Unfortunately, the issue does not stay fixed even when I manually
assign owners to the tasks. Sooner or later they appear to lose their
owners.
I tried an upgrade to 3.7 based on this supposedly fixed data, but
midPoint never really starts. It attempts to start and then throws
exceptions, see attached log file.
If I read things correctly, it tries to create an administrator user
even though there is one already. I'm happy to supply logs that are more
interesting.
Cheers and thanks,
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" moz-do-not-send="true">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" moz-do-not-send="true">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</body>
</html>