By: Dan Rocker user 30 Nov 2016 at 1:15 p.m. CST

5 Responses
Dan Rocker gravatar
I'm setting up two dev servers behind a loadbalancer. I'm trying to set up clustering. After going through the cluster configuration guidelines between two servers, I get the following error, when I issue csync2 -xr -vvv command: ``` GLUU.[root@ssodev csync2]# csync2 -xr -vvv My hostname is ssodev.uncw.edu. Database-File: /var/lib/csync2/ssodev.uncw.edu.db Config-File: /etc/csync2/csync2.cfg This host (ssodev.uncw.edu) is not a member of any configured group. ``` I have two hosts: 152.20.5.138 itsssodev1.uncw.edu 152.20.5.139 itsssodev2.uncw.edu The host that it says is not a member is the LB hostname (ssodev.uncw.edu). When I built both gluu containers, I identified the build with hostname of ssodev.uncw.edu and the IP address from each respective host.

By Aliaksandr Samuseu staff 30 Nov 2016 at 1:46 p.m. CST

Aliaksandr Samuseu gravatar
Hi, Dan. When dealing with csync2, especially if it's your first experience with it, please stick to steps specified in the guide as close as possible, it's quite tricky piece of software. One point is to always specify hostname it should use explicitly, with `-N` key, like the guide suggests, and don't rely on auto-detection (which seems to fail in your case).

By Dan Rocker user 30 Nov 2016 at 2:16 p.m. CST

Dan Rocker gravatar
Thanks for prompt response Aliaksandr! What happened is when I ran the the command in the crontab that populates the /var/log/csync2.log file, I saw an error about a dirty state. That lead me down a line of different commands to verify csync2 was working correctly. I still see that on the first server, but not the second. Do you have any recommended commands to verify csync2 is working correctly for the gluu environment?

By Aliaksandr Samuseu staff 30 Nov 2016 at 2:57 p.m. CST

Aliaksandr Samuseu gravatar
> I saw an error about a dirty state It doesn't mean that something is wrong, by itself, it just means files were changed, from its point of view. You should check csync's manual if you don't understand how it works clearly. You also should follow steps provided in the guide, unless you are sure you know what you are doing. You can find some command examples showing how to initiate first sync run manually at the end of the guide too.

By Dan Rocker user 01 Dec 2016 at 12:48 p.m. CST

Dan Rocker gravatar
Thanks Aliaksandr! Please close ticket. I have cysnc2 working with no errors. As a side note, I made my crontab script more verbose and changed it from "-xv" to "-xvvv". This shows if any errors. When I only had "-xv", the csycn2.log file wasn't getting populated (the file modification time was changing, however there were no entries).

By William Lowe user 01 Dec 2016 at 3:50 p.m. CST

William Lowe gravatar
Glad to hear you got it working! Thanks, Will