Author Topic: Zentyal 4.0 on Ubuntu 14.04.1 LTS [SOLVED]  (Read 10607 times)

jaapzee

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Zentyal 4.0 on Ubuntu 14.04.1 LTS [SOLVED]
« on: November 26, 2014, 12:18:50 pm »
I'm trying to install Zentyal 4.0 on Ubuntu 14.04.1 LTS.

I get the following dependency problem:
Code: [Select]
dpkg: dependency problems prevent configuration of zentyal-software:
 zentyal-software depends on zentyal-core (>= 4.0); however:
  Package zentyal-core is not configured yet.
 zentyal-software depends on zentyal-core (<< 4.1); however:
  Package zentyal-core is not configured yet.

dpkg: error processing package zentyal-software (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zentyal:
 zentyal depends on zentyal-core; however:
  Package zentyal-core is not configured yet.
 zentyal depends on zentyal-software; however:
  Package zentyal-software is not configured yet.

dpkg: error processing package zentyal (--configure):
 dependency problems - leaving unconfigured

/var/lib/zentyal/tmp/mason.err:
Code: [Select]
Could not connect to Redis server at /var/lib/zentyal//redis.ebox.sock: No such file or directory at /usr/share/perl5/Redis.pm line 550.
        Redis::__build_sock('Redis=HASH(0x3db42d0)') called at /usr/share/perl5/Redis.pm line 529
        Redis::__connect('Redis=HASH(0x3db42d0)') called at /usr/share/perl5/Redis.pm line 127
        Redis::new('Redis', 'sock', '/var/lib/zentyal//redis.ebox.sock', 'encoding', undef) called at /usr/share/perl5/EBox/Config/Redis.pm line 517
        EBox::Config::Redis::_respawn('EBox::Config::Redis=HASH(0x3db4030)') called at /usr/share/perl5/EBox/Config/Redis.pm line 63
        EBox::Config::Redis::_new('EBox::Config::Redis') called at /usr/share/perl5/EBox/Config/Redis.pm line 92
        EBox::Config::Redis::instance('EBox::Config::Redis') called at /usr/share/perl5/EBox/Module/Config.pm line 47
        EBox::Module::Config::_create('EBox::GlobalImpl', 'name', 'global', 'printableName', 'global') called at /usr/share/perl5/EBox/GlobalImpl.pm line 71
        EBox::GlobalImpl::_new_instance('EBox::GlobalImpl') called at /usr/share/perl5/Class/Singleton.pm line 58
        Class::Singleton::instance('EBox::GlobalImpl') called at /usr/share/perl5/EBox/Global.pm line 38
        EBox::Global::new('EBox::Global', undef) called at /usr/share/perl5/EBox/Global.pm line 56
        EBox::Global::getInstance('EBox::Global') called at /usr/share/zentyal/sudoers-friendly line 40

/var/log/syslog:
Code: [Select]
Nov 26 09:27:01 ubuntu kernel: [55740.261985] init: ebox.redis main process (8784) terminated with status 1
Nov 26 09:27:01 ubuntu kernel: [55740.262005] init: ebox.redis main process ended, respawning
Nov 26 09:27:01 ubuntu kernel: [55740.280415] init: ebox.redis main process (8787) terminated with status 1
Nov 26 09:27:01 ubuntu kernel: [55740.280429] init: ebox.redis main process ended, respawning
Nov 26 09:27:01 ubuntu kernel: [55740.298568] init: ebox.redis main process (8790) terminated with status 1
Nov 26 09:27:01 ubuntu kernel: [55740.298581] init: ebox.redis main process ended, respawning
Nov 26 09:27:01 ubuntu kernel: [55740.316332] init: ebox.redis main process (8793) terminated with status 1
Nov 26 09:27:01 ubuntu kernel: [55740.316345] init: ebox.redis main process ended, respawning
Nov 26 09:27:01 ubuntu kernel: [55740.334448] init: ebox.redis main process (8796) terminated with status 1
Nov 26 09:27:01 ubuntu kernel: [55740.334461] init: ebox.redis respawning too fast, stopped

/var/log/zentyal/redis-server.log:
Code: [Select]
[8786] 26 Nov 09:27:01.244 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
[8786] 26 Nov 09:27:01.244 # Creating Server TCP listening socket 127.0.0.1:6380: bind: Cannot assign requested address
[8789] 26 Nov 09:27:01.262 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
[8789] 26 Nov 09:27:01.262 # Creating Server TCP listening socket 127.0.0.1:6380: bind: Cannot assign requested address
[8792] 26 Nov 09:27:01.280 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
[8792] 26 Nov 09:27:01.280 # Creating Server TCP listening socket 127.0.0.1:6380: bind: Cannot assign requested address
[8795] 26 Nov 09:27:01.298 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
[8795] 26 Nov 09:27:01.298 # Creating Server TCP listening socket 127.0.0.1:6380: bind: Cannot assign requested address
[8798] 26 Nov 09:27:01.316 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
[8798] 26 Nov 09:27:01.316 # Creating Server TCP listening socket 127.0.0.1:6380: bind: Cannot assign requested address

How to proceed?
« Last Edit: November 28, 2014, 10:14:12 pm by jaapzee »

robb

  • Guest
Re: Zentyal 4.0 on Ubuntu 14.04.1 LTS
« Reply #1 on: November 26, 2014, 03:58:04 pm »
Try once more from scratch and follow https://wiki.zentyal.org/wiki/Installation_Guide#Zentyal_3.4_packages (use Ubuntu server 14.04 and replace 3.4 with 4.0 and you are good to go)

jaapzee

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Zentyal 4.0 on Ubuntu 14.04.1 LTS
« Reply #2 on: November 26, 2014, 04:52:03 pm »
I gave it another try, using a clean Ubuntu install; but no success:

Code: [Select]
Setting up zentyal-core (4.0.2) ...
Adding group `ebox' (GID 113) ...
Done.
Warning: The home dir /var/lib/zentyal/ you specified already exists.
Adding system user `ebox' (UID 106) ...
Adding new user `ebox' (UID 106) with group `ebox' ...
The home directory `/var/lib/zentyal/' already exists.  Not copying from `/etc/skel'.
adduser: Warning: The home directory `/var/lib/zentyal/' does not belong to the user you are currently creating.
Adding user `ebox' to group `adm' ...
Adding user ebox to group adm
Done.
dpkg: error processing package zentyal-core (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up libapache2-mod-perl2 (2.0.8+httpd24-r1449661-6ubuntu2) ...
Setting up libapache2-reload-perl (0.12-2) ...
Setting up libxmlrpc-lite-perl (0.717-1) ...
dpkg: dependency problems prevent configuration of zentyal-software:
 zentyal-software depends on zentyal-core (>= 4.0); however:
  Package zentyal-core is not configured yet.
 zentyal-software depends on zentyal-core (<< 4.1); however:
  Package zentyal-core is not configured yet.

dpkg: error processing package zentyal-software (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zentyal:
 zentyal depends on zentyal-core; however:
  Package zentyal-core is not configured yet.
 zentyal depends on zentyal-software; however:
  Package zentyal-software is not configured yet.

dpkg: error processing package zentyal (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 zentyal-core
 zentyal-software
 zentyal
E: Sub-process /usr/bin/dpkg returned an error code (1)

jaapzee

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Zentyal 4.0 on Ubuntu 14.04.1 LTS
« Reply #3 on: November 26, 2014, 04:55:47 pm »
Does it matter that I use a KVM image from opennebula?
http://marketplace.opennebula.systems/appliance/53e7c1b28fb81d6a69000003

jaapzee

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Zentyal 4.0 on Ubuntu 14.04.1 LTS
« Reply #4 on: November 26, 2014, 10:32:17 pm »
Looking at the logs it's probably caused by redis-server not starting:
Code: [Select]
[11730] 26 Nov 22:28:18.418 # Creating Server TCP listening socket 127.0.0.1:6380: bind: Cannot assign requested address
But I can't figure out why.
Code: [Select]
netstat -lntu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN   

mmekimia

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Zentyal 4.0 on Ubuntu 14.04.1 LTS
« Reply #5 on: November 27, 2014, 10:06:56 am »
I'm using Zentyal 4.0 on Ubuntu 14.04.1 in our KVM server without problem ( we had problems with OpenVZ on proxmox though because of IPV6 )

jaapzee

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Zentyal 4.0 on Ubuntu 14.04.1 LTS [SOLVED]
« Reply #6 on: November 28, 2014, 10:13:34 pm »
Finally I found out that my loopback interface wasn't bound to localhost. That's why redis-server wouldn't start and caused Zentyal installation to fail.

guterkerl

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Zentyal 4.0 on Ubuntu 14.04.1 LTS [SOLVED]
« Reply #7 on: December 12, 2014, 06:53:20 am »
How did you solve it? Am having the same issues on 14.04 minimal

How do you bind localhost to loopback?

Code: [Select]
root@zentyal:/var/log# cat /etc/hosts
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

# Auto-generated hostname. Please do not remove this comment.
127.0.0.1 zentyal.domain.com localhost  zentyal localhost.localdomain
::1 localhost ip6-localhost ip6-loopback

root@zentyal:/var/log# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00 
          inet addr:192.168.10.10  Bcast:192.168.255.255  Mask:255.255.255.0
          inet6 addr: feff::ff:ff:fe00:1234/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:62186 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9737 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:85766401 (85.7 MB)  TX bytes:619314 (619.3 KB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:300 (300.0 B)  TX bytes:300 (300.0 B)

apos

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +2/-0
    • View Profile
Re: Zentyal 4.0 on Ubuntu 14.04.1 LTS [SOLVED]
« Reply #8 on: December 31, 2014, 02:59:38 pm »
nano /etc/network/interfaces
 
 [...]
 auto lo
 iface lo inet loopback

apos

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +2/-0
    • View Profile
Re: Zentyal 4.0 on Ubuntu 14.04.1 LTS [SOLVED]
« Reply #9 on: January 01, 2015, 03:32:55 pm »
For the problem with the zentyal-core package: A postinstallation script of zentyal-core ist not working, so zentyal-core is never installed:

Simply run the script standalone

Code: [Select]
> /var/lib/dpkg/info/zentyal-core.postinst
and check for errors!

Deactivate the script:

Code: [Select]
vim /var/lib/dpkg/info/zentyal-core.postinst

#!/bin/bash
exit 0

set -e
[...]

re-run dpkg

Code: [Select]
dpkg --configure -a
    continue with the web interface, which should be run now!

Code: [Select]
service zentyal webadmin restart