Author Topic: Get ride of that eth3 that breaks my zentyal gateway feature  (Read 1830 times)

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +5/-0
    • View Profile
    • Gecka
Hello,

My internet provider had issues one day. So I did setup my huawei 3G Usb modem on my Zentyal server. I have installed the drivers from Huawei and the USB key got seen as a network interface (eth3), which allowed me to set it up as the gateway, great.

Now that I don't need it anymore (the driver isn't DKMS compatible and need to be compiled after each kernel update), I just can't plug it off....

In order to do so, I went to zentyal administration Web UI, I set eth3 to Unused, I then uninstalled the driver and did a reboot of the server (which, as a side note, takes literally takes ages on my Intel Quad core server...).

After reboot, my network did not have access to Internet. Trying to change any settings related to the network doesn't work anymore, Zentyal complaining that an error occurred and that it can't apply changes.

Looking at /var/log/zentyal/zentyal.log while saving changes I found the error:

2013/06/17 09:17:07 ERROR> Service.pm:866 EBox::Module::Service::__ANON__ - Error restarting service: Interface eth3 n'existe pas.

The last part of the error message is in french and can be translated to "The eth3 interface doesn't exists" ... The only fix I have found is to plug back the Huawei 3G Usb key, reinstall the driver and then reboot. But I do need that 3G Usb modem for other uses, I don't want to keep it plugged in my server (it also seems like the driver suffers from a memory leak issue)

How should I tell Zentyal that an interface has been removed ?
Laurent

christian

  • Guest
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #1 on: June 17, 2013, 06:11:08 am »
Instead of removing drivers, can't you, as a workaround, waiting for Zentyal to provide "remove interface" capability, deactivate this interface ?
I'm running Zentyal test server from time to time, built with 4 network interfaces. I often don't need all the 4 NIC. In such case, I do not configure NICs that are not required and it works well like this.

I don't understand in you explanation what is breaking Zentyal gateway feature. Is is lack of interface removal capability because you would like Zentyal to be "clean" or is it because you need you modem elsewhere or because installing your modem back activates it without capability to deactivate it.

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +5/-0
    • View Profile
    • Gecka
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #2 on: June 17, 2013, 06:30:51 am »
I need to use the modem elsewhere.

If I simply unplug it, a reboot will break the gateway feature. Ubuntu is fine removing it when it doesn't exists anymore. But it seems to be kept somewhere by Zentyal because zentyal complains about it missing in the logs.
Laurent

christian

  • Guest
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #3 on: June 17, 2013, 06:37:12 am »
Have a look at Zentyal DB. I suspect it is described somewhere there.
Once you have removed it from Ubuntu, you may edit DB record.

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +5/-0
    • View Profile
    • Gecka
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #4 on: June 17, 2013, 08:07:37 am »
How, please, do I access that Zentyal DB ?
Laurent

christian

  • Guest
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #5 on: June 17, 2013, 09:46:22 am »
Depends on your Zentyal version:
- till 2.2, Zentyal uses Postgres DB
- starting with 3.0 (if I'm not wrong) they moved to MySQL

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +5/-0
    • View Profile
    • Gecka
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #6 on: June 17, 2013, 09:54:00 am »
Thanks. I use 3.0. Where is that Zentyal DB password located please? What is the username ?

I found one in /var/lib/zentyal/conf/ebox.passwd but it doesn't seems to work.
Laurent

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +5/-0
    • View Profile
    • Gecka
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #7 on: June 17, 2013, 09:56:46 am »
Found it thanks. The username is zentyal and the password is in /var/lib/zentyal/conf/zentyal-mysql.passwd, now I have to find where that eth3 record is kept. I hope I won't break anything ....
Laurent

christian

  • Guest
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #8 on: June 17, 2013, 09:58:44 am »
Easy, if you don't post here anymore, it will mean that it is indeed broken  :P  ;D ;D

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +5/-0
    • View Profile
    • Gecka
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #9 on: June 17, 2013, 12:00:07 pm »
Lol.

Searching all fields in all tables using phpmyadmin returns 0 result... damn ...
Laurent

Rafael Muylaert

  • Zen Apprentice
  • *
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #10 on: June 17, 2013, 04:53:14 pm »
I had this problem once when I had a failure in the ethernet module of my server's motherboard. what I did was to comment out the part that refers to said network interface in /etc/udev/rules.d/70-persistent-net.rules

It worked ok for me because I added other network cards that took over the names of the previously configured cards.

Also, I think before setting eth3 to unused in the web UI, it would be good to set it with a static ip that is not used in any other interface.

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +5/-0
    • View Profile
    • Gecka
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #11 on: June 18, 2013, 12:17:34 am »
Thanks but that is something I already tried to do ...
Laurent

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 83
  • Karma: +5/-0
    • View Profile
    • Gecka
Re: Get ride of that eth3 that breaks my zentyal gateway feature
« Reply #12 on: June 18, 2013, 02:06:14 am »
Here is what I can find (the USB modem plugged in)

Code: [Select]
$ sudo grep -r eth3 /etc/
/etc/udev/rules.d/70-persistent-net.rules:SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:10:1f:00:01", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

Code: [Select]
$ sudo grep -r eth3 /var/lib/zentyal/
Binary file /var/lib/zentyal/temp-3691.rdb matches
grep: /var/lib/zentyal/zavs: No such device or address
Binary file /var/lib/zentyal/temp-3809.rdb matches
Binary file /var/lib/zentyal/temp-3272.rdb matches
Binary file /var/lib/zentyal/temp-4050.rdb matches
Binary file /var/lib/zentyal/dump.rdb matches
Laurent