Author Topic: Force sync of pending operations  (Read 3486 times)

Ft

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Force sync of pending operations
« on: October 09, 2009, 02:19:19 pm »
I am trying master/slave ldap configuration with eBox 1.3 considerated stable packages (only them) but when i push button to force sync, nothing seems to be done...

Is it normal? May i correct it in any way?

Thanks

peterr

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Re: Force sync of pending operations
« Reply #1 on: November 13, 2009, 01:45:37 pm »
I had this working a little while ago (well the servers did sync on their own, I never tried forced sync). Now however no sync is happening, forced or otherwise.
I can not offer any help other than to show what my logs show in the hope someone else may have an answer or suggestion (assuming your problem is the same as mine)

On the master the ebox log shows a lot of lines like this
2009/11/13 15:30:05 WARN> Events.pm:526 EBox::Events::__ANON__ - model EBox::Events::Model::Watcher::LogFiltering cannot be instantiated
2009/11/13 15:30:40 DEBUG> slave-sync:74 main::__ANON__ - Trying to run method addUser with param naomi.maloda on slave eboxcomms failed
2009/11/13 15:31:14 DEBUG> slave-sync:74 main::__ANON__ - Trying to run method addUser with param todd.sprinkel on slave eboxcomms failed
2009/11/13 15:31:33 INFO> Manager.pm:97 EBox::Monitor::Measure::Manager::register - EBox::Monitor::Measure::Thermal is not enabled to collect data
2009/11/13 15:31:34 DEBUG> LogFiltering.pm:70 EBox::Events::Model::Watcher::LogFiltering::new - Missing argument: tableInfo
2009/11/13 15:31:34 WARN> Events.pm:526 EBox::Events::__ANON__ - model EBox::Events::Model::Watcher::LogFiltering cannot be instantiated
2009/11/13 15:31:47 DEBUG> slave-sync:74 main::__ANON__ - Trying to run method addUser with param mwanga.chibago on slave eboxcomms failed
2009/11/13 15:32:21 DEBUG> slave-sync:74 main::__ANON__ - Trying to run method addUser with param naomi.maloda on slave eboxcomms failed
2009/11/13 15:32:55 DEBUG> slave-sync:74 main::__ANON__ - Trying to run method addUser with param stanley.machichimi on slave eboxcomms failed

While on the slave I am seeing this in the ebox log
2009/11/13 15:31:57 DEBUG> UsersAndGroups.pm:2565 EBox::UsersAndGroups::waitSync - Master groups: 13                                                                                     
2009/11/13 15:31:57 DEBUG> UsersAndGroups.pm:2566 EBox::UsersAndGroups::waitSync - Replica groups: 13                                                                                     
2009/11/13 15:32:00 DEBUG> UsersAndGroups.pm:2563 EBox::UsersAndGroups::waitSync - Master users: 5
2009/11/13 15:32:00 DEBUG> UsersAndGroups.pm:2564 EBox::UsersAndGroups::waitSync - Replica users: 1
2009/11/13 15:32:00 DEBUG> UsersAndGroups.pm:2565 EBox::UsersAndGroups::waitSync - Master groups: 13
2009/11/13 15:32:00 DEBUG> UsersAndGroups.pm:2566 EBox::UsersAndGroups::waitSync - Replica groups: 13
2009/11/13 15:32:00 ERROR> UsersAndGroups.pm:2573 EBox::UsersAndGroups::waitSync - Replication failed
2009/11/13 15:32:04 DEBUG> UsersAndGroups.pm:2563 EBox::UsersAndGroups::waitSync - Master users: 5
2009/11/13 15:32:04 DEBUG> UsersAndGroups.pm:2564 EBox::UsersAndGroups::waitSync - Replica users: 1
2009/11/13 15:32:04 DEBUG> UsersAndGroups.pm:2565 EBox::UsersAndGroups::waitSync - Master groups: 13
2009/11/13 15:32:04 DEBUG> UsersAndGroups.pm:2566 EBox::UsersAndGroups::waitSync - Replica groups: 13
2009/11/13 15:32:08 DEBUG> UsersAndGroups.pm:2563 EBox::UsersAndGroups::waitSync - Master users: 5
2009/11/13 15:32:08 DEBUG> UsersAndGroups.pm:2564 EBox::UsersAndGroups::waitSync - Replica users: 1
2009/11/13 15:32:08 DEBUG> UsersAndGroups.pm:2565 EBox::UsersAndGroups::waitSync - Master groups: 13
2009/11/13 15:32:08 DEBUG> UsersAndGroups.pm:2566 EBox::UsersAndGroups::waitSync - Replica groups: 13

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Force sync of pending operations
« Reply #2 on: November 13, 2009, 01:54:15 pm »
What's the exact version of ebox-usersandgroups in both servers?

peterr

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Re: Force sync of pending operations
« Reply #3 on: November 13, 2009, 02:00:14 pm »
they are both running 1.3.9
I can not tell you what version they were running when I first linked them together and the auto sync quite rapidly synced my first user

cheleb

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Force sync of pending operations
« Reply #4 on: November 15, 2009, 12:11:39 am »
Hi,

i had a similar problem in my testing environment. LDAP Slaves wouldn't sync automatic or manually.
After some time i noticed following entry in /var/log/ebox/ebox.log on my LDAP machine:

Code: [Select]
SOAPClient.pm:108 EBox::SOAPClient::__ANON__ - 500 Can't connect to server:443 (Bad hostname 'server')
Then i realized that i forgot to create proper DNS entries for my test machines. The LDAP sync tries to reach the slaves via their hostnames ("server" in this case is my samba LDAP slave). As soon as i defined DNS entries for the slaves, the sync went ok.

Hope that helps.

peterr

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Re: Force sync of pending operations
« Reply #5 on: November 16, 2009, 10:41:04 am »
 :-[
Found out what I did wrong, oops!
I thought the change from using only usersandgroups, on the server, to being able to use other services as well had long since happened.
http://forum.ebox-platform.com/index.php?topic=2027.msg8554#msg8554
BUT I just found out it has not happened yet.
ha, serves me right for making rash assumptions  :)