<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">We<span style="font-family:"Times New Roman",serif">’</span>re trying to set up Midpoint in a clustered configuration. We are using Postgres as the database.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In Midpoint<span style="font-family:"Times New Roman",serif">’</span>s config.xml I have added the following:<o:p></o:p></p>
<p class="MsoNormal"><taskManager><o:p></o:p></p>
<p class="MsoNormal">        <clustered>true</clustered><o:p></o:p></p>
<p class="MsoNormal"></taskManager><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In Tomcat<span style="font-family:"Times New Roman",serif">’</span>s Catalina.properties I<span style="font-family:"Times New Roman",serif">’</span>ve added the following<o:p></o:p></p>
<p class="MsoNormal">midpoint.nodeId=server1<o:p></o:p></p>
<p class="MsoNormal">midpoint.jmxHostName=172.21.13.1<o:p></o:p></p>
<p class="MsoNormal">com.sun.management.jmxremote.port=20001<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This produces the following error:<o:p></o:p></p>
<p class="MsoNormal">2017-06-29 10:17:11,346 [] [ClusterManagerThread] ERROR (com.evolveum.midpoint.task.quartzimpl.cluster.NodeRegistrar): Cannot update registration of this node (name server1, oid bfbdff25-c7e2-4491-a79d-219787882b25), because it does not
 exist in repository. It is probably caused by cluster misconfiguration (other node rewriting the Node object?) Stopping the scheduler., reason: Object of type 'NodeType' with oid ' bfbdff25-c7e2-4491-a79d-219787882b25' was not found. (class com.evolveum.midpoint.util.exception.ObjectNotFoundException)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I first start the node, the m_node table in our database seems to contain the node<span style="font-family:"Times New Roman",serif">’</span>s information correctly. Then, about 45 seconds to a minute after the node has started, the
 node seems to forcibly restart itself (Displaying the welcome message once again in the logs) and the oid in the table is overwritten with a random different ID to the one mentioned in the error message, thought Midpoint still seems to expect to find the original
 one (which is inserted correctly before the apparent restart, and rewritten after it). This happens whether or not the other node is powered on.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John Cave<o:p></o:p></p>
<p class="MsoNormal">Cogito Group<o:p></o:p></p>
</div>
<br>
<br>
<i>This email, and any attachment, is confidential and also privileged. If you have received it in error, please notify me immediately and delete it from your system along with any attachments. You should not copy or use it for any purpose, nor disclose its
 contents to any other person. </i>
</body>
</html>