Kernel update issue with Surgemail

Issues related to applications and software problems
Post Reply
ralf
Posts: 132
Joined: 2005/11/25 20:10:20

Kernel update issue with Surgemail

Post by ralf » 2017/06/24 14:19:31

Hi,

I have run Surgemail on my CENTOS 7 server since a long time.
Today I ran into an upgrade issue, after the recently released kernel update from 3.10.0-514.21.1.el7.x86_64 to 3.10.0-514.21.2.el7.x86_64 on my CENTOS server. Upon rebooting, my Surgemail email server cannot not re-start with the new kernel.
I tried two different versions of Surgemail (incl the most recent) and both work with the old kernel and both fail with the new kernel.
A manual start gives:

[root@server1 ~]# /usr/local/surgemail/surgemail_start.sh
kernel.shmmax = 300000000
/usr/local/surgemail/surgemail_start.sh: line 11: ./startmail: Argument list too long
[root@server1 ~]#

Any ideas, or suggestions from your side?
I have asked Surgemail support but I have not received a reply yet (they are normally very responsive - max 24 h)
I don't want to start experimenting and by that blocking the email service, without knowing where to start....

Any help is appreciated!

Thanks!

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kernel update issue with Surgemail

Post by TrevorH » 2017/06/24 15:59:09

Sounds like another symptom of https://bugs.centos.org/view.php?id=13453

Try reading the linked icinga page from that bug report and see if their workaround can be made applicable to you too.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ralf
Posts: 132
Joined: 2005/11/25 20:10:20

Re: Kernel update issue with Surgemail

Post by ralf » 2017/06/24 21:37:24

Thanks Trevor, so it's a real kernel bug, but I don't know how to get around it.
Let's hope the Surgemail team can help me out here.....

chrispugmire
Posts: 1
Joined: 2017/06/26 04:57:53

Re: Kernel update issue with Surgemail

Post by chrispugmire » 2017/06/26 05:03:07

As a quick fix remove the 'ulimit' command from
/usr/local/surgemail/surgemail_start.sh
As it is not really required.

ChrisP. (SurgeMail support).

ralf
Posts: 132
Joined: 2005/11/25 20:10:20

Re: Kernel update issue with Surgemail

Post by ralf » 2017/06/26 17:35:55

As recommended by Surgemail in a separate email, I edited /usr/local/surgemail/surgemail_start.sh , from the orginal line

ulimit -s 1000

into:

ulimit -s 300000

The server runs now without any problems with the new kernel 3.10.0-514.21.2.el7.x86_64 on my CENTOS 7 server. Problem solved!

Thanks Surgemail support for the great and quick help, even when this is not a problem caused by Surgemail.

BR
Ralf

Post Reply