eBox configure fails

Bug #127353 reported by Spott
6
Affects Status Importance Assigned to Milestone
ebox (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ebox

eBox configuration fails with fallowing error:
suvi@server:~$ sudo dpkg --configure ebox
[sudo] password for suvi:
Setting up ebox (0.9.3-0ubuntu7) ...
Can't locate EBox/Global.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /etc/init.d/ebox line 6.
BEGIN failed--compilation aborted at /etc/init.d/ebox line 6.
invoke-rc.d: initscript ebox, action "start" failed.
dpkg: error processing ebox (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 ebox
suvi@server:~$

I am testing Ubuntu Gutsy Tribe 3 server.

Also - I am not alone:
http://ubuntuforums.org/showthread.php?t=505441&highlight=ebox

Related branches

Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 127353] eBox configure fails

On Sat, Jul 21, 2007 at 11:29:03AM -0000, Spott wrote:
> eBox configuration fails with fallowing error:
> suvi@server:~$ sudo dpkg --configure ebox
> [sudo] password for suvi:
> Setting up ebox (0.9.3-0ubuntu7) ...
> Can't locate EBox/Global.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /etc/init.d/ebox line 6.
> BEGIN failed--compilation aborted at /etc/init.d/ebox line 6.
> invoke-rc.d: initscript ebox, action "start" failed.
> dpkg: error processing ebox (--configure):
> subprocess post-installation script returned error exit status 2
> Errors were encountered while processing:
> ebox
> suvi@server:~$

I have absolutely no clue what could cause this. As you can see on
http://packages.ubuntu.com/cgi-bin/search_contents.pl?searchmode=filelist&word=ebox&version=gutsy&arch=all&page=3&number=50
/usr/share/perl5/EBox/Global.pm is indeed in the package. Could you
please try attaching the output of the following three commands:

md5sum /var/cache/apt/archives/ebox_0.9.3-0ubuntu7_all.deb

dpkg --contents /var/cache/apt/archives/ebox_0.9.3-0ubuntu7_all.deb

dpkg -L ebox

Thanks in advance, and thank you for testing this.

--
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/

Revision history for this message
Soren Hansen (soren) wrote :

On Sat, Jul 21, 2007 at 11:29:03AM -0000, Spott wrote:
> I am testing Ubuntu Gutsy Tribe 3 server.

So it's a fresh installation from the tribe 3 CD? And then you installed
the ebox package? And /usr/share/perl5/EBox/Global.pm does not exist?

--
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/

Revision history for this message
Spott (spott-spottraining) wrote :

suvi@server:~$ md5sum /var/cache/apt/archives/ebox_0.9.3-0ubuntu7_all.deb
72b0a08af8c56b4423858a73358de4d6 /var/cache/apt/archives/ebox_0.9.3-0ubuntu7_all.deb
suvi@server:~$

suvi@server:~$ dpkg --contents /var/cache/apt/archives/ebox_0.9.3-0ubuntu7_all.deb
drwxr-xr-x root/root 0 2007-07-20 18:42 ./
drwxr-xr-x root/root 0 2007-07-20 18:42 ./var/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./var/lib/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./var/lib/ebox/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./var/lib/ebox/conf/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./var/lib/ebox/tmp/
-rw-r--r-- root/root 34 2007-07-20 18:42 ./var/lib/ebox/.gconf.path
drwxr-xr-x root/root 0 2007-07-20 18:42 ./var/log/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./var/log/ebox/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./usr/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./usr/share/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./usr/share/doc/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./usr/share/doc/ebox/
-rw-r--r-- root/root 355 2006-11-09 18:27 ./usr/share/doc/ebox/AUTHORS
-rw-r--r-- root/root 1038 2007-07-20 18:42 ./usr/share/doc/ebox/copyright
-rw-r--r-- root/root 2298 2007-06-24 17:37 ./usr/share/doc/ebox/changelog.gz
-rw-r--r-- root/root 1537 2007-07-20 18:42 ./usr/share/doc/ebox/changelog.Debian.gz
drwxr-xr-x root/root 0 2007-07-20 18:42 ./usr/share/man/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./usr/share/man/man8/
-rw-r--r-- root/root 619 2007-07-20 18:42 ./usr/share/man/man8/ebox.8.gz
drwxr-xr-x root/root 0 2007-07-20 18:42 ./etc/
drwxr-xr-x root/root 0 2007-07-20 18:42 ./etc/init.d/
-rwxr-xr-x root/root 2435 2007-04-11 10:51 ./etc/init.d/ebox
suvi@server:~$

suvi@server:~$ dpkg -L ebox
/.
/var
/var/lib
/var/lib/ebox
/var/lib/ebox/conf
/var/lib/ebox/tmp
/var/lib/ebox/.gconf.path
/var/log
/var/log/ebox
/usr
/usr/share
/usr/share/doc
/usr/share/doc/ebox
/usr/share/doc/ebox/AUTHORS
/usr/share/doc/ebox/copyright
/usr/share/doc/ebox/changelog.gz
/usr/share/doc/ebox/changelog.Debian.gz
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/ebox.8.gz
/etc
/etc/init.d
/etc/init.d/ebox
suvi@server:~$

suvi@server:/usr/share/perl5/EBox$ ls
AbstractDaemon.pm FirewallObserver.pm Network.pm Sudo
CGI Firewall.pm NetworkUtil.pm Sudo.pm
Config Gettext.pm NetWrappers Test
Config.pm Iptables.pm NetWrappers.pm TestStub.pm
Exceptions Menu NTP.pm Validate.pm
FileSystem.pm Network ObjectsObserver.pm
FirewallHelper.pm NetworkObserver.pm Objects.pm
suvi@server:/usr/share/perl5/EBox$

And yes - this is fresh installation of server. First I install Ubuntu Gutsy server and then I install EBox with sudo apt-get install ebox-all command from internet (not from CD).

Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 127353] Re: eBox configure fails

