Author Topic: network no se inicia al reiniciar servicio zentyal  (Read 7227 times)

x22bcn

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
network no se inicia al reiniciar servicio zentyal
« on: June 14, 2013, 11:06:19 am »
Me pasa lo mismo que aquí http://forum.zentyal.org/index.php/topic,11736.msg47668.html#msg47668 (no resuelto)

Tengo instalado Zentyal 3.0.21 desde hace 5 días en un servidor casero.

Cuando le digo reiniciar Zentyal, el módulo network no se reinicia.
Code: [Select]
sudo service restart zentyal
En cambio, si reinicio el módulo sólo si se reinicia correctamente
Code: [Select]
sudo service zentyal network restart
Quizás tenga algo que ver que he ido instalando módulos conforme los he ido necesitando.
Si necesitáis algún dato más, o algún archivo log decidme cual y os lo pongo.

Gracias

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: network no se inicia al reiniciar servicio zentyal
« Reply #1 on: June 14, 2013, 12:10:26 pm »
Entiendo que 

Code: [Select]
sudo service restart zentyal
es una errata no?
 Ya que la sintaxis correcta seria
Code: [Select]
sudo service zentyal restart
« Last Edit: June 14, 2013, 12:11:58 pm by jbahillo »

x22bcn

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: network no se inicia al reiniciar servicio zentyal
« Reply #2 on: June 14, 2013, 05:06:54 pm »
 ;D jajaja perdon.
si, el orden está mal.
mi amiga dislexia es muy fiel

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: network no se inicia al reiniciar servicio zentyal
« Reply #3 on: June 14, 2013, 05:08:53 pm »
Entonces cuando haces un

sudo service zentyal restart
dices que no se te reinicia network?


Si reinicias el servidor, network se inicia?

x22bcn

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: network no se inicia al reiniciar servicio zentyal
« Reply #4 on: June 14, 2013, 05:13:06 pm »
si. al arrancar sin problemas, pero reiniciar desde consola no funciona.
el sistema queda inaccesible desde red.

realmente es un problema si se tiene que hacer una actualización de paquetes desde una sesión ssh.
como haya un paquete que quiera reiniciar las ethernet el sistema se queda desconectado

pcready.cl

  • Zen Samurai
  • ****
  • Posts: 286
  • Karma: +13/-1
  • Zentyal Installer in Chile
    • View Profile
    • PC Ready Chile SpA
Re: network no se inicia al reiniciar servicio zentyal
« Reply #5 on: June 14, 2013, 11:04:31 pm »
Entiendo el problema, pero si puedes copiar los logs del sistema seria ideal, de todas formas si no inicia el DHCP es por falta o mala configuracion de las tarjetas eth.

Verificaste que todo este en orden?
Email: contacto@pcready.cl
Teléfono: (+56 32) 314 0883
Skype: pcready.cl
Web: https://www.pcready.cl

x22bcn

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: network no se inicia al reiniciar servicio zentyal
« Reply #6 on: June 17, 2013, 09:42:38 am »
Buscando en el log la parte relacionada con el reinicio defectuoso de network sale esto:
Code: [Select]
2013/06/17 09:24:07 INFO> Service.pm:861 EBox::Module::Service::restartService - Restarting service for module: network
2013/06/17 09:24:08 ERROR> Sudo.pm:233 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.1.1 dev eth1 src 192.168.1.2 table 101
/sbin/ip rule add from 192.168.1.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: No such process

Command output: .
Exit value: 2

Por si sirve también pongo el archivo generado /etc/network/interfaces

Code: [Select]
auto lo eth0 eth1

iface lo inet loopback

iface eth0 inet static
      address 192.168.0.2
      netmask 255.255.255.0
      broadcast 192.168.0.255


iface eth1 inet static
      address 192.168.1.2
      netmask 255.255.255.0
      broadcast 192.168.1.255

Gracias por vuestro tiempo

pcready.cl

  • Zen Samurai
  • ****
  • Posts: 286
  • Karma: +13/-1
  • Zentyal Installer in Chile
    • View Profile
    • PC Ready Chile SpA
Re: network no se inicia al reiniciar servicio zentyal
« Reply #7 on: June 17, 2013, 04:10:59 pm »
Buscando en el log la parte relacionada con el reinicio defectuoso de network sale esto:
Code: [Select]
2013/06/17 09:24:07 INFO> Service.pm:861 EBox::Module::Service::restartService - Restarting service for module: network
2013/06/17 09:24:08 ERROR> Sudo.pm:233 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.1.1 dev eth1 src 192.168.1.2 table 101
/sbin/ip rule add from 192.168.1.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: No such process

Command output: .
Exit value: 2

Por si sirve también pongo el archivo generado /etc/network/interfaces

Code: [Select]
auto lo eth0 eth1

