[Solved] Zimbra installation Bug On centos 7

Ask questions about your setup or get help installing ZCS server (ZD section below).
User avatar
syslint
Posts: 36
Joined: Wed Feb 24, 2016 7:59 am
Contact:

[Solved] Zimbra installation Bug On centos 7

Post by syslint »

Zimbra installation is failing with the following error

Bu Details :
Zimbra exit with the following errors

Code: Select all

Installing  zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell...done
Operations logged to /tmp/zmsetup.20160922-172440.log
Installing LDAP configuration database...done.
Setting defaults...     MX: mymail.com (85.10.200.10)

        Interface: 127.0.0.1
        Interface: 136.243.150.152  136.243.150.129
                85.10.200.10
Can't call method "addr" on an undefined value at /opt/zimbra/libexec/zmsetup.pl line 1724.
Please see the server detaisl below,

Code: Select all

#  cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
136.243.150.152  mymail.com 
# cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core) 
# ifconfig 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 136.243.150.152  netmask 255.255.255.255  broadcast 136.243.150.152
        ether 90:1b:0e:8b:0f:db  txqueuelen 1000  (Ethernet)
        RX packets 1127103  bytes 1663714382 (1.5 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 94264  bytes 6978866 (6.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xf7000000-f7020000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 0  (Local Loopback)
        RX packets 12  bytes 600 (600.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 600 (600.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 90:1b:0e:8b:0f:db brd ff:ff:ff:ff:ff:ff
    inet 136.243.150.152 peer 136.243.150.129/32 brd 136.243.150.152 scope global eth0
       valid_lft forever preferred_lft forever
#
The zimbra version I am trying to install is zcs-8.7.0_GA_1659.RHEL7_64.20160628202714

Please note We have seen this issue in a lot of servers. The solutions was to downgrade the OS.
24x7 PROACTIVE ZIMBRA SERVER MANAGEMENT | Sales : sales @ syslint.com | Skype us : SyslintSkype | Call us : (+91) 471-60 - 7799 | visit : https://syslint.com
liverpoolfcfan
Elite member
Elite member
Posts: 1096
Joined: Sat Sep 13, 2014 12:47 am

Re: Zimbra installation Bug On centos 7

Post by liverpoolfcfan »

Installation ran through no problem for me on CentOS 7.

For me I get

Code: Select all

Thu Aug 11 23:10:21 2016 checking isEnabled zimbra-mta
Thu Aug 11 23:10:21 2016 zimbra-mta is enabled
Thu Aug 11 23:10:21 2016 	MX: centos7.mydomain.com (192.168.200.249)
Thu Aug 11 23:10:21 2016 
Thu Aug 11 23:10:21 2016 	Interface: 127.0.0.1
Thu Aug 11 23:10:21 2016 	Interface: ::1
Thu Aug 11 23:10:21 2016 	Interface: 192.168.200.249
Thu Aug 11 23:10:22 2016 done.
so it looks like the issue is either you have IPv6 turned off - or - more likely the binding of 2 IP Addresses/adapters.

Can you explain what you had configured that was providing the 2 IP Addresses.
Interface: 136.243.150.152 136.243.150.129
User avatar
syslint
Posts: 36
Joined: Wed Feb 24, 2016 7:59 am
Contact:

Re: Zimbra installation Bug On centos 7

Post by syslint »

liverpoolfcfan wrote: so it looks like the issue is either you have IPv6 turned off - or - more likely the binding of 2 IP Addresses/adapters.
So you mean zimbra don't work with ipv4. I turned of the ipv6 to test it. The installer don't work in both case .
liverpoolfcfan wrote: Can you explain what you had configured that was providing the 2 IP Addresses.
Interface: 136.243.150.152 136.243.150.129
Check the first reply and see it yourself. There is no such configurations, It is a garbage output generating from the perl libs. This is passing without proper validation . That is the reason behind the issue . It is possible to edit the file and fix it /opt/zimbra/libexec/zmsetup.pl , but after your run the installer , it will be over written. There is nothing you can do with this case unless without providing a proper validation of ifconfig results


PS : I reloaded the same server with Ubutu 16.4 and everything works perfect. I have seem the above issue in more than 50 servers with Centos 7 . So early we had to downgrade to centos 6.
24x7 PROACTIVE ZIMBRA SERVER MANAGEMENT | Sales : sales @ syslint.com | Skype us : SyslintSkype | Call us : (+91) 471-60 - 7799 | visit : https://syslint.com
liverpoolfcfan
Elite member
Elite member
Posts: 1096
Joined: Sat Sep 13, 2014 12:47 am

Re: Zimbra installation Bug On centos 7

Post by liverpoolfcfan »

The question I am asking is what in your installation/environment is causing you network to report a peer

Your configuration

Code: Select all

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 90:1b:0e:8b:0f:db brd ff:ff:ff:ff:ff:ff
    inet 136.243.150.152 peer 136.243.150.129/32 brd 136.243.150.152 scope global eth0
       valid_lft forever preferred_lft forever
#
Here is the output for the same command on our CentOS 7 system

Code: Select all

[root@centos7 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:0c:29:23:9a:ab brd ff:ff:ff:ff:ff:ff
    inet 192.168.200.249/24 brd 192.168.200.255 scope global ens160
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe23:9aab/64 scope link
       valid_lft forever preferred_lft forever
Note this line in each case :-
Yours
inet 136.243.150.152 peer 136.243.150.129/32 brd 136.243.150.152 scope global eth0
Ours
inet 192.168.200.249/24 brd 192.168.200.255 scope global ens160

I am suggesting that perhaps the install script does not understand how to handle an environment where a peer IP (in bold in your example) address is returned.

Do you know what you configured to make that appear?
User avatar
syslint
Posts: 36
Joined: Wed Feb 24, 2016 7:59 am
Contact:

Re: Zimbra installation Bug On centos 7

Post by syslint »

Yes , that was the reason . I figured it out. The server provider use peer instead of gateway.
24x7 PROACTIVE ZIMBRA SERVER MANAGEMENT | Sales : sales @ syslint.com | Skype us : SyslintSkype | Call us : (+91) 471-60 - 7799 | visit : https://syslint.com
liverpoolfcfan
Elite member
Elite member
Posts: 1096
Joined: Sat Sep 13, 2014 12:47 am

Re: Zimbra installation Bug On centos 7

Post by liverpoolfcfan »

Were you able to get it changed? And, if so what did you need to do differently? Providing a detailed solution here will help other people.
SAWSAN
Posts: 4
Joined: Thu Sep 29, 2016 12:45 pm

Re: Zimbra installation Bug On centos 7

Post by SAWSAN »

still also have the same problem here Can't call method "addr" on an undefined value at /opt/zimbra/libexec/zmsetup.pl with peer ip so can you share with how we solve this problem ?

note : out data center is hoznrail
User avatar
syslint
Posts: 36
Joined: Wed Feb 24, 2016 7:59 am
Contact:

Re: Zimbra installation Bug On centos 7

Post by syslint »

Yes, To solve this issue . Please do it as follows,
Edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 and change the line of peer with GATEWAY. Then restart the network. That will solve the issue.
24x7 PROACTIVE ZIMBRA SERVER MANAGEMENT | Sales : sales @ syslint.com | Skype us : SyslintSkype | Call us : (+91) 471-60 - 7799 | visit : https://syslint.com
SAWSAN
Posts: 4
Joined: Thu Sep 29, 2016 12:45 pm

Re: Zimbra installation Bug On centos 7

Post by SAWSAN »

made your solution (Edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 and change the line of peer with GATEWAY. Then restart the network. ) but network service down

so could you told me your what is your data centre ?
User avatar
syslint
Posts: 36
Joined: Wed Feb 24, 2016 7:59 am
Contact:

Re: Zimbra installation Bug On centos 7

Post by syslint »

Hi,

It was hetzner
24x7 PROACTIVE ZIMBRA SERVER MANAGEMENT | Sales : sales @ syslint.com | Skype us : SyslintSkype | Call us : (+91) 471-60 - 7799 | visit : https://syslint.com
Post Reply