Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: newreal on October 13, 2012, 09:18:41 AM

Title: ntpd: failed to map segment from shared object: Cannot allocate memory [SOLVED]
Post by: newreal on October 13, 2012, 09:18:41 AM
If you happend to find this recuring error il your logs on SME 8 x64

Code: [Select]
ntpd: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory
you need to allow more memory to ntpd

Code: [Select]
[root@new-server ~]# db configuration show ntpd
ntpd=service
    MemLimit=12000000
    NTPServer=smeserver.pool.ntp.org
    SyncToHWClockSupported=yes
    status=enabled
[root@new-server ~]# db configuration setprop ntpd MemLimit 24000000

Since I don't know the SME action or event to write this config to "/var/service/ntpd/env/MEMLIMIT", I also edit the value in this file.

Then it is solved.

If someone knows the good command to write the config, please say it.
Title: Re: ntpd: failed to map segment from shared object: Cannot allocate memory [SOLVED]
Post by: janet on October 13, 2012, 09:55:14 AM
newreal

Please read this
http://wiki.contribs.org/Db_command_tutorial
it should help you work out the required command.
You can then apply that knowledge to any db command for any setting (for which db commands exist). It will serve you well as a sme server user.

There are lots of examples & specific commands here
http://wiki.contribs.org/DB_Variables_Configuration

If you cannot work out the command you need, then please ask here again.
Title: Re: ntpd: failed to map segment from shared object: Cannot allocate memory [SOLVED]
Post by: newreal on October 13, 2012, 10:04:52 AM
If you read my post, I know what to do with db configuration or config command.

What I do not know is how to force the expand and or the reload of NTPD config trough a signal-event action.

the expand command (Which I forgot to paste in my post) is

Code: [Select]
expand-template /var/service/ntpd/env/MEMLIMIT
Sometimes it does exists an event which expand and restart the service.
Title: Re: ntpd: failed to map segment from shared object: Cannot allocate memory [SOLVED]
Post by: newreal on October 13, 2012, 10:11:09 AM
forgive me, It's too early here in Belgium :-)

Code: [Select]
db configuration setprop ntpd MemLimit 24000000
signal-event timeserver-update

So 'voilĂ '.
Title: Re: ntpd: failed to map segment from shared object: Cannot allocate memory [SOLVED]
Post by: CharlieBrady on October 13, 2012, 03:12:21 PM
If you happend to find this recuring error il your logs on SME 8 x64

If you happen to find that, then you should report a bug via the bug tracker.
Title: Re: ntpd: failed to map segment from shared object: Cannot allocate memory [SOLVED]
Post by: wellsi on July 27, 2013, 06:01:06 PM
This was reported as Bug 7807 on 27th July and a possible fix provided the same day. Look out for e-smith-ntp-2.2.0-6.el5.sme.noarch

Please report bugs to bugzilla so that they can be fixed.