iface lo inet loopback

iface eth0 inet static
      address 192.168.0.2
      netmask 255.255.255.0
      broadcast 192.168.0.255


iface eth1 inet static
      address 192.168.1.2
      netmask 255.255.255.0
      broadcast 192.168.1.255

Gracias por vuestro tiempo

Por SSH ejecuta el siguiente comando y dame el resultado.
Code: [Select]
sudo /etc/init.d/networking restart
Email: contacto@pcready.cl
Teléfono: (+56 32) 314 0883
Skype: pcready.cl
Web: https://www.pcready.cl

x22bcn

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: network no se inicia al reiniciar servicio zentyal
« Reply #8 on: June 17, 2013, 04:55:26 pm »
Realizando la siguiente acción desde consola ssh
Code: [Select]
sudo /etc/init.d/networking restart
El resultado es
Code: [Select]
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
 * Reconfiguring network interfaces...
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
ssh stop/waiting
ssh start/running, process 26344
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
ssh stop/waiting
ssh start/running, process 26394
Y deja de resolver dns

Al ejecutar
Code: [Select]
sudo service zentyal network restartVuelve a comportarse todo de manera normal

Gracias

pcready.cl

  • Zen Samurai
  • ****
  • Posts: 286
  • Karma: +13/-1
  • Zentyal Installer in Chile
    • View Profile
    • PC Ready Chile SpA
Re: network no se inicia al reiniciar servicio zentyal
« Reply #9 on: June 17, 2013, 07:30:02 pm »
Realizando la siguiente acción desde consola ssh
Code: [Select]
sudo /etc/init.d/networking restart
El resultado es
Code: [Select]
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
 * Reconfiguring network interfaces...
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
ssh stop/waiting
ssh start/running, process 26344
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
ssh stop/waiting
ssh start/running, process 26394
Y deja de resolver dns

Al ejecutar
Code: [Select]
sudo service zentyal network restartVuelve a comportarse todo de manera normal

Gracias

Verifica los parametro DNS en Zentyal.

Adicional a esto ve que todas las tarjetas de RED esten activas:

Ejecuta lo siguiente y me copias el resultado:
Code: [Select]
sudo ifconfig
Lo otro es que, tengas actualizado el Kernel de Zentyal y sus Headers

Para actualizar el Kernel de Zentyal debes hacerlo por WEB-GUI, una vez lo hagas actualiza los headers con el siguiente comando:
Code: [Select]
sudo apt-get update
Code: [Select]
sudo apt-get install linux-headers-$(uname -r)
Reinicia y me comentas si todo levanta bien en Zentyal.

Saludos!
Email: contacto@pcready.cl
Teléfono: (+56 32) 314 0883
Skype: pcready.cl
Web: https://www.pcready.cl

x22bcn

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: network no se inicia al reiniciar servicio zentyal
« Reply #10 on: June 18, 2013, 12:57:40 pm »
La salida de sudo ifconfig
Code: [Select]
eth0      Link encap:Ethernet  direcciónHW 00:24:1d:d4:0b:80
          Direc. inet:192.168.0.2  Difus.:192.168.0.255  Másc:255.255.255.0
          ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST  MTU:1500  Métrica:1
          Paquetes RX:100966 errores:0 perdidos:2 overruns:0 frame:0
          Paquetes TX:268274 errores:0 perdidos:0 overruns:0 carrier:0
          colisiones:0 long.colaTX:1000           
          Bytes RX:13190644 (13.1 MB)  TX bytes:332218045 (332.2 MB)

eth1      Link encap:Ethernet  direcciónHW 00:30:84:87:57:90
          Direc. inet:192.168.1.2  Difus.:192.168.1.255  Másc:255.255.255.0
          ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST  MTU:1500  Métrica:1
          Paquetes RX:1096274 errores:0 perdidos:0 overruns:0 frame:0
          Paquetes TX:583188 errores:0 perdidos:0 overruns:0 carrier:0
          colisiones:0 long.colaTX:1000             
          Bytes RX:1476267408 (1.4 GB)  TX bytes:50911412 (50.9 MB)

lo        Link encap:Bucle local 
          Direc. inet:127.0.0.1  Másc:255.0.0.0
          ACTIVO BUCLE FUNCIONANDO  MTU:16436  Métrica:1
          Paquetes RX:38614 errores:0 perdidos:0 overruns:0 frame:0
          Paquetes TX:38614 errores:0 perdidos:0 overruns:0 carrier:0
          colisiones:0 long.colaTX:0
          Bytes RX:54228402 (54.2 MB)  TX bytes:54228402 (54.2 MB)

Las dns tiene como primera la 127.0.0.1 y luego las de opendns

El ordenador arranca sin problemas, pero continua quedando desconectado al reiniciar el servicio zentyal.

Gracias