Author Topic: [Solved] 1.5 Master/Slave "stringify"???  (Read 5503 times)

UdoB

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +17/-0
    • View Profile
[Solved] 1.5 Master/Slave "stringify"???
« on: July 23, 2010, 03:13:52 pm »
Solved 23.August:
using the brand new RC1 I re-installed my Slave from scratch. Now I can successfully establish the Master-Slave relationship. I did also purge the Master, don't know if this was really necessary...


Original message:
Hello,

I am testing 1.5 on a Lucid Server box and I have one system running. This shall be an Ldap Master of Users and Groups.

When preparing the Slave I did install only some console tools and

root@egw:~# dpkg -l |grep ebox
ii  ebox                                1.5.7-0ubuntu1~ppa1~lucid1        common library used by eBox platform modules
ii  ebox-firewall                       1.5.3-0ubuntu1~ppa1~lucid1        eBox - Firewall
ii  ebox-network                        1.5.5-0ubuntu1~ppa1~lucid1        eBox - Network Configuration
ii  ebox-objects                        1.5.1-0ubuntu1~ppa1~lucid1        eBox - Network Objects
ii  ebox-samba                          1.5.6-0ubuntu1~ppa1~lucid1        eBox - File Sharing
ii  ebox-services                       1.5.3-0ubuntu1~ppa1~lucid1        eBox - Network Services
ii  ebox-software                       1.5.1-0ubuntu1~ppa1~lucid1        eBox - Software Management
ii  ebox-usersandgroups                 1.5.3-0ubuntu1~ppa1~lucid1        eBox - Users and Groups
ii  libebox                             1.5.5-0ubuntu1~ppa1~lucid1        eBox - Common Library
ii  liborbit2                           1:2.14.18-1+ebox1                 libraries for ORBit2 - a CORBA ORB


After enabling the Network and the Firewall module I did an additional reboot. Then, without playing around, I was directly going to enable Slave mode. I entered my master's IP and password. The result is:

Can't locate object method "stringify" via package "HTML::Mason::Exception::Params" at /usr/share/perl5/EBox/CGI/ServiceModule/ConfigureModuleController.pm line 74.

The line in question reads:

throw EBox::Exceptions::Internal("Failed to enable: " .
$excep->stringify());


Unfortunately I do not know perl enough to debug this...

I did remove everything ebox-* plus slapd, rebootet and did try the same sequence again... with the same result. (Actually I did this several times, with small changes.) So this error is reproducible for me.  

A search for "stringify" didn't really help me though.


Additional info: during the installation of ebox-samba I got one additional error:

Use of uninitialized value $dn in concatenation (.) or string at /usr/share/perl5/EBox/UsersAndGroups.pm line 472.


The script /usr/share/ebox-usersandgroups/ebox-usersandgroups-reinstall generates the same error twice:
Use of uninitialized value $dn in concatenation (.) or string at /usr/share/perl5/EBox/UsersAndGroups.pm line 472.
Use of uninitialized value $dn in concatenation (.) or string at /usr/share/perl5/EBox/Ldap.pm line 282.


The log of the last -reinstall sequence is here: http://paste.ubuntu.com/467991/

Any hints are welcome ;-)
« Last Edit: August 23, 2010, 09:26:29 pm by UdoB »
Udo

tazzy98

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #1 on: July 26, 2010, 11:15:12 am »

Just want to push this thread....


I have exactly the same problem, just updated to ebox 1.5.8!

Greetings from Bonn

tazzy98

UdoB

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +17/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #2 on: July 26, 2010, 05:02:31 pm »
I have exactly the same problem, just updated to ebox 1.5.8!

Thanks to mention this - so I know I am not alone...

Now I re-installed my slave box using the brand new ebox_installer-1.5-i386.iso. I kicked the old (virtual) hard disk out of the machine and restarted from scratch. The installer is nice, does not ask to much and leads to a running server, reachable through https://.

The "Initial configuration wizard" offers some high level profiles. I switched to advanced view and selected only "Users and Groups". This pulls in some dependencies of course.

Unfortunately at the end I got exactly the same error message "Can't locate object method "stringify" via package "HTML::Mason::Exception::Params" at /usr/share/perl5/EBox/CGI/ServiceModule/ConfigureModuleController.pm line 74."

Is any perl knowing person reading this? What am I missing?
Udo

puma

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #3 on: July 27, 2010, 08:42:45 pm »
Just to help with the cause

Core version    1.5.8
Trace
Can't locate object method "stringify" via package "HTML::Mason::Exception::Params" at /usr/share/perl5/EBox/CGI/ServiceModule/ConfigureModuleController.pm line 74.

i have the same problem and master/slave is a "must" wen we talk about loads of clients.
This issue is hold me back big time. I still have 105 clients machines on hold.
There is NO way i will deploy a Master with no slave.
« Last Edit: July 27, 2010, 08:50:40 pm by puma »

UdoB

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +17/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #4 on: July 27, 2010, 10:20:09 pm »
There is NO way i will deploy a Master with no slave.

Sure. And it should be a mature and reliable connection as its function is essential.

Meanwhile I've tried to submit a bug report, basically with my text from above. There is a spam fighting mechanism that kept me from submitting my text. The unfortunate result is here: http://trac.ebox-platform.com/ticket/2015 (Please note the Change History also, there is a link to the "real" submission which I have put in Ubuntus Pastebin.)

Best regards
Udo

jp.otto

  • Zen Apprentice
  • *
  • Posts: 25
  • Karma: +1/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #5 on: July 28, 2010, 09:35:49 am »
I'm suffering from this as well (see http://trac.ebox-platform.com/ticket/2012 ).

