Calendar Server 7 Initial Configuration

Skip to end of metadata
Go to start of metadata

< Back to Communications Suite 7 Installation Scenario - Calendar Server 7

Completing the Calendar Server 7 Installation: Initial Configuration

After you install the Calendar Server 7 software by using the Communications Suite installer, you must configure the Calendar Server to complete the installation. You perform this initial runtime configuration by running the Calendar Server configuration program, init-config.

  1. If you haven't done so already, run the comm_dssetup.pl script installed by the Communications Suite installer.
    This prepares the Directory Server LDAP. See Communications Suite Directory Server Setup Script (comm_dssetup.pl).
    Note
    You can use LDAP Schema 1. Some additional steps are necessary after configuring Directory Server and Calendar Server 7. See Configuring Calendar Server 7 to Use LDAP Schema 1 step.
  2. Configure Calendar Server by running the init-config command and responding to the prompts.
    After you install the Calendar Server software, you must configure the Calendar Server to complete the installation. You perform this initial runtime configuration by running the Calendar Server configuration program, init-config.
    1. Log in as or become superuser (root).
      Note
      Log in as "su -" when running init-config if you installed GlassFish Server with secure mode.
    2. Change to the cal-svr-base/sbin directory.
      The default installation directory is /opt/sun/comms/davserver.
    3. Run the script.
      See Calendar Server 7 init-config - General Syntax for more information.
      ./init-config
      

      For example, to run the configuration script in command-line mode, run the following command:

      ./init-config -nodisplay
      
    4. Respond to the prompts that appear on each panel.
      Note
      For the text of the information contained in the various questions presented by the script, refer to the Configuration Worksheets - Calendar Server 7.

      Panel 1: Select the Directory to store the configuration and data files
      Directory: /var/opt/sun/comms/davserver (default)
      
      Panel 2: Select Components to be Configured
      Sun Java System Calendar Server 7 (selected by default)
      
      Panel 3: Network Connection
      Hostname:
      DNS Domain Name:
      
      Panel 4: MySQL Server Configuration Details
      Enter the MySQL Server host name, port number, the runtime userID, password, and the default calendar database.
      MySQL Server Details
      Server Host: localhost (default)
      Server Port: 3306 (default)
      Runtime User: caldav  (default)
      Password:
      DAV Database: caldav (default)
      -------
      Note: A pop-up message appears if you do not have the correct value entered for the MySQL Server:
      
      Unable to connect to the MySQL server: <hostname>:3306. This may result in an incomplete configuration, if you accept the current MySQL server host and port details. Select Accept if you want to continue configuration using the current values.
      
      You can click either the Accept or Choose New button.
      -------
      
      Panel 5: Application Server Configuration Details
      Installation Directory: /opt/SUNWappserver
      Domain Directory: /opt/SUNWappserver/domains/domain1 (default)
      Document Root Directory: /opt/SUNWappserver/domains/domain1/docroot (default)
      Server Target Name: server (default)
      Virtual Server Identifier: server (default)
      Server Instance HTTP Port: 8080 (default)
      
      Panel 6: Application Server: Administration Instance Details
      Administration Server Port: 4848 (default)
      Administrator User ID: admin (default)
      Administrator Password:
      Secure Administration Server Instance: (selected by default)
      
      Panel 7: URI Path
      URI Path: / (default)
      -------
      The default URI path is {{/}}. Use a different value if you are using your GlassFish container for more applications. For example, you might use {{/davserver}}, or {{/cal}}, and so forth. Using {{/}} as the URI path replaces the GlassFish Server's main {{index.html}}, thus, the GlassFish welcome page no longer is displayed at {{http://}}_host_{{:}}_port_.
      -------
      
      Panel 8: User/Group Directory Server Details
      LDAP URL: ldap://<hostname>:389 (default)
      Bind DN: cn=Directory Manager (default)
      Bind Password:
      
      -------
      Note: A pop-up message appears if you do not have the latest version of comm_dssetup.pl. It is mandatory to run at least the comm_dssetup.pl 6.4 version 1.04.
      -------
      
      -------
      Note: A pop-up message appears if you do not have the correct value entered for the Directory Server:
      
      Could not connect to LDAP server.  Error code 91. Connect Error.
      
      Click the Choose New button.
      -------
      
      -------
      Note: Use the LDAP URL that points to the non-SSL LDAP port. If you need SSL communication between Calendar Server and Directory Server, you can do so as a post-configuration step.
      -------
      
      Panel 9: DC Tree Suffix
      DC Tree suffix: o=dav (default)
      
      Panel 10: Default Domain Name
      Enter the Domain Name: the domainname your host resides on(default)
      
      Panel 11: Notification Mail Server Configuration Details
      Mail Server Host Name: <hostname>.<domainname> (default)
      Mail Server Port Number: 25 (default)
      
      Panel 12: Sun CalDAV Server Administrator
      Username: calmaster (default)
      Password:
      Password Again:
      

      Note
      To enable SSL communication between Calendar Server and Directory Server, you can do so as a post-configuration step. See Calendar Server 7 Post Configuration for more information.
      Note
      Currently, the default setting for the timezone (davcore.serverdefaults.tzid) is configured based on the tzid of the host where Calendar Server is deployed.
  3. Click Configure Now to configure Calendar Server.
    Up to now the screens have been gathering data needed for the configuration and performing some validity checking. You can go back and redo the configuration information at this point, or start the configuration.
  4. The Sequence Completed Screen appears.
    This panel provides a running update of all the tasks and the disposition (passed or failed). When the message "All Tasks Passed", the configuration has finished. Check the log files indicated to see if there are any error messages.
  5. Click Next when the configuration program completes.
    The Configuration Summary Screen appears.
  6. Click Details to view the details of the configuration log or Close to exit the configuration program.
  7. If you are configuring Calendar Server 7 for LDAP Schema 1, see Configuring Calendar Server 7 to Use LDAP Schema 1.
  8. Restart GlassFish Enterprise Server, for example:
    # /opt/SUNWappserver/bin/asadmin stop-domain domain1
    Domain domain1 stopped.
    # /opt/SUNWappserver/bin/asadmin start-domain domain1
    Please enter the admin user name>
    Please enter the admin password>
    Please enter the master password>
    Redirecting output to /opt/SUNWappserver/domains/domain1/logs/server.log
    Domain domain1 started.
    
  9. Return to the Calendar Server 7 Installation Scenario to verify the installation.
