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

ssoadm import-svc-cfg do not work

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 13.0.0
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
      None
    • Rank:
      1|hzrmx3:

      Description

      Replication steps are same as in issue OPENAM-8265.

      Issue OPENAM-8265 has fixed with next workaround:
      ...
      export CLASSPATH="$CLASSPATH:$OPENAM_CONFIG_DIR/ldif/odsee"
      ...

      1) Export configuration using ssoadm:
      ./ssoadm export-svc-cfg -u amadmin -f /tmp/cangetinam -e secret -o am13config.xml
      Service Configuration was exported.
      2) Import configuration using ssoadm:
      ./ssoadm import-svc-cfg -u amadmin -f /tmp/cangetinam -e secret -X am13config.xml

      Import goes ends ok. After import OpenAM Tomcat has restarted.

      Promplems started after OpenAM starting.

      There coming:

      com.sun.identity.common.configuration.ConfigurationException: Configuration store is not available.
      com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:114)
      org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:51)

      Root cause is off course in OpenAM startup. Below is listed where error happens:

      ...
      java.lang.Thread.State: RUNNABLE
      at com.sun.identity.sm.ServiceSchemaImpl.getSubSchema(ServiceSchemaImpl.java:263)
      at com.sun.identity.sm.ServiceConfigImpl.getInstance(ServiceConfigImpl.java:550)
      at com.sun.identity.sm.ServiceConfigImpl.getSubConfig(ServiceConfigImpl.java:231)
      at com.sun.identity.sm.ServiceConfig.getSubConfig(ServiceConfig.java:302)
      at com.sun.identity.common.configuration.ConfigurationBase.getServerConfig(ConfigurationBase.java:218)
      at com.sun.identity.common.configuration.ServerConfiguration.getServerInstance(ServerConfiguration.java:428)
      at com.sun.identity.setup.Bootstrap.getConfiguration(Bootstrap.java:206)
      at com.sun.identity.setup.Bootstrap.bootstrap(Bootstrap.java:162)
      at com.sun.identity.setup.Bootstrap.load(Bootstrap.java:146)
      at com.sun.identity.setup.AMSetupServlet.checkConfigProperties(AMSetupServlet.java:401)
      at com.sun.identity.setup.AMSetupServlet.init(AMSetupServlet.java:199)
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)

      • locked <0x22f8> (a org.apache.catalina.core.StandardWrapper)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4998)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
      • locked <0x22f9> (a org.apache.catalina.core.StandardContext)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
        ...

      There are values like below:

      0 =

      {CaseInsensitiveHashMap$Entry@9110}

      "server" -> "Schema name: server\nSchema resource name: servers\nAttribute Schemas:\nAttr Name=serverconfig\n\tType=list\n\tUIType=null\n\tSyntax=string\n\tI18n Key=null\n\tDefault values=null\n\tChoice Values=null\n\tRangeStart=null\n\tRangeEnd=null\n\tMinValue=-1\n\tMaxValue=-1\n\tCoS Qualifier=default\n\tAny=null\n\tView Bean URL=null\n\tisOptional=false\n\tisServiceIdentifier=false\n\tisResourceNameAllowed=false\n\tisStatusAttribute=false\n\tisSearchable=false\n\tresourceName=null\nAttr Name=serverconfigxml\n\tType=single\n\tUIType=null\n\tSyntax=string\n\tI18n Key=null\n\tDefault values=null\n\tChoice Values=null\n\tRangeStart=null\n\tRangeEnd=null\n\tMinValue=-1\n\tMaxValue=-1\n\tCoS Qualifier=default\n\tAny=null\n\tView Bean URL=null\n\tisOptional=false\n\tisServiceIdentifier=false\n\tisResourceNameAllowed=false\n\tisStatusAttribute=false\n\tisSearchable=false\n\tresourceName=null\nAttr Name=serverid\n\tType=single\n\tUIType=null\n\tSyntax=string\n\tI18n Key=null\n\tDefault values=null\n\tChoice Values=null\n\tRangeStart=null\n\tRangeEnd=null\n\tMinValue=-1\n\tMaxValue=-1\n\tCoS
      key = "server"
      value =

      {ServiceSchemaImpl@9112}

      "Schema name: server\nSchema resource name: servers\nAttribute Schemas:\nAttr Name=serverconfig\n\tType=list\n\tUIType=null\n\tSyntax=string\n\tI18n Key=null\n\tDefault values=null\n\tChoice Values=null\n\tRangeStart=null\n\tRangeEnd=null\n\tMinValue=-1\n\tMaxValue=-1\n\tCoS Qualifier=default\n\tAny=null\n\tView Bean URL=null\n\tisOptional=false\n\tisServiceIdentifier=false\n\tisResourceNameAllowed=false\n\tisStatusAttribute=false\n\tisSearchable=false\n\tresourceName=null\nAttr Name=serverconfigxml\n\tType=single\n\tUIType=null\n\tSyntax=string\n\tI18n Key=null\n\tDefault values=null\n\tChoice Values=null\n\tRangeStart=null\n\tRangeEnd=null\n\tMinValue=-1\n\tMaxValue=-1\n\tCoS Qualifier=default\n\tAny=null\n\tView Bean URL=null\n\tisOptional=false\n\tisServiceIdentifier=false\n\tisResourceNameAllowed=false\n\tisStatusAttribute=false\n\tisSearchable=false\n\tresourceName=null\nAttr Name=serverid\n\tType=single\n\tUIType=null\n\tSyntax=string\n\tI18n Key=null\n\tDefault values=null\n\tChoice Values=null\n\tRangeStart=null\n\tRangeEnd=null\n\tMinValue=-1\n\tMaxValue=-1\n\tCoS Qualifier=def"
      subSchemas =

      {CaseInsensitiveHashMap@9105}

      size = 1
      subSchemaName = "https://am.foolocal.nixu.fi:8443/sso"
      this =

      {ServiceSchemaImpl@9099}

      "Schema name: com-sun-identity-servers\nSub-Schemas:\nSchema name: server\nSchema resource name: servers\nAttribute Schemas:\nAttr Name=serverconfig\n\tType=list\n\tUIType=null\n\tSyntax=string\n\tI18n Key=null\n\tDefault values=null\n\tChoice Values=null\n\tRangeStart=null\n\tRangeEnd=null\n\tMinValue=-1\n\tMaxValue=-1\n\tCoS Qualifier=default\n\tAny=null\n\tView Bean URL=null\n\tisOptional=false\n\tisServiceIdentifier=false\n\tisResourceNameAllowed=false\n\tisStatusAttribute=false\n\tisSearchable=false\n\tresourceName=null\nAttr Name=serverconfigxml\n\tType=single\n\tUIType=null\n\tSyntax=string\n\tI18n Key=null\n\tDefault values=null\n\tChoice Values=null\n\tRangeStart=null\n\tRangeEnd=null\n\tMinValue=-1\n\tMaxValue=-1\n\tCoS Qualifier=default\n\tAny=null\n\tView Bean URL=null\n\tisOptional=false\n\tisServiceIdentifier=false\n\tisResourceNameAllowed=false\n\tisStatusAttribute=false\n\tisSearchable=false\n\tresourceName=null\nAttr Name=serverid\n\tType=single\n\tUIType=null\n\tSyntax=string\n\tI18n Key=null\n\tDefault values=null\n\tChoice Values=null\n\tRangeStart=null\n\tRangeEn"

      There coming subSchemaName = "https://am.foolocal.nixu.fi:8443/sso". This probably caused configuration load breaks => "Configuration store is not available"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major [X] (Inactive)
                Reporter:
                jylkka jylkka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: