Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-10178

ssoconfigurator fails with error '500' during multi-site install

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 13.0.0, 13.5.0, 14.0.0
    • Fix Version/s: None
    • Component/s: configurator

      Description

      Using ssoconfigurator to install openam fails with error '500' during multi-site install.

      Steps:
      Install HAProxy and run with HAProxy -f haconfig.cfg

      cat results/latest/AuthN_site/LB/haproxy-1.7.0/haproxy.cfg 
      global
          daemon
      
      defaults
          mode     http
          timeout connect  5000ms
          timeout client  50000ms
          timeout server  50000ms
      
      frontend http-in
          bind openam.example.com:8082
          default_backend servers
      
      backend servers
          cookie amlbcookie
          option httpchk HEAD /openam/isAlive.jsp HTTP/1.0
          balance roundrobin
          server openam1 openam.example.com:18080 cookie 01 check
          server openam2 openam.example.com:28080 cookie 03 check
      

      Install apache tomcat , deploy openam.war and start openam1.
      Install ssoconfigurator tools.

      /usr/lib/jvm/jdk1.8.0_45/bin/java -jar openam-configurator-tool-14.0.0-SNAPSHOT.jar -f /home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM1/configurator_file

      cat /home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM1/configurator_file
      ## Main
      SERVER_URL=http://openam.example.com:18080
      DEPLOYMENT_URI=/openam
      BASE_DIR=/home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM1/AM1-embedded-DJ
      locale=en_US
      PLATFORM_LOCALE=en_US
      AM_ENC_KEY=AQICtWi4k61A7HLck2yF4ClpzUHXri+w98+N
      ADMIN_PWD=password
      AMLDAPUSERPASSWD=secret12
      COOKIE_DOMAIN=.example.com
      ACCEPT_LICENSES=true
      ## Data store
      DATA_STORE=embedded
      DIRECTORY_ADMIN_PORT=4444
      DIRECTORY_JMX_PORT=1691
      DIRECTORY_SSL=SIMPLE
      DIRECTORY_SERVER=openam.example.com
      DIRECTORY_PORT=1389
      ROOT_SUFFIX=dc=openam,dc=forgerock,dc=org
      DS_DIRMGRDN=cn=Directory Manager
      DS_DIRMGRPASSWD=password
      ## Multi servers
      #DS_EMB_REPL_FLAG=embReplFlag
      #DS_EMB_REPL_REPLPORT1=58989
      #DS_EMB_REPL_HOST2=server2.example.com
      #DS_EMB_REPL_ADMINPORT2=4444
      #DS_EMB_REPL_REPLPORT2=50889
      #existingserverid=http://server1.example.com:8080/openam
      ## Multi site
      LB_SITE_NAME=amlb
      LB_PRIMARY_URL=http://openam.example.com:8082/openam
      #LB_SESSION_HA_SFO=false
      

      Install apache tomcat , deploy and start openam2.
      Install ssoconfigurator tools.

      /usr/lib/jvm/jdk1.8.0_45/bin/java  -jar openam-configurator-tool-14.0.0-SNAPSHOT.jar -f /home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM2/configurator_file 
      12/08/2016 04:43:07:325 PM PST: Checking license acceptance...
      12/08/2016 04:43:07:325 PM PST: License terms accepted.
      12/08/2016 04:43:07:329 PM PST: Checking configuration directory /home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM2/AM2-embedded-DJ.
      12/08/2016 04:43:07:329 PM PST: ...Success.
      12/08/2016 04:43:07:329 PM PST: Extracting OpenDJ, please wait...
      12/08/2016 04:43:07:559 PM PST: Complete
      12/08/2016 04:43:07:559 PM PST: Running OpenDJ setup
      12/08/2016 04:43:07:559 PM PST: Setup command: --cli --adminConnectorPort 4445 --baseDN dc=openam,dc=forgerock,dc=org --rootUserDN cn=Directory Manager --ldapPort 1390 --skipPortCheck --rootUserPassword xxxxxxx --jmxPort 1694 --no-prompt --doNotStart --hostname openam.example.com --noPropertiesFile --backendType je 
      %0AConfiguring+Directory+Server+.....+Done.%0A%0ATo+see+basic+server+configuration+status+and+configuration+you+can+launch%0A%2Fhome%2Fgary%2FProjects%2FPyCharm%2FPyForge%2Fresults%2F20161208-162644%2FAuthN_site%2FAM2%2FAM2-embedded-DJ%2Fopends%2Fbin%2Fstatus%0A%0A12/08/2016 04:43:09:790 PM PST: ...Success.
      12/08/2016 04:43:09:790 PM PST: ...Success
      12/08/2016 04:43:09:790 PM PST: Installing OpenAM configuration store in /home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM2/AM2-embedded-DJ/opends
      12/08/2016 04:43:12:434 PM PST: ...Success.
      12/08/2016 04:43:12:660 PM PST: Tag swapping schema files.
      12/08/2016 04:43:12:683 PM PST: ...Success.
      12/08/2016 04:43:12:684 PM PST: Loading Schema opendj_config_schema.ldif
      12/08/2016 04:43:12:930 PM PST: ...Success.
      12/08/2016 04:43:12:930 PM PST: Loading Schema opendj_user_schema.ldif
      12/08/2016 04:43:13:903 PM PST: ...Success.
      12/08/2016 04:43:13:903 PM PST: Loading Schema opendj_embinit.ldif
      12/08/2016 04:43:13:910 PM PST: ...Success.
      12/08/2016 04:43:13:910 PM PST: Loading Schema opendj_user_index.ldif
      12/08/2016 04:43:13:968 PM PST: ...Success.
      12/08/2016 04:43:13:968 PM PST: Loading Schema cts-container.ldif
      12/08/2016 04:43:13:978 PM PST: ...Success.
      12/08/2016 04:43:13:978 PM PST: Loading Schema cts-add-schema.ldif
      12/08/2016 04:43:14:555 PM PST: ...Success.
      12/08/2016 04:43:14:555 PM PST: Loading Schema cts-add-multivalue.ldif
      12/08/2016 04:43:14:626 PM PST: ...Success.
      12/08/2016 04:43:14:626 PM PST: Loading Schema cts-indices.ldif
      12/08/2016 04:43:14:864 PM PST: ...Success.
      12/08/2016 04:43:14:864 PM PST: Loading Schema cts-add-multivalue-indices.ldif
      12/08/2016 04:43:14:902 PM PST: ...Success.
      12/08/2016 04:43:14:902 PM PST: Loading Schema opendj_dashboard.ldif
      12/08/2016 04:43:14:957 PM PST: ...Success.
      12/08/2016 04:43:14:957 PM PST: Loading Schema opendj_deviceprint.ldif
      12/08/2016 04:43:15:016 PM PST: ...Success.
      12/08/2016 04:43:15:016 PM PST: Loading Schema opendj_kba.ldif
      12/08/2016 04:43:15:112 PM PST: ...Success.
      12/08/2016 04:43:15:112 PM PST: Loading Schema opendj_uma_audit.ldif
      12/08/2016 04:43:15:117 PM PST: ...Success.
      12/08/2016 04:43:15:117 PM PST: Loading Schema opendj_uma_resource_sets.ldif
      12/08/2016 04:43:15:122 PM PST: ...Success.
      12/08/2016 04:43:15:122 PM PST: Loading Schema opendj_uma_labels_schema.ldif
      12/08/2016 04:43:15:262 PM PST: ...Success.
      12/08/2016 04:43:15:262 PM PST: Loading Schema opendj_uma_resource_set_labels.ldif
      12/08/2016 04:43:15:266 PM PST: ...Success.
      12/08/2016 04:43:15:266 PM PST: Loading Schema opendj_uma_pending_requests.ldif
      12/08/2016 04:43:15:269 PM PST: ...Success.
      12/08/2016 04:43:15:269 PM PST: Loading Schema opendj_oathdevices.ldif
      12/08/2016 04:43:15:321 PM PST: ...Success.
      12/08/2016 04:43:15:321 PM PST: Loading Schema opendj_pushdevices.ldif
      12/08/2016 04:43:15:374 PM PST: ...Success.
      12/08/2016 04:43:22:397 PM PST: ...Success.
      12/08/2016 04:43:22:397 PM PST: Creating OpenAM configuration store replica
      12/08/2016 04:43:22:397 PM PST: Replication command: enable --no-prompt --host1 openam.example.com --port1 4444 --bindDN1 cn=Directory Manager --bindPassword1 xxxxxxxx --replicationPort1 50889 --host2 openam.example.com --port2 4445 --bindDN2 cn=Directory Manager --bindPassword2 xxxxxxxx --replicationPort2 58989 --adminUID admin --adminPassword xxxxxxxx --baseDN dc=openam,dc=forgerock,dc=org --trustAll --configFile /home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM2/AM2-embedded-DJ/opends/config/config.ldif --noPropertiesFile 
      %0AEstablishing+connections+.....+Done.%0AChecking+registration+information+.....+Done.%0AConfiguring+Replication+port+on+server+openam.example.com%3A4444+.....+Done.%0AConfiguring+Replication+port+on+server+openam.example.com%3A4445+.....+Done.%0AUpdating+replication+configuration+for+baseDN+dc%3Dopenam%2Cdc%3Dforgerock%2Cdc%3Dorg+on%0Aserver+openam.example.com%3A4444+.....Done.%0AUpdating+replication+configuration+for+baseDN+dc%3Dopenam%2Cdc%3Dforgerock%2Cdc%3Dorg+on%0Aserver+openam.example.com%3A4445+.....Done.%0AUpdating+registration+configuration+on+server+openam.example.com%3A4444+.....+Done.%0AUpdating+registration+configuration+on+server+openam.example.com%3A4445+.....+Done.%0AUpdating+replication+configuration+for+baseDN+cn%3Dschema+on+server%0Aopenam.example.com%3A4444+.....Done.%0AUpdating+replication+configuration+for+baseDN+cn%3Dschema+on+server%0Aopenam.example.com%3A4445+.....Done.%0AInitializing+registration+information+on+server+openam.example.com%3A4445+with%0Athe+contents+of+server+openam.example.com%3A4444+.....Done.%0AInitializing+schema+on+server+openam.example.com%3A4445+with+the+contents+of%0Aserver+openam.example.com%3A4444+.....Done.%0A%0AReplication+has+been+successfully+enabled.++Note+that+for+replication+to+work%0Ayou+must+initialize+the+contents+of+the+base+DNs+that+are+being+replicated%0A%28use+dsreplication+initialize+to+do+so%29.%0A%0A%0ASee%0A%2Fhome%2Fgary%2FProjects%2FPyCharm%2FPyForge%2Fresults%2F20161208-162644%2FAuthN_site%2FAM2%2FAM2-container%2Fapache-tomcat-7.0.70%2Ftemp%2Fopendj-replication-2167449096132693216.log%0Afor+a+detailed+log+of+this+operation.%0A%0A12/08/2016 04:43:35:288 PM PST: ...Success.
      12/08/2016 04:43:35:288 PM PST: Replication command: initialize --no-prompt --baseDN dc=openam,dc=forgerock,dc=org --adminUID admin --adminPassword xxxxxxxx --hostSource openam.example.com --portSource 4444 --hostDestination openam.example.com --portDestination 4445 --trustAll --configFile /home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM2/AM2-embedded-DJ/opends/config/config.ldif --noPropertiesFile 
      %0AInitializing+base+DN+dc%3Dopenam%2Cdc%3Dforgerock%2Cdc%3Dorg+with+the+contents+from%0Aopenam.example.com%3A4444%3A%0A0+entries+processed+%280+%25+complete%29.%0A552+entries+processed+%28100+%25+complete%29.%0ABase+DN+initialized+successfully.%0A%0ASee%0A%2Fhome%2Fgary%2FProjects%2FPyCharm%2FPyForge%2Fresults%2F20161208-162644%2FAuthN_site%2FAM2%2FAM2-container%2Fapache-tomcat-7.0.70%2Ftemp%2Fopendj-replication-2167449096132693216.log%0Afor+a+detailed+log+of+this+operation.%0A%0A12/08/2016 04:43:39:489 PM PST: ...Success.
      12/08/2016 04:43:39:490 PM PST: ...Success.
      12/08/2016 04:43:39:491 PM PST: Reinitializing system properties.
      12/08/2016 04:43:39:744 PM PST: ...Done
      12/08/2016 04:43:39:744 PM PST: Configuring server instance.
      12/08/2016 04:43:39:805 PM PST: ...Done
      Configuration Failed.  The server returned error code :500
      
      cat /home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM2/configurator_file
      ## Main
      SERVER_URL=http://openam.example.com:28080
      DEPLOYMENT_URI=/openam
      BASE_DIR=/home/gary/Projects/PyCharm/PyForge/results/20161208-162644/AuthN_site/AM2/AM2-embedded-DJ
      locale=en_US
      PLATFORM_LOCALE=en_US
      AM_ENC_KEY=AQICtWi4k61A7HLck2yF4ClpzUHXri+w98+N
      ADMIN_PWD=password
      AMLDAPUSERPASSWD=secret12
      COOKIE_DOMAIN=.example.com
      ACCEPT_LICENSES=true
      ## Data store
      DATA_STORE=embedded
      DIRECTORY_ADMIN_PORT=4445
      DIRECTORY_JMX_PORT=1694
      DIRECTORY_SSL=SIMPLE
      DIRECTORY_SERVER=openam.example.com
      DIRECTORY_PORT=1390
      ROOT_SUFFIX=dc=openam,dc=forgerock,dc=org
      DS_DIRMGRDN=cn=Directory Manager
      DS_DIRMGRPASSWD=password
      ## Multi servers
      DS_EMB_REPL_FLAG=embReplFlag
      DS_EMB_REPL_REPLPORT1=58989
      DS_EMB_REPL_HOST2=openam.example.com
      DS_EMB_REPL_ADMINPORT2=4444
      DS_EMB_REPL_REPLPORT2=50889
      existingserverid=http://openam.example.com:18080/openam
      ## Multi site
      LB_SITE_NAME=amlb
      LB_PRIMARY_URL=http://openam.example.com:8082/openam
      #LB_SESSION_HA_SFO=false
      

        Attachments

          Activity

            People

            • Assignee:
              gary.williams Gary Williams
              Reporter:
              gary.williams Gary Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: