Author Topic: Network issue on Zentyal 4.2  (Read 1786 times)

Arif Ali

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Network issue on Zentyal 4.2
« on: August 29, 2016, 12:26:41 pm »
Hi all,

I have been trying to install Zentyal 4.2, to convert my installtion of a LDAP backed samba PDC, to get the other administrators some ease of use.

Most of the installation is good, and working very well, and actually have been very impressed, in how quickly I got the first Windows Desktop added to the domain.

The main issue I have is that when I run the following command, the network, and some of the other services fails to restart

Code: [Select]
root@zentyal:~# service zentyal restart
 * Stopping Zentyal module: openchange
   ...done.
 * Stopping Zentyal module: mail
   ...done.
 * Stopping Zentyal module: samba
   ...done.
 * Stopping Zentyal module: printers
   ...done.
 * Stopping Zentyal module: ntp
   ...done.
 * Stopping Zentyal module: logs
   ...done.
 * Stopping Zentyal module: dns
   ...done.
 * Stopping Zentyal module: dhcp
   ...done.
 * Stopping Zentyal module: ca
   ...done.
 * Stopping Zentyal module: audit
   ...done.
 * Stopping Zentyal module: firewall
   ...done.
 * Stopping Zentyal module: network
   ...done.
 * Stopping Zentyal module: webadmin
   ...done.
 * Starting Zentyal module: network
   ...fail!
 * Starting Zentyal module: firewall
   ...done.
 * Starting Zentyal module: audit
   ...done.
 * Starting Zentyal module: ca
   ...done.
 * Starting Zentyal module: dhcp
   ...done.
 * Starting Zentyal module: dns
   ...done.
 * Starting Zentyal module: logs
   ...done.
 * Starting Zentyal module: ntp
   ...done.
 * Starting Zentyal module: printers
   ...done.
 * Starting Zentyal module: samba
   ...fail!
 * Starting Zentyal module: mail
   ...fail!
 * Starting Zentyal module: openchange
   ...fail!
 * Starting Zentyal module: webadmin
   ...done.

But after bringing the network up, using ifup eth0, I can bring the rest of the zentyal modules up.

Below is an excerpt from the zentyal log, when this happens

Code: [Select]
2016/08/29 11:20:24 INFO> Service.pm:997 EBox::Module::Service::restartService - Restarting service for module: network
2016/08/29 11:20:27 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command set -e
/usr/share/zentyal-network/flush-fwmarks
/sbin/ip route flush table 101
/sbin/ip route add default via 192.168.0.1 dev eth0 src 192.168.0.17 table 101
/sbin/ip rule add from 192.168.0.1 table 101
/sbin/ip rule add fwmark 1/0xFF table 101
/sbin/ip rule add table main
/sbin/iptables -t mangle -A PREROUTING  -m mark --mark 0/0xff -j  MARK --set-mark 1
/sbin/iptables -t mangle -A OUTPUT -m mark --mark 0/0xff -j  MARK --set-mark 1 failed.
Error output: RTNETLINK answers: Network is unreachable

Command output: .
Exit value: 2 at root command set -e
/usr/share/zentyal-network/flush-fwmarks
/sbin/ip route flush table 101
/sbin/ip route add default via 192.168.0.1 dev eth0 src 192.168.0.17 table 101
/sbin/ip rule add from 192.168.0.1 table 101
/sbin/ip rule add fwmark 1/0xFF table 101
/sbin/ip rule add table main
/sbin/iptables -t mangle -A PREROUTING  -m mark --mark 0/0xff -j  MARK --set-mark 1
/sbin/iptables -t mangle -A OUTPUT -m mark --mark 0/0xff -j  MARK --set-mark 1 failed.
Error output: RTNETLINK answers: Network is unreachable

