[Pkg-fedora-ds-maintainers] Bug#689389: 389-ds: dirsrv not restartable as port 389 not yet free when starting up

Johannes Graumann johannes_graumann at web.de
Tue Oct 2 07:12:43 UTC 2012


Package: 389-ds
Version: 1.2.11.7-5
Severity: important

Dear Maintainer,

'service dirsrv restart' is currently failing presumably due to the fact that 
port 389 is not yet sucessfully relinquished by the stopping process when the 
starting one tries to access it.

Please see the demonstration below for reproducing the behavior.

Thank you for your time invested in Debian!

Sincerely, Joh

# Install the directory server
PROMPT> aptitude install 389-ds
PROMPT> service dirsrv status
[info] no dirsrv instances configured so not starting 389 DS.
PROMPT> setup-ds
.... all the defaults ...
PROMPT> service dirsrv status
[info] dirsrv pc402346 (pid 10333) is running....

# Try to restart it and demonstrate failure
PROMPT> service dirsrv restart
[ ok ] Shutting down 389 DS instance pc402346: ....
[ ok ] Starting 389 DS instance pc402346: ....
PROMPT> service dirsrv status
[info] dirsrv pc402346 is stopped.
PROMPT> tail /var/log/dirsrv/slapd-pc402346/errors
[02/Oct/2012:09:57:24 +0300] - 389-Directory/1.2.11.7 B2012.212.1134 starting up
[02/Oct/2012:09:57:24 +0300] - I'm resizing my cache now...cache was 3309862912 and is now 8000000
[02/Oct/2012:09:57:25 +0300] - slapd started.  Listening on All Interfaces port 389 for LDAP requests
[02/Oct/2012:10:00:22 +0300] createprlistensockets - PR_Bind() on All Interfaces port 389 failed: Netscape Portable Runtime error -5982 (Local Network address is in use.)
[02/Oct/2012:10:00:22 +0300] - slapd shutting down - signaling operation threads
[02/Oct/2012:10:00:22 +0300] - slapd shutting down - waiting for 28 threads to terminate
[02/Oct/2012:10:00:22 +0300] - slapd shutting down - closing down internal subsystems and plugins
[02/Oct/2012:10:00:22 +0300] - Waiting for 4 database threads to stop
[02/Oct/2012:10:00:23 +0300] - All database threads now stopped
[02/Oct/2012:10:00:23 +0300] - slapd stopped.

# Demonstrate restartability using delayed start
PROMPT> service dirsrv start
[ ok ] Starting 389 DS instance pc402346: ....
PROMPT> root at pc402346:/home/balin# service dirsrv status
[info] dirsrv pc402346 (pid 10563) is running....
PROMPT> service dirsrv stop && sleep 10 && service dirsrv start
[ ok ] Shutting down 389 DS instance pc402346: ....
[ ok ] Starting 389 DS instance pc402346: ....
PROMPT> service dirsrv status
[info] dirsrv pc402346 (pid 10706) is running....

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages 389-ds depends on:
ii  389-admin          1.1.30-1
ii  389-admin-console  1.1.8-1
ii  389-console        1.1.7-1
ii  389-ds-base        1.2.11.7-5
ii  389-ds-console     1.2.6-1
ii  389-dsgw           1.1.9-1

389-ds recommends no packages.

389-ds suggests no packages.

-- no debconf information



More information about the Pkg-fedora-ds-maintainers mailing list