<div dir="ltr"><div dir="ltr"><span class="gmail-JLqJ4b gmail-ChMk0b" style="color:rgb(0,0,0);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:18px;white-space:pre-wrap;background-color:rgb(245,245,245)"><span>I made the changes suggested by you.</span></span><span style="color:rgb(0,0,0);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:18px;white-space:pre-wrap;background-color:rgb(245,245,245)"> </span><span class="gmail-JLqJ4b gmail-ChMk0b" style="color:rgb(0,0,0);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:18px;white-space:pre-wrap;background-color:rgb(245,245,245)"><span>The two nodes are up and I got access to the midpoint GUI by accessing the address of any of the nodes.</span></span><span class="gmail-JLqJ4b" style="color:rgb(0,0,0);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:18px;white-space:pre-wrap;background-color:rgb(245,245,245)"><span>
</span></span><span class="gmail-JLqJ4b gmail-ChMk0b" style="color:rgb(0,0,0);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:18px;white-space:pre-wrap;background-color:rgb(245,245,245)"><span>Thanks for the usual help, I will continue with the tests and report the results.</span></span><br></div><div dir="ltr"><br></div><div>Regards</div><div><br></div><div>Gus</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qui., 17 de dez. de 2020 às 13:52, Ivan Noris via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Correction: either command line option -Dmidpoint.nodeId=Node1 OR
config.xml modification for nodeId.</p>
<p>Ivan<br>
</p>
<div>On 17. 12. 2020 17:50, Ivan Noris via
midPoint wrote:<br>
</div>
<blockquote type="cite">
<p>Hi Gus,</p>
<p>you have to specify the option via command line parameters for
midpoint process or in config.xml<br>
</p>
<p>E.g. -Dmidpoint.nodeId=Node1</p>
<p><br>
</p>
<p>in config.xml it seems the <nodeId>Node1</nodeId>
must be in <midpoint> section of the file.</p>
<configuration><br>
<midpoint><br>
<nodeId>MyNode1</nodeId><br>
<taskManager><br>
<clustered>true</clustered>
<br>
</taskManager><br>
<p>...</p>
<p>It works for my case with midpoint 4.2-support (I have only one
node, but it starts as clustered and I can see the node name in
Server tasks - All nodes)</p>
<p>In case of two nodes, they must have different names of course.<br>
</p>
<p>Best regards,</p>
<p>Ivan<br>
</p>
<div>On 17. 12. 2020 17:18, Gus Lou via
midPoint wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hi Guys
<div><br>
</div>
<div>
<div>I am analyzing the implementation of
Midpoint in cluster mode.</div>
<div>My environment has 3 distinct servers
(midpoint-db1, midpoint-app1,
midpoint-app2). One server with postgres
database and two servers with midpoint
4.2.</div>
<div><br>
</div>
<div>I am using the documentation below.</div>
<div><a href="https://wiki.evolveum.com/pages/viewpage.action?pageId=11075783" target="_blank">https://wiki.evolveum.com/pages/viewpage.action?pageId=11075783</a></div>
<div><a href="https://wiki.evolveum.com/display/midPoint/Managing+cluster+nodes" target="_blank">https://wiki.evolveum.com/display/midPoint/Managing+cluster+nodes</a></div>
<div>I'm in doubt on how to configure the
configuration of the nodes in the
config.xml file</div>
<div><br>
</div>
<div>My config.xml file:</div>
</div>
<div><br>
</div>
<div>
<div> <repository> </div>
<div>
<repositoryServiceFactoryClass>com.evolveum.midpoint.repo.sql.SqlRepositoryFactory</repositoryServiceFactoryClass></div>
<div>
<database>postgresql</database></div>
<div>
<jdbcUsername>midpoint</jdbcUsername></div>
<div>
<jdbcPassword>mypassword</jdbcPassword></div>
<div>
<jdbcUrl>jdbc:postgresql://<a href="http://192.168.0.45/midpoint" target="_blank">192.168.0.45/midpoint</a></jdbcUrl></div>
<div>
<hibernateHbm2ddl>none</hibernateHbm2ddl></div>
<div>
<missingSchemaAction>create</missingSchemaAction></div>
<div> </repository></div>
<div> <taskManager></div>
<div>
<clustered>true</clustered></div>
<div> </taskManager></div>
</div>
<div> <nodeId> nodeA
</nodeId></div>
<div> </div>
<div>When I start one of the nodes, I get the
following error:<br>
</div>
<div><br>
</div>
<div>
<div>2020-12-17 11:38:48,959 [] [main] ERROR
(com.evolveum.midpoint.task.quartzimpl.TaskManagerQuartzImpl): Cannot
initialize TaskManager due to the
following exception: .</div>
<div>com.evolveum.midpoint.task.api.TaskManagerConfigurationException:
Node ID must be set when running in
clustered mode</div>
<div> at
com.evolveum.midpoint.task.quartzimpl.NodeIdComputer.determineNodeId(NodeIdComputer.java:88)</div>
<div> at
com.evolveum.midpoint.task.quartzimpl.TaskManagerConfiguration.setBasicInformation(TaskManagerConfiguration.java:286)</div>
<div> at
com.evolveum.midpoint.task.quartzimpl.Initializer.init(Initializer.java:46)</div>
<div> at
com.evolveum.midpoint.task.quartzimpl.TaskManagerQuartzImpl.init(TaskManagerQuartzImpl.java:239)</div>
<div> at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)</div>
<div> at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)</div>
<div> at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</div>
<div> at
java.base/java.lang.reflect.Method.invoke(Method.java:566)</div>
</div>
<div><br>
</div>
<div>
<div>I believe it is missing to specify the
nodes in config.xml, I just didn't
understand how.</div>
<div>I tried to put it but without success
as follows</div>
<div><br>
</div>
<div><nodeId> nodeA </nodeId></div>
<div> </div>
</div>
<div>Does anyone have any ideas or examples?</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>Gus</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<pre cols="72">--
Ivan Noris
Senior Identity Engineer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<pre cols="72">--
Ivan Noris
Senior Identity Engineer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
</div>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div>