3 Replies Latest reply: Oct 31, 2012 7:56 AM by Marco Milo-Oracle RSS

    Creating DS instance from command line cannot make directory

    BlueSky
      Trying to install DSEE, and I get to the step to create the dir server instance, but it fails.

      C:\sun_dir_server\dsee7\bin>dsadm create -p 1389 -P 1636 /local/dsInst
      Choose the Directory Manager password:
      Confirm the Directory Manager password:
      Failed to make directory /local/dsInst

      Before trying this command, /local/ directory did not exist. I then created directory C:\sun_dir_server\dsee7\bin\local, and retried the above command line, but it gave the same error message.

      I am running this on Windows Server 2003.

      I'd appreciate any help!
        • 1. Re: Creating DS instance from command line cannot make directory
          Marco Milo-Oracle
          It's due to your path syntax (that's UNIX-like), try this one:

          C:\dsee7\bin>dsadm create -p 1389 -P 1636 C:\dsee7\var\master-1

          HTH,
          marco
          • 2. Re: Creating DS instance from command line cannot make directory
            971678
            Hi BlueSky,
            did Marco's suggestion help you?
            I got the same error (CMD runs under local admin rights) changed the path style to "/" but still getting the same error.
            Even created folder manually then, but it did not help.

            Edited by: 968675 on 31-Oct-2012 05:33
            • 3. Re: Creating DS instance from command line cannot make directory
              Marco Milo-Oracle
              Hello,
              I've verified it again, and the described procedure is correct and works. All commands are issued from a standard command prompt shell:

              C:\dsee7\bin>dsadm.exe --version
              [dsadm]
              dsadm : 11.1.1.3.0 B2010.0630.2328 ZIP

              Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.


              [slapd 32-bit]
              Sun Microsystems, Inc.
              Sun-Directory-Server/11.1.1.3.0 B2010.0630.2328 32-bit
              ns-slapd : 11.1.1.3.0 B2010.0630.2328 ZIP
              Slapd Library : 11.1.1.3.0 B2010.0630.2328
              Front-End Library : 11.1.1.3.0 B2010.0630.2328

              C:\dsee7\bin>more pwd
              password

              C:\dsee7\bin>dsadm.exe create -p 11389 -P 11686 -w pwd C:\dsee7\var\test
              Use 'dsadm.exe start 'C:\dsee7\var\test'' to start the instance

              Then I've verified that nothing is listening on both ports:

              C:\dsee7\bin>netstat -an | find "11389"

              C:\dsee7\bin>netstat -an | find "11686"

              And I finally started the instance:

              C:\dsee7\bin>dsadm.exe start C:\dsee7\var\test
              Directory Server instance 'C:/dsee7/var/test' started: pid=2136

              Which, as expected, is now listening on the specified ports:

              C:\dsee7\bin>netstat -an | find "11389"
              TCP 0.0.0.0:11389 0.0.0.0:0 LISTENING

              C:\dsee7\bin>netstat -an | find "11686"
              TCP 0.0.0.0:11686 0.0.0.0:0 LISTENING

              C:\dsee7\bin>

              And a simple 'ldapsearch' command will show that the instance is up and running, and is exactly the one I launched few minutes ago:

              C:\dsee7\bin>ldapsearch -b "cn=monitor" -D "cn=Directory Manager" -w password -p 11389 -1 cn=monitor version currenttime starttime
              dn: cn=monitor
              version: Sun-Directory-Server/11.1.1.3.0 B2010.0630.2328
              currenttime: 20121031125432Z
              starttime: 20121031124739Z

              C:\dsee7\bin>

              HTH,
              Marco