Bug 20874 - slapd starten wenn er bereits läuft führt zu Fehler
slapd starten wenn er bereits läuft führt zu Fehler
Status: RESOLVED DUPLICATE of bug 27228
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 2.4
Other Linux
: P5 normal (vote)
: UCS 2.x
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-03 12:24 CET by Janek Walkenhorst
Modified: 2012-05-22 18:15 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
walter: Patch_Available+


Attachments
Patch für die univention-ldap/conffiles/init.d/slapd (663 bytes, patch)
2011-10-20 10:41 CEST, Lukas Walter
Details | Diff
Entsprechender patch für UCS 3.0 (738 bytes, patch)
2011-10-20 10:47 CEST, Lukas Walter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Janek Walkenhorst univentionstaff 2010-12-03 12:24:26 CET
Betrifft UCS 2.4-0 und UCS 2.4-1

# /etc/init.d/slapd restart
 * Restarting ldap server(s)
 * Stopping ldap server(s): slapd
   ...done.
Check database: done
   * Starting ldap server(s): slapd
.
# /etc/init.d/slapd start
Check database: done
   * Starting ldap server(s): slapd
.
# ldapsearch -xLLL
Other (e.g., implementation specific) error (80)
Additional information: internal error

syslog:
Dec  3 14:21:03 qamaster slapd[13655]: conn=1007 fd=20 ACCEPT from IP=10.200.12.199:50666 (IP=0.0.0.0:389) 
Dec  3 14:21:03 qamaster slapd[13655]: conn=1007 op=0 BIND dn="" method=128 
Dec  3 14:21:03 qamaster slapd[13655]: conn=1007 op=0 RESULT tag=97 err=0 text= 
Dec  3 14:21:03 qamaster slapd[13655]: conn=1007 op=1 SRCH base="dc=univention,dc=qa" scope=2 deref=0 filter="(objectClass=*)" 
Dec  3 14:21:03 qamaster slapd[13655]: bdb(dc=univention,dc=qa): PANIC: fatal region error detected; run recovery 
Dec  3 14:21:03 qamaster slapd[13655]: OVER: rs->sr_err != LDAP_SUCCESS on "dc=univention,dc=qa" ERR: 0x50 
Dec  3 14:21:03 qamaster slapd[13655]: conn=1007 op=1 SEARCH RESULT tag=101 err=80 nentries=0 text=internal error 
Dec  3 14:21:03 qamaster slapd[13655]: conn=1007 op=2 UNBIND 
Dec  3 14:21:03 qamaster slapd[13655]: conn=1007 fd=20 closed
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2011-02-21 13:53:53 CET
Betrifft auch 2.3-2. Das ist in einer Kundenumgebung aufgetreten, wo bei bereits laufendem slapd noch einmal "/etc/init.d/slapd start" aufgerufen wurde und es dann häufig, aber nicht bei jeder Suchabfrage zu einem 
"Other (e.g., implementation specific) error" kommt.

Ein Neustart des slapd beseitigt das Problem.
Comment 2 Lukas Walter univentionstaff 2011-10-20 10:41:48 CEST
Created attachment 3655 [details]
Patch für die univention-ldap/conffiles/init.d/slapd

Der Patch fügt dem univention-template für das /etc/init.d/slapd script eine Überprüfung auf einen bereits laufenden slapd-Prozess mittels 'pidof slapd' hinzu, sodass der zu '/etc/init.d/slapd start' gehörende code nurnoch dann ausgeführt wird, wenn der ldap server nicht bereits läuft. Andernfalls wird 'ldap server is already running' ausgegeben.
Comment 3 Lukas Walter univentionstaff 2011-10-20 10:47:02 CEST
Created attachment 3656 [details]
Entsprechender patch für UCS 3.0
Comment 4 Arvid Requate univentionstaff 2012-05-22 18:15:33 CEST

*** This bug has been marked as a duplicate of bug 27228 ***