Bug 486076 - setup-ds-admin.pl does not work properly
Summary: setup-ds-admin.pl does not work properly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: 389
Classification: Retired
Component: UI - Configuration
Version: 1.1.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nathan Kinder
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-18 07:09 UTC by The Source
Modified: 2015-01-04 23:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-06 21:20:44 UTC
Embargoed:


Attachments (Terms of Use)
Script output with -ddd (4.04 KB, application/x-bzip2)
2009-03-05 06:38 UTC, The Source
no flags Details

Description The Source 2009-02-18 07:09:41 UTC
Description of problem:
This script can't process 'suggest' option - if I choose it, it complains that it can find /tmp/something-or-other.ldif. Does it forget to generate ldif file? I also can not load even Example.ldif from official fedora-ds packages (Fedora 10), error 65280 pops up without any explanation (I modified this file a little - example.com to my domain). This happens with any ldif. I have openldap packages installed including server. I run the script as root.

Version-Release number of selected component (if applicable):
fedora-ds-admin-1.1.6, fedora-ds-1.1.2

How reproducible:
always

Steps to Reproduce:
1.Launch the script and get to suggest/none/path step
2.Choose suggest to see the error of non-existent file
3.Enter specific path to see error 65280.
  
Actual results:


Expected results:


Additional info:

Comment 1 Rich Megginson 2009-02-20 15:18:40 UTC
What version of fedora-ds-base? rpm -qi fedora-ds-base
What are the exact error messages you see?  Can you run setup-ds-admin.pl -ddd to generate more debugging information?

Comment 2 Nathan Kinder 2009-03-03 18:01:26 UTC
I am unable to reproduce this issue.

Are you running the setup script as root?  The user you are running setup as needs to be able to create a file in /tmp.  It will then change the permissions of this file to be accessible by the user you are running ns-slapd as.  I'm guessing that the file creation is what is failing.

Comment 3 The Source 2009-03-03 18:40:51 UTC
Yes, I'm running it as root. Besides, /tmp has write permissions for everyone anyway.

Comment 4 Nathan Kinder 2009-03-03 19:23:50 UTC
(In reply to comment #3)
> Yes, I'm running it as root. Besides, /tmp has write permissions for everyone
> anyway.

ok.  I'd like to see the debug output from the setup script that Rich mentioned (use the -ddd option).  In my test, I see a this section where it updates the permissions on the LDIF file:

+changeOwnerMode: changed mode of /tmp/ldifXM2lg8.ldif to 440
+changeOwnerMode: changed ownership of /tmp/ldifXM2lg8.ldif to user 99 group 99
+importing data ...

Comment 5 The Source 2009-03-05 06:37:18 UTC
Hmm, I ran the script on a fresh-installed fedora and now importing went smoothly. However script never exits. I attached script output. The last line is about starting directory server. After that line script just stays in terminal.

Comment 6 The Source 2009-03-05 06:38:10 UTC
Created attachment 334100 [details]
Script output with -ddd

Comment 7 The Source 2009-03-05 06:38:56 UTC
Oh, by the way, fedora-ds-base version is 1.1.3

Comment 8 The Source 2009-03-05 06:39:55 UTC
Oops, script finally exited:

'.  Error: Unknown error 256
Error: Could not create directory server instance 'thesource'.
Exiting . . .
Log file is '/tmp/setupPHdqfQ.log'

Comment 9 The Source 2009-03-05 06:41:03 UTC
Sorry, here's full text:

Possible timeout starting server: timeout=1236235161 now=1236235162
Could not start the directory server using command '/usr/lib/dirsrv/slapd-thesource/start-slapd'.  The last line from the error log was '[05/Mar/2009:09:29:22 +0300] - Fedora-Directory/1.1.3 B2008.289.115 starting up
'.  Error: Unknown error 256
Error: Could not create directory server instance 'thesource'.
Exiting . . .
Log file is '/tmp/setupPHdqfQ.log'

Comment 10 Rich Megginson 2009-04-06 21:20:44 UTC
Try fedora ds 1.2.0 - just released today - if you still have the problem, please reopen the bug


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