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

AM installation fails if BASE_DIR is different from the path in .openamcfg

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 14.0.0, 14.0.0-M17, 14.1.0, 14.1.1, 14.5.0, 6.1.0, 7.0.0
    • Fix Version/s: None
    • Component/s: configurator
    • Labels:
    • Support Ticket IDs:

      Description

      OpenAM 14.0.0-M17 seems to have hardcoded path for Amster keys. If a user tries to install OpenAM in a location other then default (for example, /root/openam14, the following error is observed:

      Could not write Amster keys, refer to install.log under /root/openam14 for more information. 
      

      and

      AMSetupServlet.processRequest: errorjava.lang.IllegalStateException: Could not write Amster keys
      	at org.forgerock.openam.authentication.modules.amster.AuthorizedKeyConfiguratorPlugin.createLocalAmsterKey(AuthorizedKeyConfiguratorPlugin.java:87)
      	at org.forgerock.openam.authentication.modules.amster.AuthorizedKeyConfiguratorPlugin.doPostConfiguration(AuthorizedKeyConfiguratorPlugin.java:68)
      	at com.sun.identity.setup.AMSetupServlet.handlePostPlugins(AMSetupServlet.java:990)
      	at com.sun.identity.setup.AMSetupServlet.configure(AMSetupServlet.java:912)
      	at com.sun.identity.setup.AMSetupServlet.processRequest(AMSetupServlet.java:509)
      	at com.sun.identity.config.wizard.Wizard.createConfig(Wizard.java:296)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.apache.click.util.ClickUtils.invokeMethod(ClickUtils.java:3317)
      	at org.apache.click.util.ClickUtils.invokeListener(ClickUtils.java:2088)
      	at org.apache.click.control.AbstractControl$1.onAction(AbstractControl.java:228)
      	at org.apache.click.ActionEventDispatcher.fireActionEvent(ActionEventDispatcher.java:259)
      	at org.apache.click.ActionEventDispatcher.fireActionEvents(ActionEventDispatcher.java:236)
      	at org.apache.click.ActionEventDispatcher.fireActionEvents(ActionEventDispatcher.java:180)
      	at org.apache.click.ClickServlet.performOnProcess(ClickServlet.java:746)
      	at org.apache.click.ClickServlet.processAjaxPageEvents(ClickServlet.java:1860)
      	at org.apache.click.ClickServlet.processPage(ClickServlet.java:559)
      	at org.apache.click.ClickServlet.handleRequest(ClickServlet.java:383)
      	at org.apache.click.ClickServlet.doGet(ClickServlet.java:276)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:44)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:88)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:123)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.FileNotFoundException: /root/openam/amster_rsa (No such file or directory)
      	at java.io.FileOutputStream.open(Native Method)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:156)
      	at org.forgerock.openam.authentication.modules.amster.AuthorizedKeyConfiguratorPlugin.writePrivateKey(AuthorizedKeyConfiguratorPlugin.java:92)
      	at org.forgerock.openam.authentication.modules.amster.AuthorizedKeyConfiguratorPlugin.createLocalAmsterKey(AuthorizedKeyConfiguratorPlugin.java:82)
      	... 55 more
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              n4al Nemanja Lukic
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: