Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: UdoB on July 23, 2010, 03:13:52 pm

Title: [Solved] 1.5 Master/Slave "stringify"???
Post by: UdoB 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 ;-)
Title: Re: 1.5 Master/Slave "stringify"???
Post by: tazzy98 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
Title: Re: 1.5 Master/Slave "stringify"???
Post by: UdoB 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?
Title: Re: 1.5 Master/Slave "stringify"???
Post by: puma 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.
Title: Re: 1.5 Master/Slave "stringify"???
Post by: UdoB 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
Title: Re: 1.5 Master/Slave "stringify"???
Post by: jp.otto 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
Title: Re: 1.5 Master/Slave "stringify"???
Post by: puma 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.  :(
Title: Re: 1.5 Master/Slave "stringify"???
Post by: snarf77 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
Title: Re: 1.5 Master/Slave "stringify"???
Post by: josejad 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.
Title: Re: 1.5 Master/Slave "stringify"???
Post by: puma on August 04, 2010, 11:22:52 am
Any idea if this problem is about to get solved?
Title: Re: 1.5 Master/Slave "stringify"???
Post by: J. A. Calvo 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...
Title: Re: 1.5 Master/Slave "stringify"???
Post by: josejad on August 06, 2010, 10:51:09 am
Same problem with 1.5.1
Title: Re: 1.5 Master/Slave "stringify"???
Post by: exekias 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
Title: Re: 1.5 Master/Slave "stringify"???
Post by: UdoB 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
Title: Re: 1.5 Master/Slave "stringify"???
Post by: UdoB 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
Title: Re: 1.5 Master/Slave "stringify"???
Post by: exekias on August 09, 2010, 08:23:07 pm
It seems that ldap.conf has not been written, maybe you forgot to create ldap-slave.conf.mas file?
Title: Re: 1.5 Master/Slave "stringify"???
Post by: UdoB on August 09, 2010, 09:56:00 pm
It seems that ldap.conf has not been written, maybe you forgot to create ldap-slave.conf.mas file?

Yes. No.
Before accessing the web interface I did copy the content of
http://trac.ebox-platform.com/browser/trunk/client/usersandgroups/stubs/ldap-slave.conf.mas?rev=18330 into a newly created file at the same location as ldap.conf.mas exists, in: /usr/share/ebox/stubs/usersandgroups:

Code: [Select]
root@egw:/usr/share/ebox/stubs/usersandgroups# ls -al | grep ldap
-rw-r--r-- 1 root root   846 2010-08-04 18:18 ldap.conf.mas
-rw-r--r-- 1 root root   331 2010-08-09 17:46 ldap-slave.conf.mas

After realizing that ldap.conf is missing I copied ldap-slave.conf.mas manually to /etc/ldap.conf and adjusted two lines:
Code: [Select]
base dc=ps,dc=ebox,dc=lan
uri  ldap://10.2.102.1
I know that this is basically correct because I can successfully access the master by using "ldapsearch -x uid=ub" on the command line and getting the correct response.

Nevertheless I am not sure that this is the way the Master definition should look like. The web interface fails when I try to access Users and Groups with "An internal error has occurred" and in the ebox.log file I can read:
Code: [Select]
2010/08/09 21:30:12 ERROR> Ldap.pm:177 EBox::Ldap::anonymousLdapCon - Can't create ldapi connection
Probably I should wait for the next iteration of your packages and reinstall the slave then - I have no problem to wait :-)

Thank you
Title: Re: 1.5 Master/Slave "stringify"???
Post by: darkstar702 on August 09, 2010, 10:27:43 pm
My server is not in a Master/Slave configuration - its just as single server, but I'm noting the same behavior with LDAP and some of the errors look very much like the same ones I'm getting.  Is there a procedure to complete purge perl, apache, ebox, and all depedent modules and configuration files and start from scratch (aside from the obvious reformat)?
Title: Re: 1.5 Master/Slave "stringify"???
Post by: UdoB on August 10, 2010, 04:55:41 pm
Is there a procedure to complete purge perl, apache, ebox, and all depedent modules and configuration files and start from scratch (aside from the obvious reformat)?

To remove all eBox-components try:

Code: [Select]
~# apt-get --purge remove ebox*
To additionally remove now unused dependencies:

Code: [Select]
~# apt-get --purge autoremove
Best regards
Title: Re: 1.5 Master/Slave "stringify"???
Post by: pgarcia on August 10, 2010, 05:17:21 pm
I have tried with this solution but i continues getting this error:

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

It seems that ldap.conf has not been written, maybe you forgot to create ldap-slave.conf.mas file?
Title: Re: 1.5 Master/Slave "stringify"???
Post by: darkstar702 on August 10, 2010, 07:41:59 pm
Well, the last time I ran the 'sudo apt-get autoremove' command, it blew away my gnome desktop.  So I'm not sure how well that would work... Although I did note some updates last night that I'll run.  I plan to run the ebox purge and then the autoremove command again and then start from scratch.
Title: Re: 1.5 Master/Slave "stringify"???
Post by: UdoB on August 10, 2010, 08:57:24 pm

Probably I should wait for the next iteration of your packages and reinstall the slave then


With the availability of ebox-usersandgroups_1.5.5-0ubuntu1~ppa1~lucid1_all.deb I gave it another try. Unfortunately without success.

My notes for this trip:

~#apt-get --purge remove slapd ldap-utils ebox* samba* apache* redis*

~#reboot

root@egw:~# apt-get install ebox-usersandgroups
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libtalloc2 smbldap-tools collectd-core collectd quota libunicode-maputf8-perl acl libunicode-map-perl libquota-perl libwbclient0 libunicode-string-perl libjcode-pm-perl libunicode-map8-perl
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common ddclient ebox ebox-firewall ebox-network ebox-objects ebox-services ebox-software ldap-utils libapache-singleton-perl
  libapache2-mod-perl2 libapache2-reload-perl libebox libredis-perl redis-server slapd
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom ufw
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common ddclient ebox ebox-firewall ebox-network ebox-objects ebox-services ebox-software ebox-usersandgroups ldap-utils
  libapache-singleton-perl libapache2-mod-perl2 libapache2-reload-perl libebox libredis-perl redis-server slapd
0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.


Switch Mode Master --> Slave + enter Master host and Ldap password.

(ALL Modules are disabled up until now)

Save changes --> Moans about Firewall and Users and Groups, ignored. Save --> OK.

Module Status: enable Users and Groups --> mentions /etc/nsswitch.conf + /etc/ldap.conf --> Accept.

Users and Groups is "checked" now.

Save changes --> moans about Firewall. Ignored. Save --> Seems OK, but then:

   Some modules reported error when saving changes . More information on the logs in /var/log/ebox/
   The following modules failed while saving their changes, their state is unknown: users


Looking in /var/log/ebox/error.log:

[Tue Aug 10 20:41:31 2010] [notice] caught SIGTERM, shutting down
[Tue Aug 10 20:41:33 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Aug 10 20:41:33 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 10 20:41:33 2010] [warn] RSA server certificate CommonName (CN) `eBox Server' does NOT match server name!?
[Tue Aug 10 20:41:34 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 10 20:41:34 2010] [warn] RSA server certificate CommonName (CN) `eBox Server' does NOT match server name!?
[Tue Aug 10 20:41:34 2010] [notice] Apache/2.2.14 (Ubuntu) mod_ssl/2.2.14 OpenSSL/0.9.8k mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Aug 10 20:42:04 2010] [error] server reached MaxClients setting, consider raising the MaxClients setting
Use of uninitialized value $currentSeparator in string ne at /usr/share/perl5/EBox/Menu/Root.pm line 53.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44.
Use of uninitialized value $dir_path in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Tools.pm line 114.


And the corresponding part of /var/log/ebox/ebox.log:
 
2010/08/10 20:36:10 INFO> Base.pm:174 EBox::Module::Base::__ANON__ - Saving config for module: usercorner
2010/08/10 20:36:10 DEBUG> ebox-migrate:44 main::__ANON__ - Subroutine runGConf redefined at (eval 1153) line 29, <GEN2> line 6775.
2010/08/10 20:36:10 DEBUG> Base.pm:77 EBox::Migration::Base::executeGConf - Skipping migration to 3 in users
2010/08/10 20:36:10 DEBUG> ebox-migrate:44 main::__ANON__ - Subroutine runGConf redefined at (eval 1154) line 29, <GEN2> line 6776.
2010/08/10 20:36:10 DEBUG> Base.pm:77 EBox::Migration::Base::executeGConf - Skipping migration to 4 in users
2010/08/10 20:36:10 DEBUG> ebox-migrate:44 main::__ANON__ - Subroutine runGConf redefined at (eval 1155) line 33, <GEN2> line 6777.
2010/08/10 20:36:10 DEBUG> Base.pm:77 EBox::Migration::Base::executeGConf - Skipping migration to 5 in users
2010/08/10 20:36:10 INFO> Service.pm:666 EBox::Module::Service::restartService - Skipping restart for users as it's disabled
2010/08/10 20:36:11 INFO> Service.pm:670 EBox::Module::Service::restartService - Restarting service for module: apache
2010/08/10 20:36:11 INFO> ebox-apache-restart:52 main:: - Waiting for apache to shutdown, attempt 0
2010/08/10 20:36:34 INFO> Redis.pm:556 EBox::Config::Redis::_initRedis - Starting redis server
2010/08/10 20:38:46 INFO> Global.pm:473 EBox::Global::saveAllModules - Saving config and restarting services: firewall users
2010/08/10 20:40:04 DEBUG> UsersAndGroups.pm:2623 EBox::UsersAndGroups::_connRemoteLDAP - Can't connect to master eBox at 10.1.102.1
2010/08/10 20:40:04 DEBUG> ConfigureModuleController.pm:70 EBox::CGI::ServiceModule::ConfigureModuleController::__ANON__ - Failed to enable: Can't connect to master eBox at 10.1.102.1
2010/08/10 20:40:30 INFO> Global.pm:473 EBox::Global::saveAllModules - Saving config and restarting services: firewall users
2010/08/10 20:40:40 DEBUG> UsersAndGroups.pm:2664 EBox::UsersAndGroups::_registerHostname - Error registering hostname:Already exists
2010/08/10 20:40:40 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 '/var/lib/ebox/conf/ebox-ldap.passwd' failed.
Error output: /usr/bin/stat: cannot stat `/var/lib/ebox/conf/ebox-ldap.passwd': No such file or directory

Command output: .
Exit value: 1
2010/08/10 20:40:40 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 '/var/lib/ebox/tmp/slapd-replica.ldif' failed.
Error output: /usr/bin/stat: cannot stat `/var/lib/ebox/tmp/slapd-replica.ldif': No such file or directory

Command output: .
Exit value: 1
2010/08/10 20:40:40 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 '/var/lib/ebox/tmp/slapd-translucent.ldif' failed.
Error output: /usr/bin/stat: cannot stat `/var/lib/ebox/tmp/slapd-translucent.ldif': No such file or directory

Command output: .
Exit value: 1
2010/08/10 20:40:40 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 '/var/lib/ebox/tmp/slapd-frontend.ldif' failed.
Error output: /usr/bin/stat: cannot stat `/var/lib/ebox/tmp/slapd-frontend.ldif': No such file or directory

