Bug 430368
Summary: | Running setup-ds.pl on Fedora 8 fails: Server failed to start !!! / Failed to open stats file | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Kevin Goeser <kevin> | ||||
Component: | Install/Uninstall | Assignee: | Nathan Kinder <nkinder> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Chandrasekar Kannan <ckannan> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 1.1.2 | CC: | benl, gbarros, jgalipea, rmeggins, tom | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 8.1 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-04-29 23:02:14 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 249650, 493682 | ||||||
Attachments: |
|
Description
Kevin Goeser
2008-01-26 23:41:35 UTC
I did a fresh fedora install with the default options (installing things like X, Gnome, etc.) - and everything works like a charm. There seems to be a missing dependency (does the directory server need X?!). I thought we moved the stats file from rundir? We removed rundir from the spec file, so it's not created during install. The code still uses rundir: int snmp_collator_start() { int err; char *statspath = config_get_rundir(); ... PR_snprintf(szStatsFile, sizeof(szStatsFile), "%s/%s%s", statspath, instname, AGT_STATS_EXTENSION); And rundir by default is /var/run/dirsrv It should work if you make sure /var/run/dirsrv exists before you install. Quick update, permissions should be: 770, root:nobody so this should fix it: install -m 770 -g nobody -o root -d /var/run/dirsrv Confirmed that this still occurs in Fedora 9 x86_64 fresh fully patched install with X but stripped all "desktop" packages. fedora-ds-1.1.2-1.fc9.x86_64 when running setup-ds-admin.pl I got Are you ready to set up your servers? [yes]: Creating directory server . . . Server failed to start !!! Please check errors log for problems There was nothing in the any error log. (/tmp/setupxxxxor or /var/log/dirsrv/xxxx) I worked around the problem by "chown nobody /var/run/dirsrv/" Then installation work perfectly. Created attachment 326832 [details]
CVS Diffs
This patch adds a check at startup to see if the user ns-slapd is running as has read and write permissions on nsslapd-rundir. A detailed error message is output if there is an access problem, which instructs the administrator how to fix it.
Checked into ldapserver (HEAD). Thanks to Rich for his review! Checking in ldap/servers/slapd/main.c; /cvs/dirsec/ldapserver/ldap/servers/slapd/main.c,v <-- main.c new revision: 1.29; previous revision: 1.28 done Nathan isn't this a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=432135 (In reply to comment #10) > Nathan isn't this a duplicate of > https://bugzilla.redhat.com/show_bug.cgi?id=432135 Not exactly. 430368 is because the RPM did not create /var/run/dirsrv with the correct permissions. fix verfied RHEL 5 and RHEL 4 DS 8.1 No error message setting up servers (Server failed to start !!! Please check errors log for problems) permissions on /var/run/dirsrv/ drwxrwx--- 2 nobody nobody 4096 Mar 17 14:38 dirsrv An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-0455.html |