<div dir="ltr"><div><div>Hi Fabian,<br></div>Try to find misconfiguration in jmx settings.<br><br></div>PS.If you expect from community help you should send more information. To help you find misconfiguration share  whole startup logs, configuration and start up scripts  (user name and password can be replaced with username1 password1  and etc).<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 April 2018 at 15:40, Fabian Bosch <span dir="ltr"><<a href="mailto:fabian.bosch@daasi.de" target="_blank">fabian.bosch@daasi.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Same here with mariaDB and midPoint v3.7.1.<br>
      Any solution to this?</p>
    <p>regards</p>
    <p>Fabian<br>
    </p>
    <p>-- Midpoint 3.7.1 --</p>
    <p>[embedded Tomcat opts (midpoint.sh)]<br>
    </p>
    <blockquote>
      <p>JAVA_OPTS="$JAVA_OPTS<br>
        -Xms2048M<br>
        -Xmx2048M<br>
        -Dpython.cachedir=$MIDPOINT_<wbr>HOME/tmp<br>
        -Djavax.net.ssl.trustStore=$<wbr>MIDPOINT_HOME/keystore.jceks<br>
        -Djavax.net.ssl.<wbr>trustStoreType=jceks<br>
        -Dmidpoint.home=$MIDPOINT_HOME<br>
        -Dmidpoint.nodeId=NodeA<br>
        -Dcom.sun.management.<wbr>jmxremote.port=20001<br>
        -Dcom.sun.management.<wbr>jmxremote.rmi.port=20001<br>
        -Dcom.sun.management.<wbr>jmxremote.ssl=false<br>
-Dcom.sun.management.<wbr>jmxremote.password.file=/opt/<wbr>midpoint/midpoint-3.7-home/<wbr>jmxremote.password<br>
-Dcom.sun.management.<wbr>jmxremote.access.file=/opt/<wbr>midpoint/midpoint-3.7-home/<wbr>jmxremote.access"</p>
    </blockquote>
    <p>[MidPoint-Config]</p>
    <p><span class="">          <repository><br>
               
<<wbr>repositoryServiceFactoryClass><wbr>com.evolveum.midpoint.repo.<wbr>sql.SqlRepositoryFactory</<wbr>repositoryServiceFactoryClass><br>
                <baseDir>${midpoint.home}</<wbr>baseDir><br>
                <embedded>false</embedded><br>
                <asServer>true</asServer><br></span>
               
      <driverClassName>org.mariadb.<wbr>jdbc.Driver</driverClassName><br>
                <jdbcUsername>midpoint</<wbr>jdbcUsername><br>
                <jdbcPassword>secret</<wbr>jdbcPassword><br>
               
<jdbcUrl>jdbc:mariadb://<wbr>midpoint.remote.tld:3306/<wbr>midpoint?characterEncoding=<wbr>utf-8;LOCK_MODE=1;DB_CLOSE_ON_<wbr>EXIT=FALSE;LOCK_TIMEOUT=10000<<wbr>/jdbcUrl><br>
               
<hibernateDialect>com.<wbr>evolveum.midpoint.repo.sql.<wbr>util.MidPointMySQLDialect</<wbr>hibernateDialect><br>
               
      <hibernateHbm2ddl>validate</<wbr>hibernateHbm2ddl><span class=""><br>
              </repository><br>
              <taskManager><br>
                <clustered>true</clustered><br>
                <jmxUsername>midpoint</<wbr>jmxUsername><br>
                <jmxPassword>secret</<wbr>jmxPassword><br>
              </taskManager><br>
    </span></p><div><div class="h5">
    <br>
    <div class="m_1293446010178334192moz-cite-prefix">Am 24.10.2017 um 21:51 schrieb Carlos
      Ferreira:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>Hi, </div>
        <div><br>
        </div>
        <div>1. I have downloaded the evolveum/midpoint image from
          docker hub;</div>
        <div><br>
        </div>
        <div>2. I have create 2 containers, each one running MIDPOINT in
          2 separate servers;</div>
        <div><br>
        </div>
        <div>3. I configured the Config.xml file (in both nodes):</div>
        <div><br>
        </div>
        <div>*********************** /var/opt/midpoint/config.xml
          ******************************<wbr>**********************</div>
        <div><br>
        </div>
        <div>(...)</div>
        <div><br>
        </div>
        <div><configuration></div>
        <div>    <midpoint></div>
        <div>        <webApplication></div>
        <div>           
          <importFolder>${midpoint.home}<wbr>/import</importFolder></div>
        <div>        </webApplication></div>
        <div>    <repository></div>
        <div>     
