Bug 983073 - dirsrv fails to start due to incorrect /var/run/lock lines in tmpfiles.d
Summary: dirsrv fails to start due to incorrect /var/run/lock lines in tmpfiles.d
Keywords:
Status: CLOSED DUPLICATE of bug 996716
Alias: None
Product: Fedora
Classification: Fedora
Component: 389-ds-base
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-10 12:35 UTC by James Hogarth
Modified: 2020-09-13 20:38 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-11 14:57:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 766 0 None None None 2020-09-13 20:38:42 UTC

Description James Hogarth 2013-07-10 12:35:38 UTC
Description of problem:
The lock directory is now symlinked to /var/run which is on tmpfs. The tmpfiles.d configuration that dirsrv puts in place (see a similar bug #857939 but that was for /var/run/dirsrv and not /var/lock being moved to /var/run/lock) specifies the old location of /var/lock/dirsrv and /var/lock/dirsrv/slapd-EXAMPLE-COM but systemd-tmpfiles does not follow the symlink so the directory never gets created and has to be created by hand. 

Version-Release number of selected component (if applicable):
389-ds-base-1.3.1.3-1.fc19.x86_64

How reproducible:
Every time

Steps to Reproduce:
1. Clean install of F19
2. Install 389-ds (I used freeIPA to speed up the process and developing against freeIPA is where I bumped into this).
3. Observe dirsrv starts fine.
4. Reboot system
5. Observe dirsrv fails to start
6. Add lines to /etc/tmpfiles.d/dirsrv-EXAMPLE-COM.conf to create /var/run/lock/* instead of /var/lock/*
7. Reboot system
8. Observe right directories are created and dirsrv instance runs

Actual results:
dirsrv fails to start after a reboot

Expected results:
dirsrv starts with no manual intervention

Comment 1 Rich Megginson 2013-07-10 13:18:46 UTC
Upstream ticket:
https://fedorahosted.org/389/ticket/47429

Comment 2 Adam Williamson 2013-09-27 07:16:35 UTC
For the record, I am seeing this with a newly-deployed F19 freeipa server, happened to me at least five or six boots in a row, I never got a 'successful' boot. And 'ab' from #freeipa on freenode says he sees it on his deployment too.

Comment 3 Adam Williamson 2013-09-27 16:18:55 UTC

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


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