# Unable to edit on second node in cluster on 9.9

**URL:** <https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851>\
**Category:** Help / Discuss\
**Created:** [November 9, 2017, 10:12pm UTC](https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851 "2017-11-09T22:12:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJBelayer](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/4bbf92/32.png) [@AJBelayer](https://forum.xwiki.org/u/AJBelayer)\
**Post date:** [November 9, 2017, 10:12pm UTC](https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851/1 "2017-11-09T22:12:37Z")

</div>

First time user of xwiki, I apologize up front if I missed something obvious or need a little hand holding, however strong linux background.

I have installed Xwiki 9.9 on 2 servers Centos 7, Tomcat, multi-mastered mariadb , using the WAR package, all packages are stock from Centos repos. I followed the clustering tutorial here: [http://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Clustering/DistributedEventClusterSetup/](http://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Clustering/DistributedEventClusterSetup/)

When making updates (editing a page) on the “first” node everything works great and the change instantly shows up on the second page (no caching issues). However when I try to make an edit on the second the edit page screen spins and spins and never loads the edit box.

I have checked logs and nothing is being reported, not sure where else to even look further, any advice is much appreciated.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [November 10, 2017, 9:00am UTC](https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851/2 "2017-11-10T09:00:50Z")

</div>

Sounds like the save is stuck in a loop for some reason. Maybe make sure the second node is configured to target the first node and not himself is you use TCP based setup.

---

<div class="post-metadata">

**Author:** ![AJBelayer](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/4bbf92/32.png) [@AJBelayer](https://forum.xwiki.org/u/AJBelayer)\
**Post date:** [November 10, 2017, 7:20pm UTC](https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851/3 "2017-11-10T19:20:21Z")

</div>

I believe this is what you are talking about:

[root@pikes ~]# ps aux | grep Djgroups  
tomcat 28526 0.3 21.8 3155716 458960 ? Ssl Nov09 4:21 /usr/lib/jvm/jre/bin/java -Djgroup.bind\_addr=208.91.90.129 -Djgroups.tcpping.initial\_hosts=208.91.90.130[7800] -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start  
root 31215 0.0 0.0 11044 820 pts/0 S+ 14:10 0:00 grep --color=auto Djgroups  
[root@pikes ~]# netstat -anp | grep 7800  
tcp6 0 0 208.91.90.129:7800 :::\* LISTEN 28526/java  
tcp6 0 0 208.91.90.129:54833 208.91.90.130:7800 ESTABLISHED 28526/java

[root@pyramid ~]# ps aux | grep Djgroups  
root 4685 0.0 0.0 9000 836 pts/0 S+ 14:10 0:00 grep --color=auto Djgroups  
tomcat 7549 0.3 17.7 3153416 372796 ? Ssl Nov09 4:24 /usr/lib/jvm/jre/bin/java -Djgroup.bind\_addr=208.91.90.130 -Djgroups.tcpping.initial\_hosts=208.91.90.129[7800] -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start  
[root@pyramid ~]# netstat -anp | grep 7800  
tcp6 0 0 208.91.90.130:7800 :::\* LISTEN 7549/java  
tcp6 0 0 208.91.90.130:7800 208.91.90.129:54833 ESTABLISHED 7549/java

It appears they are targeting each other and connecting properly, is there a log somewhere that might show if there is an issue with that connecting?

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [November 13, 2017, 4:12pm UTC](https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851/4 "2017-11-13T16:12:40Z")

</div>

You can enabling DEBUG logging for package “org.xwiki.observation.remote.internal.jgroups” for the XWiki side.  
That will at least tell you if message are sent and received trough jgroups.

Then for more details you’ll need JGroups debug log but not really sure what’s best here.

---

<div class="post-metadata">

**Author:** ![AJBelayer](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/4bbf92/32.png) [@AJBelayer](https://forum.xwiki.org/u/AJBelayer)\
**Post date:** [November 15, 2017, 5:10pm UTC](https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851/5 "2017-11-15T17:10:37Z")

</div>

Looks like messages are being passed as seen here:

Nov 15 01:00:00 [pyramid.ajserver.com](http://pyramid.ajserver.com) server[4392]: 2017-11-15 01:00:00,139 [jgroups-4,event,pyramid-43401] DEBUG o.r.i.j.DefaultJGroupsReceiver - Received JGroups remote event [event: [org.xwiki.bridge.event.DocumentUpdatedEvent@ca7530a7], source: [{docversion=166.1, doclanguage=, origdocversion=165.1, origdoclanguage=, docname=xwiki:XWiki.Notifications.NotificationEmailHourlySender}], data: [{contextwiki=xwiki, contextuser=XWiki.superadmin}]]  
Nov 15 01:00:00 [pyramid.ajserver.com](http://pyramid.ajserver.com) server[4392]: 2017-11-15 01:00:00,147 [DefaultQuartzScheduler\_Worker-1] DEBUG .o.r.i.j.JGroupsNetworkAdapter - Send JGroups remote event [event: [org.xwiki.bridge.event.DocumentUpdatedEvent@ca7530a7], source: [{docversion=166.1, doclanguage=, origdocversion=165.1, origdoclanguage=, docname=xwiki:XWiki.Notifications.NotificationEmailHourlySender}], data: [{contextwiki=xwiki, contextuser=XWiki.superadmin}]]

I’m going to have to bring this back into a lab as I just need to get the production environment up on a single server, but if someone has successfully clustered 9.9 it would be nice to know it works and hear if they had any learning experiences they can share

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [November 15, 2017, 5:56pm UTC](https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851/6 "2017-11-15T17:56:03Z")

</div>

There several integration tests with a clustering setup so it’s definitely working on 9.9.

---

<div class="post-metadata">

**Author:** ![AJBelayer](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/4bbf92/32.png) [@AJBelayer](https://forum.xwiki.org/u/AJBelayer)\
**Post date:** [December 7, 2017, 3:48am UTC](https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851/7 "2017-12-07T03:48:47Z")

</div>

I have tracked this back to a tomcat serverlet crash during initial flavor install causing some extensions to not be installed on the second node, after re-running the flavor install with the upgrade to 9.10 things seem to be working.

Thanks much for the help.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [December 7, 2017, 9:29am UTC](https://forum.xwiki.org/t/unable-to-edit-on-second-node-in-cluster-on-9-9/851/8 "2017-12-07T09:29:12Z")

</div>

Glad you found the issue 🙂
