Author Topic: Getting trouble when network in restart  (Read 4335 times)

Zent User

  • Zen Warrior
  • ***
  • Posts: 121
  • Karma: +1/-3
    • View Profile
Getting trouble when network in restart
« on: November 15, 2012, 01:37:45 pm »
For testing sake,I've installed 3.0 version in new system,I've followed installation steps given in online document.The problem is when given following cmd in terminal
Quote
/etc/init.d/networking restart

following error message is displaying
Quote
/etc/init.d/networking restart is deprecated because it may not enable again some 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
     
    I thought it is due to IP6,So configured as given in this link http://forum.zentyal.org/index.php/topic,11300.msg45755.html,but this link not worked for me.
   
I've two network interfaces eth0 is external and eth1 is internal,DHCP is working fine but unable to enable File sharing server.

Interface configuration as follows
Quote
iface eth0 inet static
     address 192.168.5.60
     netmask 255.255.255.192
     broadcast 192.168.5.63
     gateway 192.168.5.60
iface eth1 inet static
     address 192.168.6.1
     netmask 255.255.255.192
     broadcast 192.168.6.63

        If anything wrong in my configuration please don't get irritated,I'm new to Zenyal.
« Last Edit: November 19, 2012, 03:48:21 pm by Zent User »
Regards
Zent User

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Getting trouble when network in restart
« Reply #1 on: November 15, 2012, 07:53:42 pm »
That configuration sounds weird, as long as:
Quote
iface eth0 inet static
     address 192.168.5.60
     netmask 255.255.255.192
     broadcast 192.168.5.63
     gateway 192.168.5.60

You have set as gateway for this interface, the same IP of the interface. This does not make much sense for me...

Remember that File Sharing depends on Users And Groups and on DNS.

Do you have those modules installed and enbaled?

Zent User

  • Zen Warrior
  • ***
  • Posts: 121
  • Karma: +1/-3
    • View Profile
Re: Getting trouble when network in restart
« Reply #2 on: November 16, 2012, 06:36:27 am »
Quote
For testing sake,I've installed 3.0 version in new system,I've followed installation steps given in online document.The problem is when given following cmd in terminal
Quote
/etc/init.d/networking restart

following error message is displaying
Quote
/etc/init.d/networking restart is deprecated because it may not enable again some 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

Above issue is solved,follow steps in http://askubuntu.com/questions/137037/networkmanager-not-populating-resolv-conf/172157#172157
« Last Edit: November 16, 2012, 08:07:19 am by Zent User »
Regards
Zent User

christian

  • Guest
Re: Getting trouble when network in restart
« Reply #3 on: November 16, 2012, 08:06:17 am »
@Zent user
If the issue is solved, please modify your very first post so that title contains [SOLVED].

Zent User

  • Zen Warrior
  • ***
  • Posts: 121
  • Karma: +1/-3
    • View Profile
Re: [Not-SOLVED]Getting trouble when network in restart
« Reply #4 on: November 19, 2012, 03:27:05 pm »
Sorry to say,

      When system initially starts everything works,but when I give /etc/init.d/networking restart

Quote
/etc/init.d/networking restart is deprecated because it may not enable again some 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

    errors are getting, when I follow the steps given in http://askubuntu.com/questions/137037/networkmanager-not-populating-resolv-conf/172157#172157 temporarily solved,when system reboots problem again raises.What might the wrong,please help me,nearly 6 hours I've spent on this issue .
 
Regards
Zent User

christian

  • Guest
Re: [SOLVED]Getting trouble when network in restart
« Reply #5 on: November 19, 2012, 03:31:31 pm »
1 - If problem occurs again, feel free to remove the [RESOLVED] stamp in first post title.
2 - using Zentyal "only" you should not face such issue. However and obviously, if for some reason, you modified Zentyal configuration without following what Zentyal documentation strongly suggests, be sure you will face what you describe.

Have a look here.

What I'm really wondering is why do you have to modify resolve.conf ?
Configuring your Zentyal platform using only GUI, this is very unlikely that you face any issue with this component.

Reading your new post (while I was typing): you are not supposed to restart network using this command... look rather at /etc/init.d/zentyal and get the list of services you can restart. "network" is not part of these services BTW  :-\

