[Freeipa-users] installation fails

Dmitri Pal dpal at redhat.com
Fri Sep 9 17:09:38 UTC 2011


On 09/09/2011 11:38 AM, Jimmy wrote:
> I am installing FreeIPA on a new installation of Fedora 15. During
> installation it gets to this point and fails:
>
> ============================================================
> ============================================================
> The following operations may take some minutes to complete.
> Please wait until the prompt is returned.
>
> Configuring ntpd
> [1/4]: stopping ntpd
> [2/4]: writing configuration
> [3/4]: configuring ntpd to start on boot
> [4/4]: starting ntpd
> done configuring ntpd.
> Configuring directory server for the CA: Estimated time 30 seconds
> [1/3]: creating directory server user
> [2/3]: creating directory server instance
> root : CRITICAL failed to restart ds instance Command
> '/usr/sbin/setup-ds.pl <http://setup-ds.pl> --silent --logfile - -f
> /tmp/tmpkwsFQk' returned non-zero exit status 1
> [3/3]: restarting directory server
> root : CRITICAL Failed to restart the directory server. See the
> installation log for details.
> [root at csp-idm log]# ^C
> [root at csp-idm log]# more /tmp/tmpkwsFQk
> /tmp/tmpkwsFQk: No such file or directory
> [root at csp-idm log]# /usr/sbin/setup-ds.pl <http://setup-ds.pl>
> --silent --logfile - -f /tmp/tmpkwsFQk
> Error: could not open inf file /tmp/tmpkwsFQk: No such file or directory
> Error: could not determine the current group ID: at
> /usr/lib64/dirsrv/perl/DSUtil.pm line 141
> DSUtil::getGroup(undef) called at /usr/lib64/dirsrv/perl/DSCreate.pm
> line 807
> DSCreate::setDefaults('Inf=HASH(0x1340668)') called at
> /usr/lib64/dirsrv/perl/DSCreate.pm line 1068
> DSCreate::createDSInstance('Inf=HASH(0x1340668)') called at
> /usr/sbin/setup-ds.pl <http://setup-ds.pl> line 83
> ============================================================
> ============================================================
>
> Here is the output in the install log when the error occurs(I can
> email the entire log to anyone if it's needed):
>
> ============================================================
> ============================================================
> 2011-09-09 15:33:14,901 DEBUG calling setup-ds.pl <http://setup-ds.pl>
> 2011-09-09 15:43:21,083 DEBUG args=/usr/sbin/setup-ds.pl
> <http://setup-ds.pl> --silent --logfile - -f /tmp/tmpkwsFQk
> 2011-09-09 15:43:21,084 DEBUG stdout=Server failed to start !!! Please
> check errors log for problems
> [11/09/09:15:43:21] - [Setup] Info Could not start the directory
> server using command '/usr/lib64/dirsrv/slapd-PKI-IPA/start-slapd'.
> The last lin
> e from the error log was '[09/Sep/2011:15:33:21 +0000] - Shutting down
> due to possible conflicts with other slapd processes
> '. Error: Unknown error 256
> Could not start the directory server using command
> '/usr/lib64/dirsrv/slapd-PKI-IPA/start-slapd'. The last line from the
> error log was '[09/Sep/2
> 011:15:33:21 +0000] - Shutting down due to possible conflicts with
> other slapd processes
> '. Error: Unknown error 256
> [11/09/09:15:43:21] - [Setup] Fatal Error: Could not create directory
> server instance 'PKI-IPA'.
> Error: Could not create directory server instance 'PKI-IPA'.
> [11/09/09:15:43:21] - [Setup] Fatal Exiting . . .
> Log file is '-'
>
> Exiting . . .
> Log file is '-'
>
>
> 2011-09-09 15:43:21,084 DEBUG stderr=Server failed to start !!! Please
> check errors log for problems
>
> 2011-09-09 15:43:21,085 CRITICAL failed to restart ds instance Command
> '/usr/sbin/setup-ds.pl <http://setup-ds.pl> --silent --logfile - -f
> /tmp/tmpkwsFQk' returned non
> -zero exit status 1
> 2011-09-09 15:43:21,090 DEBUG duration: 606 seconds
> 2011-09-09 15:43:21,090 DEBUG [3/3]: restarting directory server
> 2011-09-09 15:43:22,387 DEBUG args=/sbin/service dirsrv restart PKI-IPA
> 2011-09-09 15:43:22,388 DEBUG stdout=Shutting down dirsrv:
> PKI-IPA... server already stopped[FAILED]
> *** Error: 1 instance(s) unsuccessfully stopped[FAILED]
> Starting dirsrv:
> PKI-IPA...[FAILED]
> *** Warning: 1 instance(s) failed to start
>
> 2011-09-09 15:43:22,388 DEBUG stderr=
> 2011-09-09 15:43:22,476 DEBUG args=/sbin/service dirsrv status
> 2011-09-09 15:43:22,477 DEBUG stdout=dirsrv PKI-IPA is stopped
>
> 2011-09-09 15:43:22,477 DEBUG stderr=
> 2011-09-09 15:43:22,478 CRITICAL Failed to restart the directory
> server. See the installation log for details.
>
>
>
>
> _______________________________________________
> Freeipa-users mailing list
> Freeipa-users at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-users
What is the package version of pki-core, 389 and ipa packages?
Also are there any leftovers of the DS instances from the past?
There have been problems that earlier installs failed leaving things
around and the later install stumbles on those.
Also what is the SELinux setting? There might be some SELinux issue due
to incorrect labeling in the past.
I suggest you make sure the machine is cleaned from any DS instances and
try again.
For that do ipa-server-install --uninstall several times (3) as each
time it might detect and clean different leftovers. We have tickets to
make this cleanup better in the future.
After that check if there are any other DS instances still around. They
will be in /etc/dirsrv/slapd-*
If there are you can remove them manually or use remove-ds.pl.    


But before you do that please tar and send all the logs for ipa, CS, DS
so that we can see what the cause of the problem actually was.

-- 
Thank you,
Dmitri Pal

Sr. Engineering Manager IPA project,
Red Hat Inc.


-------------------------------
Looking to carve out IT costs?
www.redhat.com/carveoutcosts/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20110909/2be705d1/attachment.htm>


More information about the Freeipa-users mailing list