Bug 2047323 - 389-ds does not start: restorecon: lstat(/dev/shm/slapd-IPA-FARNZ-ORG-UK) failed
Summary: 389-ds does not start: restorecon: lstat(/dev/shm/slapd-IPA-FARNZ-ORG-UK) failed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: 389-ds-base
Version: 35
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: mreynolds
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-27 15:57 UTC by Simon Farnsworth
Modified: 2022-02-04 01:22 UTC (History)
6 users (show)

Fixed In Version: 389-ds-base-2.0.14-1.fc35
Clone Of:
Environment:
Last Closed: 2022-02-04 01:22:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Simon Farnsworth 2022-01-27 15:57:56 UTC
Description of problem:

After the update from 2.0.12 to 2.0.13 in the Fdora 35 channel, 389-ds will not start, complaining:

Jan 27 15:52:28 homeserv.farnz.org.uk ds_selinux_restorecon.sh[3553]: restorecon: lstat(/dev/shm/slapd-IPA-FARNZ-ORG-UK) failed: No such file or directory


Version-Release number of selected component (if applicable):

2.0.13

How reproducible:

All the time

Steps to Reproduce:
1. systemctl start dirsrv@IPA-FARNZ-ORG-UK

Actual results:

Fails to start. journalctl -xeu dirsrv shows:

Jan 27 15:52:28 homeserv.farnz.org.uk systemd[1]: Starting 389 Directory Server IPA-FARNZ-ORG-UK....
░░ Subject: A start job for unit dirsrv has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit dirsrv has begun execution.
░░ 
░░ The job identifier is 4524.
Jan 27 15:52:28 homeserv.farnz.org.uk ds_selinux_restorecon.sh[3553]: restorecon: lstat(/dev/shm/slapd-IPA-FARNZ-ORG-UK) failed: No such file or directory
Jan 27 15:52:28 homeserv.farnz.org.uk systemd[1]: dirsrv: Control process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStartPre= process belonging to unit dirsrv has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 255.
Jan 27 15:52:28 homeserv.farnz.org.uk systemd[1]: dirsrv: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit dirsrv has entered the 'failed' state with result 'exit-code'.
Jan 27 15:52:28 homeserv.farnz.org.uk systemd[1]: Failed to start 389 Directory Server IPA-FARNZ-ORG-UK..
░░ Subject: A start job for unit dirsrv has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit dirsrv has finished with a failure.
░░ 
░░ The job identifier is 4524 and the job result is failed.


Expected results:

389-ds to start and run

Additional info:
If I hack /usr/libexec/dirsrv/ds_selinux_restorecon.sh to have || true on the end of the restorecon line, everything works again. ipactl restart gets my full FreeIPA stack back up and running. I'm thus not blocked.

Comment 1 Adam Williamson 2022-01-27 20:35:45 UTC
Thanks! We're getting this fixed:
https://github.com/389ds/389-ds-base/pull/5141

Comment 2 Fedora Update System 2022-01-27 21:57:52 UTC
FEDORA-2022-5aee32fbab has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5aee32fbab

Comment 3 Fedora Update System 2022-02-04 01:22:35 UTC
FEDORA-2022-5aee32fbab has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.