As I see it, the error message does not concern the real problem. I think, "stringify" would print a human readable error message describing what went wrong.
Sadly that's the end of my perl knowledge :(

I had 1.5 already running (3 to 4 weeks ago). That suddenly stopped synchronizing (maybe after an update). Since earlier (with 1.3 or 1.4) deleting the client on the server and reinstalling usersandgroups on the client did the trick, I tried that.
From that moment the aforementioned error message emerges, when trying to connect the client to the server.
Strangely the server lists the client on its "Slave Status" page...

Regards,
Jens-Peter

puma

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #6 on: July 29, 2010, 09:15:46 pm »
there is a way to bypass this problem?
will this problem be resolved with 2.0?
i need a solution realy bad.  :(

snarf77

  • Zen Apprentice
  • *
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #7 on: July 30, 2010, 12:20:31 pm »
Just to say: "you're  not alone in this case !!"

I finished filling a new ticket on that matter because I encountered exactly the same problem since two long days now ....

It appeared on a fresh new install of ubuntu 10.04 server (64bist) with latest installation of ebox (1.5.8)

As you my master ebox ldap shows correctly the slave and seems even happy with the "force sync". But from the slave (ldap slave and mail server) I got permanently this error.

In the ebox.log (in my case) It's referring to a hostname resolution problem and I was told to check my dns server but everything is ok.

I'm now stuck and my mail server is supposed to work in less than one week. Problem is that I can't enabled it without enabling the users and groups module before !!!

Hope we'll find a solution or workaround quickly...

Snarf

josejad

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +1/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #8 on: August 02, 2010, 12:28:13 pm »
Same problem here... the master shows the slave, but the slave doesn't have "Users and groups" active due to the error message.

puma

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #9 on: August 04, 2010, 11:22:52 am »
Any idea if this problem is about to get solved?

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: 1.5 Master/Slave "stringify"???
« Reply #10 on: August 04, 2010, 04:53:08 pm »
Of course we'll try to solve it, but there isn't anything new about this yet, just stay tuned...
Zentyal Server Lead Developer

josejad

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +1/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #11 on: August 06, 2010, 10:51:09 am »
Same problem with 1.5.1

exekias

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 196
  • Karma: +21/-0
    • View Profile
    • The Big Bug Theory
Re: 1.5 Master/Slave "stringify"???
« Reply #12 on: August 09, 2010, 12:29:00 pm »
Hi all,

I have fixed this problem, there are still some issues with master-slave but "stringify" is not longer one of them :)

This is the fix if you want to try it before next release of ebox-usersandgroups:

https://trac.ebox-platform.com/changeset/18330

UdoB

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +17/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #13 on: August 09, 2010, 06:07:33 pm »
Hi all,

I have fixed this problem,

https://trac.ebox-platform.com/changeset/18330


Great! I just patched my slave and then I was able to activate the "Users and Groups"-Module.

... and then it crashed - probably not surprisingly due to the inconsistent state.

I will continue with a reboot and "/usr/share/ebox-usersandgroups/ebox-usersandgroups-reinstall"...


Best regards
Udo

UdoB

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +17/-0
    • View Profile
Re: 1.5 Master/Slave "stringify"???
« Reply #14 on: August 09, 2010, 06:22:46 pm »

I will continue with a reboot and "/usr/share/ebox-usersandgroups/ebox-usersandgroups-reinstall"...


I am not sure if this is the next incarnation of a bug or if I did something wrong. My current situation is: I can activate the Users and Groups Module. But when I want to Save changes I get:


2010/08/09 18:12:40 INFO> Redis.pm:556 EBox::Config::Redis::_initRedis - Starting redis server
2010/08/09 18:13:37 DEBUG> UsersAndGroups.pm:2664 EBox::UsersAndGroups::_registerHostname - Error registering hostname:Already exists
2010/08/09 18:13:37 ERROR> Sudo.pm:216 EBox::Sudo::_rootError - root command /usr/bin/stat -c%dI%iI%fI%hI%uI%gIhI%sI%XI%YI%ZI%oI%bI%tI%T '/etc/ldap/ldap.conf' failed.
Error output: /usr/bin/stat: cannot stat `/etc/ldap/ldap.conf': No such file or directory

Command output: .
Exit value: 1
2010/08/09 18:13:41 DEBUG> UsersAndGroups.pm:2761 EBox::UsersAndGroups::waitSync - Master users: 3
2010/08/09 18:13:41 DEBUG> UsersAndGroups.pm:2762 EBox::UsersAndGroups::waitSync - Replica users: 3
2010/08/09 18:13:41 DEBUG> UsersAndGroups.pm:2763 EBox::UsersAndGroups::waitSync - Master groups: 5
2010/08/09 18:13:41 DEBUG> UsersAndGroups.pm:2764 EBox::UsersAndGroups::waitSync - Replica groups: 5
2010/08/09 18:13:41 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'ou=Users,dc=ps,dc=ebox,dc=lan';
2010/08/09 18:13:41 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
...
2010/08/09 18:13:41 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/09 18:14:09 INFO> Global.pm:473 EBox::Global::saveAllModules - Saving config and restarting services: firewall users samba
2010/08/09 18:14:09 INFO> Base.pm:152 EBox::Module::Base::save - Restarting service for module: users
2010/08/09 18:14:16 ERROR> Ldap.pm:177 EBox::Ldap::anonymousLdapCon - Can't create ldapi connection
2010/08/09 18:14:16 ERROR> Global.pm:566 EBox::Global::saveAllModules - The following modules failed while saving their changes, their state is unknown: users


Best regards
Udo