Operating System - HP-UX
1753486 Members
4157 Online
108794 Solutions
New Discussion

Re: error: cannot mmap()==MAP_FAILED

 

error: cannot mmap()==MAP_FAILED



cd /sbin/rc2.d



# ./S416ldapclientd start

ldapclientd started with <0>

#

error: cannot mmap()==MAP_FAILED









# ps -ef | grep ldap

root 26634 1 210 17:44:59 ? 1:20 /opt/ldapux/bin/ldapclientd

root 27135 6739 0 17:46:20 pts/1 0:00 grep ldap






# /opt/ldapux/bin/ldapclientd -k

Error: Cache daemon is not running (or running but not ready)


Thanks in advance
11 REPLIES 11
Steven E. Protter
Exalted Contributor

Re: error: cannot mmap()==MAP_FAILED

Shalom,

I have currently serious questions about the Q&A on this software (ldapux). Make sure you have the latest version released in late September.

http://software.hp.com


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: error: cannot mmap()==MAP_FAILED

J4269AA B.04.10 LDAP-UX Integration
Weltman, Ulf
Valued Contributor

Re: error: cannot mmap()==MAP_FAILED

This is not an error we've seen during the extensive testing phase each version goes through, or heard it reported before. I'd like to help you resolve this, but I'll need some more information.

Did LDAP-UX ever work on the host where you're experiencing the problem? Did you change anything? What OS and platform are you running on? Any manual configuration changes, system crashes, or anything unusual that you can think of?
SPGGPS
Occasional Visitor

Re: error: cannot mmap()==MAP_FAILED

Hi,

 

I have the same problem. I have hp-ux 11.23 and ladpux B.05.01. I do setup -l for use a local profile. The ldapux daemon run but nsquery not work.

 

Can you help me?

 

Thanks

SPGGPS
Occasional Visitor

Re: error: cannot mmap()==MAP_FAILED

This is a debug error output

 

[Jul/22/2011 13:12:18  1:     daemon.c: 349:       clean_up_dead_sockets: client 67184800 is alive]
[Jul/22/2011 13:12:18  1:     daemon.c: 124:                   server_up: called]
[Jul/22/2011 13:12:18  1:     daemon.c: 141:                   server_up: random pass is 20185]
[Jul/22/2011 13:12:18  1:     daemon.c: 170:                   server_up: daemon_status_p=mmap()]

error: cannot mmap()==MAP_FAILED
[Jul/22/2011 13:12:18  1:     daemon.c: 180:                   server_up: error: cannot mmap()==MAP_FAILED]
[Jul/22/2011 13:12:18  1:application.c: 195:       application_exit_trap: called]
[Jul/22/2011 13:12:18  1:     daemon.c: 768:                     cleanup: called]

Thanks

Dennis Handly
Acclaimed Contributor

Re: error: cannot mmap()==MAP_FAILED

You could use tusc to find the exact reason the syscall failed.

LucaBerra
New Member

Re: error: cannot mmap()==MAP_FAILED

happened to me today

using tusc /opt/ldapux/bin/ldapclientd -z i discovered it failed mmapping /var/spool/ldapcltd/status

 

removed the file and restarted ldapux, it works fine now.

 

boukari
Frequent Advisor

Re: error: cannot mmap()==MAP_FAILED

The error can occurs when ldapclientd fails to memory map an existing status file /var/spool/ldapcltd/status . To solve the issue, remove the file before starting ldapclientd . The file will be newly created by ldapclientd .

BCS SW/HW GSC Engineer (L1)
IEEE Student Member
LPI 3 CORE & High Availability
VCP Vshpere 5 Datacenter
Novell CLA and Data Center specialist Certified
.....
Microsoft Partner & Microsoft student Partner
feeble
Valued Contributor

Re: error: cannot mmap()==MAP_FAILED

LucaBerra, why you did not get kudos, i don't know. But you just saved my ass tonight. Many kudos to you.