Author Topic: Zentyal 2.2 Master/slave issue  (Read 2349 times)

Jglads

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Zentyal 2.2 Master/slave issue
« on: December 09, 2014, 08:48:32 pm »
We have 3 zentyal servers a primary LDAP, a secondary LDAP, and a mail server.  All running Zentyal 2.2  ( I know were on an old version)  We accidently installed File sharing on the primary server.  (We had an issue prior to that, that we needed to find the file sharing)  Turns out file sharing is on our secondary.  Anyways we now have a problem where we cant get our mail server to sync with our primary server.  We get the error " It seems that your master has some incompatible modules installed"  We have removed the file sharing from the server and have purged the server of all samba related packages but still the errors persist.  Though we purged the server we still see samba related files such as the smb.conf, samba log file.  We have tried everything and are at a loss of what else we could do.  We wanted to try the reinstall of the mail but we are also unsure if this wipes out current configurations.

Any HELP would be great. 
« Last Edit: December 09, 2014, 08:55:23 pm by Jglads »

Mittelerde

  • Zen Warrior
  • ***
  • Posts: 153
  • Karma: +8/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #1 on: December 10, 2014, 10:12:49 am »
Hello

i think i now the problem

Zentyal 2.2 Docu

Slave status
The modules which have users like mail and filesharing can now be installed in the slaves and
they will use the users configured in the master Zentyal directory.
Some modules need extra actions to be executed when you add users,
for instance filesharing, which needs to create the user directories.

To do so, the master will notify the slaves about the new users and groups when
they are created , providing the opportunity for the slaves to perform the associated actions.

There can be some problems running these actions in some circumstances, for example if one of
the slaves is powered down. In this case, the master will remember that there are remaining
actions that must be performed and will periodically retry. The system administrator can also
check the slaves status on the menu Users and groups ‣ Slave status and then force the retry of
the actions manually at any time. From this section it is also possible to remove a slave.

There is an important limitation of the master/slave architecture. The master Zentyal server can not
have modules which depend of users and groups
, for example filesharing and mail. If the
master has any of these modules installed, they must be un-installed before trying to register any
slave.



my master have only this modules installed
Network
Firewall
Logs
NTP
Users and groups
Usercorner

i run my master in a vm

hope it helps you




Jglads

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #2 on: December 10, 2014, 01:20:17 pm »
Our Master generally only has the same components yours does.  We downloaded it not knowing that our slave server already had file sharing on it and now we are trying to get rid of all traces of it and arent having any luck.  I need help trying to get rid of all samba traces in our master server.  We have tried purging it and that only worked to some extent.

Mittelerde

  • Zen Warrior
  • ***
  • Posts: 153
  • Karma: +8/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #3 on: December 10, 2014, 01:31:48 pm »
ok

look there

/usr/share/zentyal/unconfigure-module samba
/usr/share/zentyal/purge-module samba


« Last Edit: December 10, 2014, 01:33:48 pm by Mittelerde »

Jglads

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #4 on: December 10, 2014, 01:34:39 pm »
We havent been able to find if using the usr/share/zentyal-users/reinstall will wipe out configurations or not?  Would you happen to know what happens if you use the reinstall?
Also we ran a purge command not exactly that one but something very similar sudo apt-get remove --auto-remove zentyal-samba

Mittelerde

  • Zen Warrior
  • ***
  • Posts: 153
  • Karma: +8/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #5 on: December 10, 2014, 04:04:59 pm »
if you reinstall zentyal-users on your primary server it will wipe all users

before you do anything remember to do a backup (and a server config backup) of your master


here are 2 posts for you

https://forum.zentyal.org/index.php/topic,8955.msg37523.html#msg37523

https://forum.zentyal.org/index.php?topic=6313.0

Jglads

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #6 on: December 10, 2014, 04:18:43 pm »
Thank you for the links. Would it be possible to reinstall on the slave instead of the master?  Or does it need to be the master since that is where the issue started? If it is possible on the slave would that need to be reconfigured?

Mittelerde

  • Zen Warrior
  • ***
  • Posts: 153
  • Karma: +8/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #7 on: December 10, 2014, 04:28:39 pm »

first delete on master in users/slavestatus the machine you want to rejoin
then you can give (on slave)

sudo /usr/share/zentyal-users/rejoin-slave


a chance
and check on the master with
cd /usr/share/zentyal-users/
sudo ./list-slaves
whether the rejoin worked

Notice:  all youre shares on slave are gone after that - you must reconfigure it

« Last Edit: December 10, 2014, 04:31:28 pm by Mittelerde »

Jglads

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #8 on: December 10, 2014, 06:07:02 pm »
Unfortunately trying that didn't work.  We were told that possibly reinstall was an option for our slave but that they werent sure if it would wipe out all of our users.  Unfortunately we don't have a test environment to see if that would happen..  Any thoughts.  Our slave server that we are trying to get synced is a mail server, if that helps.

Mittelerde

  • Zen Warrior
  • ***
  • Posts: 153
  • Karma: +8/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #9 on: December 10, 2014, 10:08:39 pm »
Just Do a zentyal-users reinstall on your slave

You dort loose the Users on your master
But you habe to config all New in your slave

Or you try to install a working config Backup on your slave after reinstal zentyal-users on the slave

Jglads

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #10 on: December 11, 2014, 01:39:12 pm »
So your recommendation is to reinstall on slave.  But our slave we will lose all configurations?  Will all current users lose their email?  Also it still doesn't help purge our master of all Samba related installation.  The reason we are unable to rejoin it at the moment is because " The master has installed modules that aren't compatible with the slave"    Any thoughts to this?  We have contemplated rebuilding our master but it is just not even an option unfortunately.

Mittelerde

  • Zen Warrior
  • ***
  • Posts: 153
  • Karma: +8/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #11 on: December 11, 2014, 03:29:34 pm »
after rejoin Slave
emails , profiles, receive files remain freely gave

your second slave is working when you create a new user on master and edit them on (2)slave ?



Jglads

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #12 on: December 11, 2014, 03:34:54 pm »
So we have 2 slave servers.  One is a secondary server, the other an email.  The secondary server is having no problems with the Primary.  Its syncs new users fine.  It is just the Mail server that has a problem with syncing to the primary.So for example if i added a new user IE Test to our primary server it would sync fine to the secondary.  I would be able to see the Test account in the secondary after a refresh.  But the action will stay in pending sync for the mail server.  until its deleted.

Mittelerde

  • Zen Warrior
  • ***
  • Posts: 153
  • Karma: +8/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #13 on: December 11, 2014, 03:41:47 pm »
oK I would take a backup from the slave server configuration from a date when it still worked
- zentyal-users / reinstall
- and the import configuration file again
* do not drop a database if zentyal ask you
good luck

remember to do a backup before
« Last Edit: December 11, 2014, 03:50:24 pm by Mittelerde »

Jglads

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Zentyal 2.2 Master/slave issue
« Reply #14 on: December 11, 2014, 03:49:51 pm »
Just for my reference.  Why are you suggesting doing the reinstall.  Do you not think that the problem lies on the Primary server?