<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Correction: either command line option -Dmidpoint.nodeId=Node1 OR
      config.xml modification for nodeId.</p>
    <p>Ivan<br>
    </p>
    <div class="moz-cite-prefix">On 17. 12. 2020 17:50, Ivan Noris via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:adbc90ae-4037-6ae9-e487-7374bcaa9cc6@evolveum.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <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 class="moz-cite-prefix">On 17. 12. 2020 17:18, Gus Lou via
        midPoint wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CA+XZjGQ5eGwohgB7rxwaf8Bm85-kFnjbqQ4oqHwpr9hTHTCUfQ@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <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"
                                moz-do-not-send="true">https://wiki.evolveum.com/pages/viewpage.action?pageId=11075783</a></div>
                            <div><a
                                href="https://wiki.evolveum.com/display/midPoint/Managing+cluster+nodes"
                                moz-do-not-send="true">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"
                                moz-do-not-send="true">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 class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-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="https://lists.evolveum.com/mailman/listinfo/midpoint" moz-do-not-send="true">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
      </blockquote>
      <pre class="moz-signature" cols="72">-- 
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
  </body>
</html>