If you want to use CLI rather than GUI, perhaps Zentyal is not the right choice  ???

christian

  • Guest
Re: [Not-SOLVED]Getting trouble when network in restart
« Reply #6 on: November 19, 2012, 03:32:49 pm »
If you face problem with IPV-, instead of looking for solution in other forums, search this one. This topic has already been addressed, with proper solution BTW

Zent User

  • Zen Warrior
  • ***
  • Posts: 121
  • Karma: +1/-3
    • View Profile
Re: Getting trouble when network in restart
« Reply #7 on: November 19, 2012, 03:51:01 pm »
I've not modified any configuration file,when error occurred just googled,I found the similar issue in askubuntu.com,followed those steps,it was solved initially but today it again raises.

  In 2.2 version when I give above command it was restarting the networking perfectly but in 3.0 I'm facing this problem,is it due IPV6 issue ? 
Regards
Zent User

christian

  • Guest
Re: Getting trouble when network in restart
« Reply #8 on: November 19, 2012, 04:04:02 pm »
Could you please clarify:

1 - what is the error? (error message ?)
2 - Do you face any error if you don't try to restart network?
3 - why is your external interface configured to use itself as default gateway. This doesn't make sense  :o

Based on what you describe in your first post, you only get error when you try to run "/etc/init.d/network restart" is it correct?

Zent User

  • Zen Warrior
  • ***
  • Posts: 121
  • Karma: +1/-3
    • View Profile
Re: Getting trouble when network in restart
« Reply #9 on: November 20, 2012, 05:15:04 am »
Sure,
Quote
1 - what is the error? (error message ?)

/etc/init.d/networking restart

following error message is displaying
Quote
/etc/init.d/networking restart is deprecated because it may not enable again some 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

Quote
2 - Do you face any error if you don't try to restart network?

        I'm not facing any trouble without giving any command,but I give above command,error is getting,once error is getting I'm unable to access the internet.

Quote
3 - why is your external interface configured to use itself as default gateway

       I've changed eth0 configuration, current configuration is

       iface eth0 inet static
                   address 192.168.1.12
                   netmask 255.255.255.0
                   broadcast 192.168.1.255
                   gateway 192.168.1.1

   Thanks

   
Regards
Zent User

christian

  • Guest
Re: Getting trouble when network in restart
« Reply #10 on: November 20, 2012, 07:13:31 am »
Clearer, thank you but you need to go one step further with explanations.

- If there is no error when you boot your server, why do you need to run /etc/init.d/networking restart" ?
- How did you modify interface configuration ?

Zent User

  • Zen Warrior
  • ***
  • Posts: 121
  • Karma: +1/-3
    • View Profile
Re: Getting trouble when network in restart
« Reply #11 on: November 20, 2012, 07:22:21 am »
Quote
- If there is no error when you boot your server, why do you need to run /etc/init.d/networking restart" ?

           Sometimes internet problems will raises,when I give above command everything will be set in 2.2,but here I getting error.

Quote
- How did you modify interface configuration ?

           I've set through zentyal GUI, in menu Network-> interfaces.
Regards
Zent User

christian

  • Guest
Re: Getting trouble when network in restart
« Reply #12 on: November 20, 2012, 07:35:32 am »
OK, so everything is fine  ;D
Next time your internet access is down and you prefer to restart interface instead of investigating to understand why such state (BTW, that's Microsoft habit to "restart" when it doesn't work  :P), you could rather run
Code: [Select]
ifdown eth0 && ifup eth0 instead of /etc/init.d/networking restart
This should work seamlessly  ;)

Zent User

  • Zen Warrior
  • ***
  • Posts: 121
  • Karma: +1/-3
    • View Profile
Re: Getting trouble when network in restart
« Reply #13 on: November 20, 2012, 07:43:41 am »
ok,Thanks
Regards
Zent User

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Getting trouble when network in restart
« Reply #14 on: November 20, 2012, 12:33:34 pm »
Or maybe it could be even safer to run
Code: [Select]
sudo service zentyal network restartas there some hooks that are not defined through post.up and pre.up standard files.

Best regards