<<wbr>repositoryServiceFactoryClass><wbr>com.evolveum.midpoint.repo.<wbr>sql.SqlRepositoryFactory</<wbr>repositoryServiceFactoryClass></div>
        <div>      <baseDir>${midpoint.home}</<wbr>baseDir></div>
        <div>      <embedded>false</embedded></div>
        <div>      <asServer>true</asServer></div>
        <div>      <database>oracle</database></div>
        <div>      <jdbcUsername>midpoint_wi</<wbr>jdbcUsername></div>
        <div>      <jdbcPassword>secret</<wbr>jdbcPassword></div>
        <div>      <jdbcUrl>jdbc:oracle:thin:@(<wbr>DESCRIPTION
          =(ADDRESS = (PROTOCOL = TCP)(HOST = orarac.trt)(PORT = 1521))
          (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED)
          (SERVICE_NAME = <a href="http://prod.trt3.jus.br" target="_blank">prod.trt3.jus.br</a>)))</jdbcUrl></div>
        <div>    </repository></div>
        <div><taskManager></div>
        <div>  <clustered>true</clustered></div>
        <div>  <jmxUsername>midpoint</<wbr>jmxUsername></div>
        <div>  <jmxPassword>secret</<wbr>jmxPassword></div>
        <div></taskManager></div>
        <div><br>
        </div>
        <div>(...)</div>
        <div>
          <div>*********************** /var/opt/midpoint/config.xml
            ******************************<wbr>**********************</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>----->>> midpoint was configured to access an
          ORACLE DATABASE running in a CLUSTER;</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>4. The setenv.sh (/usr/local/tomcat/bin/setenv.<wbr>sh) file has
          been configured as follows:</div>
        <div><br>
        </div>
        <div>  a) on node A</div>
        <div>CATALINA_OPTS="-Dmidpoint.<wbr>nodeId=NodeA
          -Dmidpoint.home=/var/opt/<wbr>midpoint/
          -Dcom.sun.management.<wbr>jmxremote=true
          -Dmidpoint.jmxHostName=10.3.<wbr>190.47 -Dcom.sun.management.jmx</div>
        <div>remote.port=20001 -Dcom.sun.management.<wbr>jmxremote.ssl=false
-Dcom.sun.management.<wbr>jmxremote.password.file=/var/<wbr>opt/midpoint/jmxremote.<wbr>password
          -Dcom.sun.management.jmxremo</div>
        <div>te.access.file=/var/opt/<wbr>midpoint/jmxremote.access"</div>
        <div><br>
        </div>
        <div>  b) on node B</div>
        <div>CATALINA_OPTS="-Dmidpoint.<wbr>nodeId=NodeB
          -Dmidpoint.home=/var/opt/<wbr>midpoint/
          -Dcom.sun.management.<wbr>jmxremote=true
          -Dmidpoint.jmxHostName=10.3.<wbr>190.79 -Dcom.sun.management.jmx</div>
        <div>remote.port=20002 -Dcom.sun.management.<wbr>jmxremote.ssl=false
-Dcom.sun.management.<wbr>jmxremote.password.file=/var/<wbr>opt/midpoint/jmxremote.<wbr>password
          -Dcom.sun.management.jmxremo</div>
        <div>te.access.file=/var/opt/<wbr>midpoint/jmxremote.access"</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>3. I have run the script that creates on necessary objects
          (tables, etc) in the oracle database;</div>
        <div><br>
        </div>
        <div>4. When I start the first node (A, for example), I am able
          to log in;</div>
        <div><br>
        </div>
        <div>5. When I try to login in in the second node (B), I receive
          the following message:</div>
        <div><br>
        </div>
        <div>" Currently we are unable to process your request. Kindly
          try again later."</div>
        <div><br>
        </div>
        <div>6. In the "idm.log" file, I have the message:</div>
        <div><br>
        </div>
        <div>2017-10-24 19:35:05,771 []
          [QuartzScheduler_<wbr>midPointScheduler-NodeB_<wbr>ClusterManager] WARN
          (org.quartz.impl.jdbcjobstore.<wbr>JobStoreTX): This scheduler
          instance (NodeB) is still active but was recovered by another
          instance in the cluster.  This may cause inconsistent
          behavior.</div>
        <div><br>
        </div>
        <div>7. If I drop all the objects and re-execute the install
          script and try to login firstly from node B, I am successful.
          Nevertheless, I receive the same error message when trying to
          log in from node A.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Did I miss anything?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thks,</div>
        <div><br>
        </div>
        <div>Carlos A Ferreira</div>
      </div>
      <br>
      <fieldset class="m_1293446010178334192mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
midPoint mailing list
<a class="m_1293446010178334192moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a class="m_1293446010178334192moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="color:#4c4c4c">Best regards, <br><br><img src="cid:o.nekriach@dynatech.lv1520941785292-7770"> <br><br>Oleksandr Nekriach | Identity and access management engineer <br><br>Dynatech, <a href="https://maps.google.com/?q=Mednieku+str.+4a,+Riga,+LV-1010,+Latvia&entry=gmail&source=g" target="_blank">Mednieku str. 4a, Riga, LV-1010, Latvia</a> <br><br><div style="display:inline-block"><a href="tel:+371%2025%20314%20685" value="+37125314685" target="_blank">+37125314685</a></div>, <div style="display:inline-block"><a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a></div> | <div style="display:inline-block"><a href="http://www.dynatech.lv" target="_blank">www.dynatech.lv</a></div> <br><br>Stay connected: <br><div style="display:inline-block;margin:5px 5px 0 0"><a href="https://www.facebook.com/DynatechLatvia/?ref=br_rs" target="_blank"><img src="cid:o.nekriach@dynatech.lv1520941785292-7771"></a></div><div style="display:inline-block;margin:5px 0 0 0"><a href="https://www.linkedin.com/company-beta/17893047/" target="_blank"><img src="cid:o.nekriach@dynatech.lv1520941785292-7772"></a></div><br><br><span style="font-size:11px;color:#a1a1a1">Confidentiality
 Notice: This message contains confidential information and is intended 
only for the named recipient(s). If you are not the addressee you may 
not copy, distribute or perform any other activities with this 
information. If you have received this transmission in error, please 
notify us by e-mail immediately. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be 
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses.</span></span></div></div>
</div>