Command output: .
Exit value: 2 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/J9wzQvwmDH.cmd 2> /var/lib/zentyal/tmp/stderr', 'set -e^J/usr/share/zentyal-network/flush-fwmarks^J/sbin/ip route flush table 101^J/sbin/ip route add default via 192.168.0.1 dev eth0 src 192.168.0.17 table 101^J/sbin/ip rule add from 192.168.0.1 table 101^J/sbin/ip rule add fwmark 1/0xFF table 101^J/sbin/ip rule add table main^J/sbin/iptables -t mangle -A PREROUTING  -m mark --mark 0/0xff -j  MARK --set-mark 1^J/sbin/iptables -t mangle -A OUTPUT -m mark --mark 0/0xff -j  MARK --set-mark 1', 512, 'ARRAY(0x7d920a8)', 'ARRAY(0x2ef65e0)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/usr/share/zentyal-network/flush-fwmarks', '/sbin/ip route flush table 101', '/sbin/ip route add default via 192.168.0.1 dev eth0 src 192.168.0.17 table 101', '/sbin/ip rule add from 192.168.0.1 table 101', '/sbin/ip rule add fwmark 1/0xFF table 101', '/sbin/ip rule add table main', '/sbin/iptables -t mangle -A PREROUTING  -m mark --mark 0/0xff -j  MARK --set-mark 1', '/sbin/iptables -t mangle -A OUTPUT -m mark --mark 0/0xff -j  MARK --set-mark 1') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/usr/share/zentyal-network/flush-fwmarks', '/sbin/ip route flush table 101', '/sbin/ip route add default via 192.168.0.1 dev eth0 src 192.168.0.17 table 101', '/sbin/ip rule add from 192.168.0.1 table 101', '/sbin/ip rule add fwmark 1/0xFF table 101', '/sbin/ip rule add table main', '/sbin/iptables -t mangle -A PREROUTING  -m mark --mark 0/0xff -j  MARK --set-mark 1', '/sbin/iptables -t mangle -A OUTPUT -m mark --mark 0/0xff -j  MARK --set-mark 1') called at /usr/share/perl5/EBox/Network.pm line 2491
EBox::Network::_multigwRoutes('EBox::Network=HASH(0x790f640)', 0) called at /usr/share/perl5/EBox/Network.pm line 2681
EBox::Network::_enforceServiceState('EBox::Network=HASH(0x790f640)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 979
EBox::Module::Service::_regenConfig('EBox::Network=HASH(0x790f640)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 999
eval {...} at /usr/share/perl5/EBox/Module/Service.pm line 998
EBox::Module::Service::restartService('EBox::Network=HASH(0x790f640)', 'restartModules', 1) called at /usr/share/perl5/EBox/Util/Init.pm line 127
eval {...} at /usr/share/perl5/EBox/Util/Init.pm line 125
EBox::Util::Init::moduleAction('network', 'restartService', 'start') called at /usr/share/perl5/EBox/Util/Init.pm line 87
EBox::Util::Init::start at /etc/init.d/zentyal line 40
main::main at /etc/init.d/zentyal line 80
2016/08/29 11:20:27 ERROR> Service.pm:1001 EBox::Module::Service::restartService - Error restarting service: root command set -e

However, if I reboot the system, I have no problems at all.

So, any ideas on this would be great

Arif Ali

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Network issue on Zentyal 4.2
« Reply #1 on: August 29, 2016, 08:38:59 pm »

However, if I reboot the system, I have no problems at all.


In-fact, the default route never comes up, when I reboot the machine/VM. So have to add the default gw manually everytime

Arif Ali

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Network issue on Zentyal 4.2
« Reply #2 on: November 04, 2016, 04:23:51 pm »
I'm still stuck with this, any suggestions from anyone would be appreciated.

The only thing at the moment is, to look at the code, and try to fix it myself

Dezsike

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: Network issue on Zentyal 4.2
« Reply #3 on: November 16, 2016, 09:29:19 am »
Your network is misconfigured.
 
Quote
Error output: RTNETLINK answers: Network is unreachable

This message means that your default gateway is not reachable within your network, it must be in the same subnet your server is in. Either you've entered the wrong IP address as default gateway or the IP address of the gateway itself is not configured properly. Ensure your server and the gateway is on the same subnet.