Subject: Re: openldap
To: None <netbsd-help@netbsd.org>
From: Keith Mastin <kmastin@beechtree.ca>
List: netbsd-help
Date: 09/05/2002 11:55:33
>On Thu, 5 Sep 2002, Keith Mastin wrote:
>
>> I noticed that there are errors:
>
>Some of those are normal (not problems).
>
>>   3477 slapd    CALL  ioctl(0x5,TIOCGETA,0xbfbfd454)
>>   3477 slapd    RET   ioctl -1 errno 25 Inappropriate ioctl for device
>> .... a few more.
>
>I don't know. But see below.
>
>> Here's the full kernel dump with the edits I mentioned:
>...
>
>>   3477 slapd    CALL  select(0x6,0,0xbfbfc9a8,0,0xbfbfc9a0)
>>   3477 slapd    RET   select 1
>>   3477 slapd    CALL  sendto(0x5,0xbfbfce9c,0x5b,0,0,0)
>>   3477 slapd    GIO   fd 5 wrote 91 bytes
>>        "<167>Sep  4 14:41:43 slapd[3477]: daemon: bind(8) failed errno=48
>> (Address already in use)
>
>Already in use?
>
>Use netstat(1) and/or fstat(1) to see.
>
>Also it looks like that was logged, but I am not sure.

This is from fstat:
root     slapd       3376   wd /         57536 drw-r-----     512 r 
root     slapd       3376    0 /         17871 crw-rw-rw-    null rw
root     slapd       3376    1 /         17871 crw-rw-rw-    null rw
root     slapd       3376    2 /         17871 crw-rw-rw-    null rw
root     slapd       3376    3* unix stream c0f9fc00 <-> c0fa6340
root     slapd       3376    4* unix stream c0fa6340 <-> c0f9fc00
root     slapd       3376    5* unix dgram c0fa6680 <-> c0f13a40
root     slapd       3376    6* unix stream c0faf5c0 <-> c0f9f1c0
root     slapd       3376    7* unix stream c0f9f1c0 <-> c0faf5c0
root     slapd       3376    8* internet stream tcp c0f87580 *:389

and also this. Note the different pid's.

root     slapd       2275   wd /         57536 drw-r-----     512 r 
root     slapd       2275    0 /         17871 crw-rw-rw-    null rw
root     slapd       2275    1 /         17871 crw-rw-rw-    null rw
root     slapd       2275    2 /         17871 crw-rw-rw-    null rw
root     slapd       2275    3* unix stream c0fa6e40 <-> c0f9fe40
root     slapd       2275    4* unix stream c0f9fe40 <-> c0fa6e40
root     slapd       2275    5* unix dgram c0fa6380 <-> c0f13a40
root     slapd       2275    6* unix stream c0f9af80 <-> c0fafec0
root     slapd       2275    7* unix stream c0fafec0 <-> c0f9af80
root     slapd       2275    8* internet6 stream tcp c0f87420 *:389

Funny that ps shows no slapd process running, and that ldap_search can't 
find the server.

Did a kill on both processes, restarted slapd, still can't connect to LDAP 
server.

..if only I had some hair to pull out... :)

Thanks Jeremy
-- 
Keith Mastin       BeechTree Information Technology Services Inc.
137 Laird Drive    Toronto    M4G 3V5     http://www.beechtree.ca
  (416)696-6070      Fax(416)696-6072      kmastin@beechtree.ca