Labels:
configuring configuring Delete
guide guide Delete
caldavserver caldavserver Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Nov 29, 2010

    I will be using schema 1 should I do the steps described in notes first before running init-config. I am running into issues with init-config failure

    PASSED: /opt/sun/comms/davserver/lib/ldapmodify -h bramha.apple.com -p 389 -D
    cn=Directory Manager -j /opt/sun/comms/davserver/lib/config-
    templates/ugdir5723252476606619548 -c -e
    /opt/sun/comms/davserver/data/install/dctree-leaf.ldif.rej -f
    /opt/sun/comms/davserver/data/install/dctree-leaf.ldif : status = 20
    
    FAILED: /bin/sh -c /opt/sun/comms/davserver/sbin/config-appsvr deploy ********
    : status = 1
    
    PASSED: /bin/sh -c /bin/mkdir -p /opt/sun/comms/davserver/install/davserver-
    config_20091002103812 : status = 0
    
    PASSED: /bin/sh -c /bin/cp -p /opt/sun/comms/davserver/lib/config-
    templates/DavserverCfg.properties /opt/sun/comms/davserver/install/davserver-
    config_20091002103812/DavserverCfg.properties : status = 0
    
    
    FAILURE: Number of tasks failed: 1. Please check configuration log 
    /opt/sun/comms/davserver/install/davserver-config_20091002103812.log
    for further details.
    
  2. Nov 29, 2010

    I think really I need init-config completed. Before I run steps in notes.

    init-config 
    The directory /var/opt/sun/comms/davserver is not empty, any previous
    configuration data will be overwritten.
     Enter the number corresponding to your choice  [1] {"<" goes back, "!"   exits} 2
    Select the components to be configured.
     [X]  1  Sun Java System Calendar Server 7    0 bytes
     Host Name [bramha] {"<" goes back, "!" exits}: 
     DNS Domain Name [apple.com] {"<" goes back, "!" exits}: 
    
    Enter the Server Host Name [localhost] {"<" goes back, "!" exits}: 
       Enter the Server Port Number [3306] {"<" goes back, "!" exits}: 
       Enter the Database User ID [caldav] {"<" goes back, "!" exits}: 
       Enter the Database User Password [] {"<" goes back, "!" exits}: 
       Enter the Calendar Database Name [caldav] {"<" goes back, "!" exits}: 
    Please Wait: Verifying whether the MySQL Server connection is alive
    
    Application Server Configuration Details
    
    Enter the Administration Server Port [4848] {"<" goes back, "!" exits}: 
       Enter the Administrator User ID [admin] {"<" goes back, "!" exits}: 
       Enter the Administrator Password [] {"<" goes back, "!" exits}: 
       Is the Administration Server instance running in the secure mode  [yes] {"<"
       goes back, "!" exits}? 
    Please Wait: Verifying whether the Administration Server instance connection is
    alive
    Enter URI Path for Sun Java System Calendar Server 7 [/] {"<" goes back, "!"
       exits}: /cal
    
    Enter the User/Group LDAP Server details. The User/Group LDAP Server URL
    should  be in the format ldap://<hostname>:<port>. For example, ldap:
    //ldapserver.siroe.com:389
    
       Ldap URL [ldap://bramha.apple.com:389] {"<" goes back, "!" exits}: 
       Bind DN [cn=Directory Manager] {"<" goes back, "!" exits}: 
       Bind Password {"<" goes back, "!" exits}: 
    
       Enter DC Tree Suffix [o=internet] {"<" goes back, "!" exits}: 
       Enter the Default Domain Name [apple.com] {"<" goes back, "!" exits} 
       Enter the SMTP Server Host Name [bramha.apple.com] {"<" goes back, "!"
    Please enter the Sun Java System Calendar Server 7 Administrator User ID and
    Password.
    
       Username [calmaster]: 
       Password: 
       Password Again: 
    
    Then it fails in the following steps.  
    
    
       What would you like to do [1]? 
    Starting Task Sequence
    ===== Fri Oct 02 10:52:03 PDT 2009 ===== 
    Running /bin/rm -rf /opt/sun/comms/davserver/config
    /opt/sun/comms/davserver/data /opt/sun/comms/davserver/log
    
    ===== Fri Oct 02 10:52:03 PDT 2009 ===== 
    Running /opt/sun/comms/davserver/lib/devinstall -l schema1:pkgcfg:config:
    davserver -v -m -i /opt/sun/comms/davserver/lib/config-templates/config.ins
    /opt/sun/comms/davserver/lib/config-templates /opt/sun/comms/davserver/lib/jars
    /opt/sun/comms/davserver/lib /opt/sun/comms/davserver/web-src/config
    /opt/sun/comms/davserver/web-src/config/templates
    
    ===== Fri Oct 02 10:52:04 PDT 2009 ===== 
    Running /bin/sh -c echo WtAcTxhoijfFn/ADST71hw== >
    /var/opt/sun/comms/davserver/config/davserverkey.txt
    
    ===== Fri Oct 02 10:52:04 PDT 2009 ===== 
    Running /opt/sun/comms/davserver/lib/ldapmodify -h bramha.apple.com -p 389 -D
    cn=Directory Manager -j /opt/sun/comms/davserver/lib/config-
    templates/ugdir6252693354581321736 -c -e
    /opt/sun/comms/davserver/data/install/usergroup.ldif.rej -f
    /opt/sun/comms/davserver/data/install/usergroup.ldif
    
    ===== Fri Oct 02 10:52:04 PDT 2009 ===== 
    Running /opt/sun/comms/davserver/lib/ldapmodify -h bramha.apple.com -p 389 -D
    cn=Directory Manager -j /opt/sun/comms/davserver/lib/config-
    templates/ugdir6252693354581321736 -c -e
    /opt/sun/comms/davserver/data/install/dctree-trunk.ldif.rej -f
    /opt/sun/comms/davserver/data/install/dctree-trunk.ldif
    
    ===== Fri Oct 02 10:52:04 PDT 2009 ===== 
    Running /opt/sun/comms/davserver/lib/ldapmodify -h bramha.apple.com -p 389 -D
    cn=Directory Manager -j /opt/sun/comms/davserver/lib/config-
    templates/ugdir6252693354581321736 -c -e
    /opt/sun/comms/davserver/data/install/dctree-branch.ldif.rej -f
    /opt/sun/comms/davserver/data/install/dctree-branch.ldif
    
    ===== Fri Oct 02 10:52:04 PDT 2009 ===== 
    Running /opt/sun/comms/davserver/lib/ldapmodify -h bramha.apple.com -p 389 -D
    cn=Directory Manager -j /opt/sun/comms/davserver/lib/config-
    templates/ugdir6252693354581321736 -c -e
    /opt/sun/comms/davserver/data/install/dctree-leaf.ldif.rej -f
    /opt/sun/comms/davserver/data/install/dctree-leaf.ldif
    
    ===== Fri Oct 02 10:52:04 PDT 2009 ===== 
    Running /bin/sh -c /opt/sun/comms/davserver/sbin/config-appsvr deploy ********
    
    ===== Fri Oct 02 10:52:22 PDT 2009 ===== 
    Running /bin/sh -c /bin/mkdir -p /opt/sun/comms/davserver/install/davserver-
    config_20091002105028
    
    ===== Fri Oct 02 10:52:22 PDT 2009 ===== 
    Running /bin/sh -c /bin/cp -p /opt/sun/comms/davserver/lib/config-
    templates/DavserverCfg.properties /opt/sun/comms/davserver/install/davserver-
    config_20091002105028/DavserverCfg.properties
    
    Sequence Completed
    
    PASSED: /bin/rm -rf /opt/sun/comms/davserver/config
    /opt/sun/comms/davserver/data /opt/sun/comms/davserver/log : status = 0
    
    PASSED: /opt/sun/comms/davserver/lib/devinstall -l schema1:pkgcfg:config:
    davserver -v -m -i /opt/sun/comms/davserver/lib/config-templates/config.ins
    /opt/sun/comms/davserver/lib/config-templates /opt/sun/comms/davserver/lib/jars
    /opt/sun/comms/davserver/lib /opt/sun/comms/davserver/web-src/config
    /opt/sun/comms/davserver/web-src/config/templates : status = 0
    
    PASSED: /bin/sh -c echo WtAcTxhoijfFn/ADST71hw== >
    /var/opt/sun/comms/davserver/config/davserverkey.txt : status = 0
    
    PASSED: /opt/sun/comms/davserver/lib/ldapmodify -h bramha.apple.com -p 389 -D
    cn=Directory Manager -j /opt/sun/comms/davserver/lib/config-
    templates/ugdir6252693354581321736 -c -e
    /opt/sun/comms/davserver/data/install/usergroup.ldif.rej -f
    /opt/sun/comms/davserver/data/install/usergroup.ldif : status = 20
    
    PASSED: /opt/sun/comms/davserver/lib/ldapmodify -h bramha.apple.com -p 389 -D
    cn=Directory Manager -j /opt/sun/comms/davserver/lib/config-
    templates/ugdir6252693354581321736 -c -e
    /opt/sun/comms/davserver/data/install/dctree-trunk.ldif.rej -f
    /opt/sun/comms/davserver/data/install/dctree-trunk.ldif : status = 20
    
    PASSED: /opt/sun/comms/davserver/lib/ldapmodify -h bramha.apple.com -p 389 -D
    cn=Directory Manager -j /opt/sun/comms/davserver/lib/config-
    templates/ugdir6252693354581321736 -c -e
    /opt/sun/comms/davserver/data/install/dctree-branch.ldif.rej -f
    /opt/sun/comms/davserver/data/install/dctree-branch.ldif : status = 20
    
    PASSED: /opt/sun/comms/davserver/lib/ldapmodify -h bramha.apple.com -p 389 -D
    cn=Directory Manager -j /opt/sun/comms/davserver/lib/config-
    templates/ugdir6252693354581321736 -c -e
    /opt/sun/comms/davserver/data/install/dctree-leaf.ldif.rej -f
    /opt/sun/comms/davserver/data/install/dctree-leaf.ldif : status = 20
    
    FAILED: /bin/sh -c /opt/sun/comms/davserver/sbin/config-appsvr deploy ********
    : status = 1
    
    PASSED: /bin/sh -c /bin/mkdir -p /opt/sun/comms/davserver/install/davserver-
    config_20091002105028 : status = 0
    
    PASSED: /bin/sh -c /bin/cp -p /opt/sun/comms/davserver/lib/config-
    templates/DavserverCfg.properties /opt/sun/comms/davserver/install/davserver-
    config_20091002105028/DavserverCfg.properties : status = 0
    
    
    FAILURE: Number of tasks failed: 1. Please check configuration log 
    /opt/sun/comms/davserver/install/davserver-config_20091002105028.log
    for further details.
    
    
    Configuration Details:
    
         Product                          Result  More Information
     1.  Sun Java System Calendar Server  Failed  Available
    
    2. Done
    

    Any suggestion

    1. Oct 02, 2009

      hadya,

      Per engineering:

      • Run the schema 1 steps after running init-config.
      • Did you run the init-config as "su -", did you get some error in the log similar to this before you got the FAILED task:
        Running /bin/sh -c /opt/sun/comms/davserver/sbin/config-appsvr deploy ********
        /bin/cp -p /home/kwu/.asadmintruststore /opt/sun/comms/davserver/config
        ERROR: fail to copy to /opt/sun/comms/davserver/config
        cp: cannot open /home/kwu/.asadmintruststore: Permission denied

      Make sure to run init-config as "su -", otherwise you won't be able to access the /.asadmintruststore while doing app server deploy.

      Joe

      1. Oct 02, 2009

        Also, going forward, please use the proper support channels to get these issues addressed. We try to use the Comments feature on this wiki for doc-related problems. So please either open a support call with Sun or post to the Calendar software forum when you have a technical problem: http://forums.sun.com/forum.jspa?forumID=737

        Thanks,

        Joe

  3. Nov 27, 2010

    can someone add "{code}" to the front and back of these comments so they are readable? I can't see what happens after the markup engine is done with the text.

    1. Nov 29, 2010

      Done.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Oracle community and they might not be employed or in any way formally affiliated with Oracle. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Oracle nor any other party necessarily agrees with them.