Command output: .
Exit value: 1
2010/08/10 20:40:40 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 '/var/lib/ebox/tmp/slapd-frontend-referrals.ldif' failed.
Error output: /usr/bin/stat: cannot stat `/var/lib/ebox/tmp/slapd-frontend-referrals.ldif': No such file or directory

Command output: .
Exit value: 1
2010/08/10 20:40:43 DEBUG> UsersAndGroups.pm:2761 EBox::UsersAndGroups::waitSync - Master users: 3
2010/08/10 20:40:43 DEBUG> UsersAndGroups.pm:2762 EBox::UsersAndGroups::waitSync - Replica users: 3
2010/08/10 20:40:43 DEBUG> UsersAndGroups.pm:2763 EBox::UsersAndGroups::waitSync - Master groups: 5
2010/08/10 20:40:43 DEBUG> UsersAndGroups.pm:2764 EBox::UsersAndGroups::waitSync - Replica groups: 5
2010/08/10 20:40:43 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'ou=Users,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:43 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:40:43 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'uid=ub,ou=Users,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:44 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:40:44 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'uid=ubt,ou=Users,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:44 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:40:44 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'uid=uba,ou=Users,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:44 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:40:44 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'ou=Groups,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:44 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:40:44 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'cn=__USERS__,ou=Groups,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:44 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:40:44 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'cn=testgroup,ou=Groups,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:44 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:40:44 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'cn=family,ou=Groups,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:44 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:40:44 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'cn=extern,ou=Groups,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:44 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:40:44 ERROR> Ldap.pm:719 EBox::Ldap::_errorOnLdap - $VAR1 = 'cn=media,ou=Groups,dc=ps,dc=ebox,dc=lan';
2010/08/10 20:40:44 ERROR> Ldap.pm:721 EBox::Ldap::_errorOnLdap - Unknown error at EBox::UsersAndGroups::__ANON__ Referral received
2010/08/10 20:41:29 INFO> Global.pm:473 EBox::Global::saveAllModules - Saving config and restarting services: firewall users
2010/08/10 20:41:29 INFO> Base.pm:152 EBox::Module::Base::save - Restarting service for module: users
2010/08/10 20:41:30 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 '/var/lib/ebox/conf//apache-soap-slave' failed.
Error output: /usr/bin/stat: cannot stat `/var/lib/ebox/conf//apache-soap-slave': No such file or directory

Command output: .
Exit value: 1
2010/08/10 20:41:30 INFO> Base.pm:152 EBox::Module::Base::save - Restarting service for module: apache
2010/08/10 20:41:32 INFO> ebox-apache-restart:52 main:: - Waiting for apache to shutdown, attempt 0
2010/08/10 20:41:34 INFO> Redis.pm:556 EBox::Config::Redis::_initRedis - Starting redis server
2010/08/10 20:41:40 ERROR> Ldap.pm:177 EBox::Ldap::anonymousLdapCon - Can't create ldapi connection
2010/08/10 20:41:40 ERROR> Global.pm:566 EBox::Global::saveAllModules - The following modules failed while saving their changes, their state is unknown: users


Best regards
Title: Re: 1.5 Master/Slave "stringify"???
Post by: darkstar702 on August 11, 2010, 11:11:07 pm
My ebox problem is solved and its up and running again flawlessly.  As per some of the suggestions in the forum, I did the following:

'sudo apt-get purge ebox-all'
'sudo apt-get purge slapd'
'sudo apt-get purge apache2'
'sudo apt-get purge ubuntu-desktop'
'sudo apt-get autoremove'

Once I rebooted, I reloaded ebox using the 'sudo apt-get install ebox' command, and then reloaded my Gnome desktop on the server without any of the "suggested installation components."  This resulted in a perfectly operating server, perfectly operating ebox system, and smooth set of updates. 

I'll be trying out the SAMBA shares later this evening.  Many thanks to all for the suggestions!
Title: Re: 1.5 Master/Slave "stringify"???
Post by: UdoB on August 12, 2010, 06:10:56 pm

This resulted in a perfectly operating server, perfectly operating ebox system, and smooth set of updates. 


Thank you for the report. I followed you sequence and had no success.

I did see some error messages in /var/log/ebox/ebox.log though.

Just for the record here is what I did:

Code: [Select]
Remove all ebox, slapd, apache2 + "autoremove"

Note: I had _no_ packages installed with "desktop" in its name.


~# apt-get --purge remove libldap-2.4-2

~# apt-get --purge remove liborbit2 # just uninstalled because it comes from ebox repository

~# rm -rf /etc/ldap # there were old artefacts from slapd

~# rm -rf /var/lib/ebox-usercorner/ # there were old artefacts

<reboot>

~# aptitude install ebox

~# aptitude install ebox-usersandgroups

First access to https://.../ebox, go immediately to Ldap and toggle Master --> Slave.

Do NOT "Save changes"

Go to Module Status. Activate "Users and Groups"

/var/log/ebox/ebox.log says:

Command output: .
Exit value: 1
2010/08/12 18:01: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 '/var/lib/ebox/tmp/slapd-frontend.ldif' failed.
Error output: /usr/bin/stat: cannot stat `/var/lib/ebox/tmp/slapd-frontend.ldif': No such file or directory


To be continued...