Author Topic: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1  (Read 6195 times)

expertgeeks

  • Forum Moderator
  • Zen Warrior
  • *****
  • Posts: 124
  • Karma: +11/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #15 on: November 26, 2015, 02:18:05 pm »
i've updated (long time ago) my servers to Ubuntu Vivid (15.04) LTS enablement stacks (actually kernel version:  3.19.0-33),
works without any issues like a charm!
https://wiki.ubuntu.com/Kernel/LTSEnablementStack

DESKTOP (if you use GUI (lxde) on server):
Code: [Select]
sudo apt-get install --install-recommends linux-generic-lts-vivid xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid libwayland-egl1-mesa-lts-vivid
SERVER (if your server running headless (without GUI)):
Code: [Select]
sudo apt-get install --install-recommends linux-generic-lts-vivid

Have you upgraded to Zentyal 4.2 with vivid without problems ?

julio

  • Guest
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #16 on: November 28, 2015, 07:28:54 pm »
i've updated (long time ago) my servers to Ubuntu Vivid (15.04) LTS enablement stacks (actually kernel version:  3.19.0-33),
works without any issues like a charm!
https://wiki.ubuntu.com/Kernel/LTSEnablementStack

DESKTOP (if you use GUI (lxde) on server):
Code: [Select]
sudo apt-get install --install-recommends linux-generic-lts-vivid xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid libwayland-egl1-mesa-lts-vivid
SERVER (if your server running headless (without GUI)):
Code: [Select]
sudo apt-get install --install-recommends linux-generic-lts-vivid

Have you upgraded to Zentyal 4.2 with vivid without problems ?

yes, without problems...

cpt.charisma

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +1/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #17 on: December 01, 2015, 05:19:05 pm »
Just a little more background & info:

This just got backported to 4.0, so I got to deal with it today.  In addition to IP, the Cut process was also at 100%.  It prevented DNS, DHCP, SAMBA, NTP and other important things from loading.

Here are Ubuntu bug reports on the issue:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1516052
https://bugs.launchpad.net/ubuntu/+source/linux-lts-utopic/+bug/1514785

It looks like there are several kernel versions affected, so this may come up again with future upgrades.

It stems from a bug in the kernel that makes the ip command output the first rule infinitely.  You can use this command to see if you're affected:
ip route ls

Broken Output:
0:   from all lookup local
0:   from all lookup local
0:   from all lookup local
0:   from all lookup local
0:   from all lookup local
0:   from all lookup local
0:   from all lookup local
<repeats indefinitely - ctrl+c to quit>

In Zentyal, this causes one of the network scripts to hang because it's waiting for that command to end.  This prevents loading of other services and resulted in my network being severely broken.

Besides the previously mentioned fix of rolling back the kernel, you can modify the script in question:
/usr/share/zentyal-network/flush-fwmarks

I just copied the file to flush-fwmarks.old, then edited the original commenting everything out.  I like this solution because I still get the benefit of the security fixes in the new kernel.  The down side is that the ip command is broken and firewall marks don't get flushed, but I don't really care about those :)  If you do care about those and have some shell scripting ability, it should be relatively easy to modify that script to notice that ip is broken and move on.

lacostewin

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #18 on: December 01, 2015, 06:03:27 pm »
Thank you, expertgeeks. With linux-image-3.13.0-70-generic the same history. Downgrade to linux-image-3.13.0-68-generic is fix problem. Sorry for bad En. Your brother from Russia))) ;) 8)

expertgeeks

  • Forum Moderator
  • Zen Warrior
  • *****
  • Posts: 124
  • Karma: +11/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #19 on: December 01, 2015, 07:46:06 pm »
You're very welcome ! Thanks for the feedback about the 3.13.0-70 kernel.

clockmoddersadm

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #20 on: December 06, 2015, 12:14:15 pm »
Problem is now completly solved with kernel 3.19.0-39-generic.

Upgraded today and issue is no more present.

ctucc99

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #21 on: December 09, 2015, 06:24:22 pm »
We did this fix when we encountered it (after running the 4.2 update via the Dashboard)...  we followed your instructions, rolled back the Kernel and it fixed it  (Thank you very much for posting this).

My question now however is in my Dashboard, I am at 4.2.1 and I now have 2 component updates and 43 system updates queued up for installation.  Can I install these via the Dashboard or am I going to run into the same issue again?  (IE am I going to continually have to roll back the kernel each time I run Zentyal updates now?)
« Last Edit: December 09, 2015, 08:15:28 pm by ctucc99 »

BerT666

  • Zen Warrior
  • ***
  • Posts: 228
  • Karma: +17/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #22 on: December 10, 2015, 10:20:47 am »
seems that the bug is fixed and normal update is working again :-)

jonathan38

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #23 on: December 16, 2015, 06:31:59 pm »
It's literally a process called "ip". If you run it manually, it starts looping indefinitely, causing the high CPU usage.

pocc

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #24 on: December 23, 2015, 09:30:04 pm »
So does this mean I can reboot to a newer kernel now?  I've been stuck on -51 for awhile

pocc

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] IP process is 100% CPU since last security update for Zentyal 4.1
« Reply #25 on: December 23, 2015, 09:49:33 pm »
So I bit the bullet and gave it a try today. 

In the process of trying to resolve this previously, I'd updated to the 15.04 hwe stack and the 3.19.x series kernel but was still having issues so I kept it on 3.16.0-51 as that seemed to be the last version that worked.

I'm pleased to say that both of my Zentyal boxes are now running 3.19.0-42 and things seem very snappily stable.