Author Topic: [SOLVED] 2.0 - 2.2 - Master/Slave error  (Read 239 times)

Mittelerde

  • Zen Apprentice
  • *
  • Posts: 39
  • Karma: +0/-0
    • View Profile
[SOLVED] 2.0 - 2.2 - Master/Slave error
« on: December 16, 2011, 07:03:33 pm »
Hello,
I updated my Ldap master - script runs without error.
1 Master - 4 Slaves

But now the replication to the slaves dont work anymore  :'(

the operations on the master are still pending..........
i can ping the slaves(hostnames)

I found some strange errors in my log files

Zentyal.log

Code: [Select]
ERROR> Lock.pm:31 EBox::Util::Lock::lock - Could not get lock for service: zentyal-slave-sync
ERROR> SOAPClient.pm:181 EBox::SOAPClient::AUTOLOAD - Server side: Can't call method "get_value" on an undefined value at /usr/share/perl5/EBox/UsersAndGroups.pm line 749, <GEN1> line 1530.

Error.log
Code: [Select]
Use of uninitialized value $current in string eq at /usr/share/perl5/EBox/Menu/Folder.pm line 87.
Use of uninitialized value $dir_path in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Tools.pm line 114.
Use of uninitialized value $class in string ne at /usr/share/zentyal/templates/msg.mas line 18.
Use of uninitialized value $id in concatenation (.) or string at /usr/share/zentyal/templates/ajax/customActions.mas line 9.
« Last Edit: December 19, 2011, 11:46:25 am by Mittelerde »

Mittelerde

  • Zen Apprentice
  • *
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: 2.0 - 2.2 - Master/Slave error
« Reply #1 on: December 19, 2011, 11:45:16 am »
Fixed ;)

i found this message in my redis-server.log
Code: [Select]
[4441] 16 Dec 14:31:14 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

dont really know why - but replication works after fixing above
« Last Edit: December 19, 2011, 03:44:55 pm by Mittelerde »

scottjamez

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] 2.0 - 2.2 - Master/Slave error
« Reply #2 on: January 13, 2012, 12:52:38 am »
Can anyone elaborate on this?  How / why does this fix the slave sync issue?  In testing the master sync'd to the slaves fine.  Now in production the sync has stopped.