On Sat, Jul 21, 2007 at 08:06:43PM -0000, Spott wrote:
> And yes - this is fresh installation of server. First I install Ubuntu
> Gutsy server and then I install EBox with sudo apt-get install
> ebox-all command from internet (not from CD).

Ah, I've tracked it down now. I'll upload a fix in a minute. Thanks for
reporting this!

--
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/

Revision history for this message
Soren Hansen (soren) wrote :

ebox (0.9.3-0ubuntu8) gutsy; urgency=low

  * Add missing .install file for ebox. (LP: #127353)

 -- Soren Hansen <email address hidden> Sat, 21 Jul 2007 22:40:35 +0200

Changed in ebox:
status: New → Fix Released
Revision history for this message
Spott (spott-spottraining) wrote :

Still the problems :)

Setting up ebox (0.9.3-0ubuntu8) ...
Use of uninitialized value in subroutine entry at /usr/share/perl5/EBox.pm line 113.
Use of uninitialized value in subroutine entry at /usr/share/perl5/EBox.pm line 114.
apache is not a valid module name
invoke-rc.d: initscript ebox, action "start" failed.
dpkg: error processing ebox (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 ebox
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
YorTheGreat (jord-swart) wrote :

The script (EBox.pm) is referring to user ebox and group ebox, that do not exist yet.

I also found that the ebox user needs to control the /var/log/ebox directory (chown -R ebox:ebox /var/log/ebox).

After fixing those, the startup script fails with the "apache is not a valid module name" error. Kinda funny, since the startup script seems to remove the apache module from the list, and then pushes it at the end. Resulting in the apache is not a valid module name.

Remarking the push apache in the startup script at least ensures ebox installs, but the the ebox-network module hangs with an "Can't call method "setIfaceDHCP" on an undefined value at /usr/share/ebox-network/ebox-netcfg-import line 105, <FD> line 9."

Playing around with that file, only produces errors somewhere else, so it seems that the whole network configuration has not been set correctly. (I hardcoded eth0 in the ebox-netcfg-import.pm on line 105 to run into errors in the setIfaceDHCP method in the Network.pm since $self->ifaceIsExternal($name) has not been defined).

Hope this helps.

YorTheGreat (jord-swart)
Changed in ebox:
status: Fix Released → Incomplete
Revision history for this message
Soren Hansen (soren) wrote :

On Sun, Jul 22, 2007 at 06:20:02PM -0000, Spott wrote:
> Still the problems :)

Yes, this is clearly not my day. I've reworked the maintainer scripts
and will upload a new version in a minute.

Again: Thanks for helping test this and reporting bugs!

--
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/

Revision history for this message
Soren Hansen (soren) wrote :

ebox (0.9.3-0ubuntu9) gutsy; urgency=low

  * Don't try to start eBox until the gconf schemas has been registered,
    the ssl certs have been generated, the user and group has been created,
    the log directory has been set to the proper ownership, and the database
    has been initialised. (LP: #127353, #127630)
  * Allow removal of ebox even if it can't be stopped.
  * Updated debian/copyright.

 -- Soren Hansen <email address hidden> Mon, 23 Jul 2007 01:29:26 +0200

Changed in ebox:
status: Incomplete → Fix Released
Revision history for this message
Spott (spott-spottraining) wrote :

And one more thing.
The file /var/log/ebox/ebox.log has wrong ownership:
suvi@ubuntuserver:~$ sudo /etc/init.d/ebox start
[sudo] password for suvi:
Cannot write to '/var/log/ebox/ebox.log': Permission denied at /usr/share/perl5/Log/Dispatch/File.pm line 86.
suvi@ubuntuserver:~$ cd /var/log/ebox
suvi@ubuntuserver:/var/log/ebox$ ls
ebox.log
suvi@ubuntuserver:/var/log/ebox$ ls -al
total 8
drwxr-xr-x 2 ebox adm 4096 2007-07-22 21:18 .
drwxr-xr-x 9 root root 4096 2007-07-23 17:20 ..
-rw-r--r-- 1 root root 0 2007-07-22 21:18 ebox.log
suvi@ubuntuserver:/var/log/ebox$
The ebox cannot write to this file. So - when I change chmod to 777, then I get at least ebox to work.
So can you please look this install script again, so that owner of ebox.log file has right.

Revision history for this message
Spott (spott-spottraining) wrote :

Last thing solved.

I have from old test some old log files. With new fresh installation all works with ebox package.

Revision history for this message
Soren Hansen (soren) wrote :

On Mon, Jul 23, 2007 at 05:11:28PM -0000, Spott wrote:
> Last thing solved.
>
> I have from old test some old log files. With new fresh installation all
> works with ebox package.

Happy to hear it!

--
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.