Koozali.org: home of the SME Server

ntpd: failed to map segment from shared object: Cannot allocate memory [SOLVED]

Offline newreal

  • *
  • 7
  • +0/-0
    • http://www.newreal.be/
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.

Offline janet

  • *****
  • 4,812
  • +0/-0
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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline newreal

  • *
  • 7
  • +0/-0
    • http://www.newreal.be/
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.

Offline newreal

  • *
  • 7
  • +0/-0
    • http://www.newreal.be/
forgive me, It's too early here in Belgium :-)

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

So 'voilĂ '.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
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.

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
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.
............