Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891861 - net-nds/openldap-2.6.3-r5: stabilisation (was: Failed to start slapd.service.)
Summary: net-nds/openldap-2.6.3-r5: stabilisation (was: Failed to start slapd.service.)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords: CC-ARCHES
Depends on:
Blocks: 843029
  Show dependency tree
 
Reported: 2023-01-23 18:04 UTC by Michail Shurutov
Modified: 2023-01-30 15:25 UTC (History)
0 users

See Also:
Package list:
net-nds/openldap-2.6.3-r5
Runtime testing required: ---
nattka: sanity-check+


Attachments
patch for unit-file for slapd.service (slapd.service.patch,345 bytes, patch)
2023-01-23 18:06 UTC, Michail Shurutov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michail Shurutov 2023-01-23 18:04:19 UTC
slapd.service is failed to start after upgrade from 2.4.* to 2.6.3-r3. I init openldap instance again. Then I try to start slapd.service, but it is failed.

Reproducible: Always

Actual Results:  
Here are log part of start:
янв 23 17:04:41 myhost systemd[1]: Starting slapd.service...
░░ Subject: A start job for unit slapd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░ 
░░ A start job for unit slapd.service has begun execution.
░░ 
░░ The job identifier is 1441.
янв 23 17:04:41 myhost systemd[1]: slapd.service: Got notification message from PID 45190, but reception only permitted for main PID 45189
янв 23 17:06:11 myhost systemd[1]: slapd.service: start operation timed out. Terminating.
янв 23 17:06:11 myhost systemd[1]: slapd.service: Failed with result 'timeout'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░ 
░░ The unit slapd.service has entered the 'failed' state with result 'timeout'.
янв 23 17:06:11 myhost systemd[1]: Failed to start slapd.service.
░░ Subject: A start job for unit slapd.service has failed
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░ 
░░ A start job for unit slapd.service has finished with a failure.
░░ 
░░ The job identifier is 1441 and the job result is failed.
and status of slapd.service:
myhost ~ # systemctl status slapd.service  
× slapd.service - OpenLDAP Server Daemon 
     Loaded: loaded (/lib/systemd/system/slapd.service; enabled; preset: disable
d)
    Drop-In: /etc/systemd/system/slapd.service.d
             └─00gentoo.conf
     Active: failed (Result: timeout) since Fri 2023-01-20 20:42:56 MSK; 12min a
go
   Duration: 7h 33min 14.300s
    Process: 1049644 ExecStartPre=/usr/sbin/slaptest -Q -u $SLAPD_OPTIONS (code=
exited, status=0/SUCCESS)
    Process: 1049646 ExecStart=/usr/lib64/openldap/slapd -u ldap -h ${SLAPD_URLS
} $SLAPD_OPTIONS (code=exited, status=0/SUCCESS)
   Main PID: 1049646 (code=exited, status=0/SUCCESS)
        CPU: 59ms

янв 20 20:41:26 myhost systemd[1]: Starting slapd.service...
янв 20 20:41:26 myhost systemd[1]: slapd.service: Got notification
 message from PID 1049646, but reception only permitted for main PID 1049645
янв 20 20:42:56 myhost systemd[1]: slapd.service: start operation 
timed out. Terminating.
янв 20 20:42:56 myhost systemd[1]: slapd.service: Failed with resu
lt 'timeout'.
янв 20 20:42:56 myhost systemd[1]: Failed to start slapd.service.
myhost ~ #

Expected Results:  
And here is success start:
myhost ~ # systemctl status slapd.service 
● slapd.service - OpenLDAP Server Daemon
     Loaded: loaded (/lib/systemd/system/slapd.service; enabled; preset: disabled)
    Drop-In: /etc/systemd/system/slapd.service.d
             └─00gentoo.conf, override.conf
     Active: active (running) since Mon 2023-01-23 19:50:21 MSK; 23s ago
   Main PID: 158821 (slapd)
      Tasks: 3 (limit: 38349)
     Memory: 4.2M
        CPU: 97ms
     CGroup: /system.slice/slapd.service
             └─158821 /usr/lib64/openldap/slapd -u ldap -h "ldaps:/// ldapi:///" -F /etc/openldap/slapd.d

янв 23 19:50:20 myhost systemd[1]: Starting slapd.service...
янв 23 19:50:21 myhost systemd[1]: Started slapd.service.
myhost ~ #
The successful start is possible after I added the following file:
myhost ~ # cat /etc/systemd/system/slapd.service.d/override.conf 
[Service]
NotifyAccess=all
myhost ~ #

Here is patch for slapd service
--- slapd.service.bad   2023-01-23 21:01:49.516901813 +0300
+++ slapd.service       2023-01-23 21:02:17.909055418 +0300
@@ -4,6 +4,7 @@
 
 [Service]
 Type=notify
+NotifyAccess=all
 PIDFile=/run/openldap/slapd.pid
 ExecStartPre=/usr/sbin/slaptest -Q -u $SLAPD_OPTIONS
 ExecStart=/usr/lib64/openldap/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS
Comment 1 Michail Shurutov 2023-01-23 18:06:37 UTC
Created attachment 849095 [details, diff]
patch for unit-file for slapd.service
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-23 21:18:25 UTC
This is fixed in 2.6.3-r5.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-24 00:57:33 UTC
x86 done
Comment 4 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-01-28 19:32:52 UTC
hppa done
Comment 5 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-01-28 19:32:54 UTC
sparc done
Comment 6 Jakov Smolić archtester gentoo-dev 2023-01-28 21:49:00 UTC
arm done
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-30 15:25:39 UTC
amd64 done
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-30 15:25:41 UTC
arm64 done
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-30 15:25:42 UTC
ppc64 done

all arches done