<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font face="monospace">Hi Michael,</font></p>
    <p><font face="monospace">I've been working on this problem recently
        and there is <a moz-do-not-send="true"
href="https://github.com/OpenSIPS/opensips/commit/90a00795b1d0685394818c4a69c235f487389878">a
          patch</a> which has already received some amount of testing to
        be deemed stable, hence I just decided to push it to master
        branch.</font></p>
    <p><font face="monospace">If you could pull it into your setup (both
        boxes) and confirm there are no side-effects, that would help
        make the backport to 3.5 and 3.4 a lot safer!</font></p>
    <p><font face="monospace">Best regards,<br>
      </font></p>
    <div class="moz-cite-prefix">On 26.11.2024 17:59, Michael Ulitskiy
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:88cf0bf9-564b-45e0-ab9d-9baaca60bdc9@acedsl.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p dir="auto">Hello,</p>
      <p dir="auto">I've recently migrated my system to 2-node usrloc
        full-sharing cluster. Now occasionally I receive the following
        error on the receiving side:</p>
      <p dir="auto">CRITICAL:usrloc:receive_ucontact_insert:</p>
      <blockquote>
        <blockquote>
          <blockquote>
            <p dir="auto">differring rlabels (0 vs. 1, ci: '<a
                class="moz-txt-link-abbreviated moz-txt-link-freetext"
                href="mailto:b7b3f2f3-38f32b64@192.168.10.87"
                moz-do-not-send="true">b7b3f2f3-38f32b64@192.168.10.87</a>')<br>
              It seems you have hit a programming bug.</p>
          </blockquote>
        </blockquote>
      </blockquote>
      <p dir="auto">Numbers in the error can be different (<span
          style="color:#000000;background-color:#ffffff;">8 vs. 9,</span><span
          style="color:#000000;background-color:#ffffff;">268 vs. 270).
        </span><span style="font-family:monospace"><br>
        </span><br>
        Config is standard:</p>
      <h4 dir="auto">Clusterer Module</h4>
      <p dir="auto">loadmodule "clusterer.so"<br>
        modparam("clusterer", "my_node_id", 2)<br>
        modparam("clusterer", "db_mode", 0)<br>
        modparam("clusterer", "sharing_tag", "vip1/1=backup")<br>
        modparam("clusterer", "seed_fallback_interval", 10)<br>
        modparam("clusterer", "my_node_info", "cluster_id=1,
        url=bin:x.x.83.70:5555, flags=seed")<br>
        modparam("clusterer", "neighbor_node_info",
        "cluster_id=1,node_id=1,url=bin:x.x.83.69:5555")</p>
      <h4 dir="auto">USeR LOCation module</h4>
      <p dir="auto">loadmodule "usrloc.so"<br>
        modparam("usrloc", "nat_bflag", "NAT_BFLAG") #NAT bflag saved in
        usrloc, used to indicate nat<br>
        modparam("usrloc", "desc_time_order", 1) #location records are
        kept timestamp ordered. most recent 1st<br>
        modparam("usrloc", "cseq_delay", 10)<br>
        modparam("usrloc", "hash_size", 14) <a class="issue-link
          js-issue-link" data-error-text="Failed to load title"
          data-id="15125423" data-permission-text="Title is private"
          data-url="https://github.com/OpenSIPS/opensips/issues/2"
          data-hovercard-type="issue"
          data-hovercard-url="/OpenSIPS/opensips/issues/2/hovercard"
          href="https://github.com/OpenSIPS/opensips/issues/2"
          moz-do-not-send="true">#2</a>^14 - 16356 hash entries<br>
        modparam("usrloc", "location_cluster", 1)<br>
        modparam("usrloc", "cluster_mode","full-sharing")<br>
        modparam("usrloc", "working_mode_preset",
        "full-sharing-cluster")</p>
      <p dir="auto">Opensips version:<br>
        root@csp-p1n2:~# /usr/local/opensips3/sbin/opensips -V<br>
        version: opensips 3.4.9 (x86_64/linux)<br>
        flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
        PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC,
        FAST_LOCK-ADAPTIVE_WAIT<br>
        ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
        MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
        poll method support: poll, epoll, sigio_rt, select.<br>
        git revision: <a class="commit-link"
          data-hovercard-type="commit"
data-hovercard-url="https://github.com/OpenSIPS/opensips/commit/cd02af8d942374398f95ceb5d0a3fd3b63acf346/hovercard"
href="https://github.com/OpenSIPS/opensips/commit/cd02af8d942374398f95ceb5d0a3fd3b63acf346"
          moz-do-not-send="true"><tt>cd02af8</tt></a><br>
        main.c compiled on 13:57:28 Nov 18 2024 with gcc 5.5.0</p>
      <p dir="auto">Please let me know if you need any other info.<br>
        Thanks,- <br>
      </p>
      <div class="moz-signature"><span style="font-size:10pt"><b>Michael
            Ulitskiy</b><br>
          Ace Innovative Networks, Inc.<br>
          <a href="https://www.aceinnovative.com"
            class="moz-txt-link-freetext" moz-do-not-send="true">https://www.aceinnovative.com</a><br>
           </span></div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a> | <a class="moz-txt-link-abbreviated" href="http://www.siphub.com">www.siphub.com</a></pre>
  </body>
</html>