Author Topic: Help with master/slave-configuration needed, eBox 1.3.15  (Read 1797 times)

Andy

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Help with master/slave-configuration needed, eBox 1.3.15
« on: January 22, 2010, 12:09:53 pm »
Hello!

I'm still trying to get this master/slave thing running on eBox 1.3.15.

I followed step-by-step the HowTo you can find here:
http://trac.ebox-platform.com/wiki/Document/HowTo/EBoxMasterSlaveSetup

OK, and here's the problem:
I set up the master and at the point "If everything has gone well, you are now ready to add new users and groups to the master LDAP. " in the HowTo I created 2 users and 2 groups.

As I finished the Howto everything seems to work fine. The created users and groups had been synchronised to the slave where I can see AND edit them. Fine!

But when I create a user after that I'm not able to edit him on the slave. By clicking "edit" this message appears:
Code: [Select]
A really nasty bug has occurred
Exception
Unknown error at EBox::SambaLdapUser::_getAccountFlags Referral received
Trace
Unknown error at EBox::SambaLdapUser::_getAccountFlags Referral received at /usr/share/perl5/EBox/Ldap.pm line 684
EBox::Ldap::_errorOnLdap('Net::LDAP::Search=HASH(0xa89dfec)', 'HASH(0xa7bb7fc)') called at /usr/share/perl5/EBox/Ldap.pm line 323
EBox::Ldap::search('EBox::Ldap=HASH(0xa6ddf94)', 'HASH(0xa7bb7fc)') called at /usr/share/perl5/EBox/SambaLdapUser.pm line 848
EBox::SambaLdapUser::_getAccountFlags('EBox::SambaLdapUser=HASH(0xa81ca54)', 'jdoe') called at /usr/share/perl5/EBox/SambaLdapUser.pm line 858
EBox::SambaLdapUser::_userSharing('EBox::SambaLdapUser=HASH(0xa81ca54)', 'jdoe') called at /usr/share/perl5/EBox/SambaLdapUser.pm line 459
EBox::SambaLdapUser::_userAddOns('EBox::SambaLdapUser=HASH(0xa81ca54)', 'jdoe') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 2097
EBox::UsersAndGroups::allUserAddOns('EBox::UsersAndGroups=HASH(0x9fdc2cc)', 'jdoe') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/User.pm line 50
EBox::CGI::UsersAndGroups::User::_process('EBox::CGI::UsersAndGroups::User=HASH(0xa80d23c)') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::User=HASH(0xa80d23c)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'UsersAndGroups/User', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 19
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xa7fc5b0)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xa82d57c)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xa82d57c)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xa7fc5b0)') called at -e line 0
eval {...} called at -e line 0

The first 2 created users are still editable on the slave.
On the master you can see at the point "Slave Status" that the operation of the "problem-user" is still pending.

I tried the following:
- disabled module FileSharing on the slave
- disabled module usersandgroups on the slave
- created a new user on the master
- enabled usersandgroups on the slave

Same problem. The created user is not editable on the slave. The last created user still appears in "pending" on the master's slave status.

I think this is a bug. There must be the possibility to create users when you set up the slave yet. Can someone please give me a hint?

Andy

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Help with master/slave-configuration needed, eBox 1.3.15
« Reply #1 on: January 22, 2010, 12:23:25 pm »
Got it!!

It was necessary to insert the slave's ip-address and hostname in  /etc/hosts  on the master


The synchronisation now worked, but a few operations are still in pending state.
How can I delete them?

I clicked "sync now" and some of the operations disappeared but a few are still there...
Where should I look after that?

Kind regards,
Andreas