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

Installer fails if demo user already exists in user store

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 14.5.0, 14.5.1
    • Fix Version/s: None
    • Component/s: Amster, install
    • Labels:
    • Target Version/s:
    • Needs backport:
      No
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      Installer fails if demo user already exists in directory. This occurs both with GUI installer and AmsterĀ 

      How to reproduce the issue

      1. Create external directory with "demo" user
      2. Install AM using GUI installer or Amster:
      install-openam --serverUrl http://openam551.example.com:8989/openam --adminPwd cangetinam --policyAgentPwd camgetinag --acceptLicense --cfgDir /home/forgerock/openam5 --cfgStoreAdminPort 9444 --cfgStoreJmxPort 9689 --cfgStorePort 56389 --cookieDomain .example.com --userStoreDirMgrPwd cangetindj --userStoreHost openam551.example.com --userStoreAdminPort 7444 --userStoreType LDAPv3ForOpenDS --userStorePort 3389 --userStoreRootSuffix dc=example,dc=com
      Expected behaviour
      Installer should be able to install AM completely
      Current behaviour
      Installer fails with below error: 
      
      10/30/2017 12:04:46:905 PM EDT: Creating demo user.
      <!DOCTYPE html><html><head><title>Apache Tomcat/8.0.28 - Error report</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 500 - AMSetupFilter.doFilter</h1><div class="line"></div><p><b>type</b> Exception report</p><p><b>message</b> <u>AMSetupFilter.doFilter</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b></p><pre>javax.servlet.ServletException: AMSetupFilter.doFilter
      com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:141)
      org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:46)
      </pre><p><b>root cause</b></p><pre>com.sun.identity.setup.ConfiguratorException: Name already exists demo, refer to install.log under /home/forgerock/openam5 for more information.
      com.sun.identity.setup.AMSetupServlet.processRequest(AMSetupServlet.java:559)
      com.sun.identity.setup.AMSetupServlet.doPost(AMSetupServlet.java:413)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:36)
      org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:80)
      com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:125)
      org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:46)
      </pre><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/8.0.28 logs.</u></p><hr class="line"><h3>Apache Tomcat/8.0.28</h3></body></html>

      Work around

      Delete demo user beforeĀ running installer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                david.luna@forgerock.com David Luna
                Reporter:
                charan.mann Charan Mann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: