Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4131

Creating a Fabric Ensemble causes javax.security.auth.login.FailedLoginException: User doesn't exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • jboss-fuse-6.1
    • Fabric8 v1
    • None
    • % %
    • Hide

      Within the first server, a fabric was created with the following steps:

      1st server
      ------

      JBossA-MQ:karaf@root> fabric:create --clean --new-user fabric_test --new-user-password fabric_test --zookeeper-password zk_test --wait-for-provisioning

      2nd server
      ------

      JBossA-MQ:karaf@root> fabric:join --zookeeper-password zk_test 0.0.0.0:2181 root2

      3rd server
      ------

      JBossA-MQ:karaf@root> fabric:join --zookeeper-password zk_test 0.0.0.0:2181 root3

      1st server:
      ------

      JBossA-MQ:karaf@root> fabric:ensemble-add root2 root3

      Within karaf, the following error was returned:

      Error executing command: io.fabric8.api.FabricAuthenticationException: java.lang.SecurityException: Authentication failed

      Show
      Within the first server, a fabric was created with the following steps: 1st server ------ JBossA-MQ:karaf@root> fabric:create --clean -- new -user fabric_test -- new -user-password fabric_test --zookeeper-password zk_test --wait- for -provisioning 2nd server ------ JBossA-MQ:karaf@root> fabric:join --zookeeper-password zk_test 0.0.0.0:2181 root2 3rd server ------ JBossA-MQ:karaf@root> fabric:join --zookeeper-password zk_test 0.0.0.0:2181 root3 1st server: ------ JBossA-MQ:karaf@root> fabric:ensemble-add root2 root3 Within karaf, the following error was returned: Error executing command: io.fabric8.api.FabricAuthenticationException: java.lang.SecurityException: Authentication failed

      Within JBoss Fuse 6.1.1, upon attempting to create a fabric ensemble using the attached steps, the following exception was thrown:

      2015-04-21 14:59:52,774 | INFO  | l Console Thread | Console                          | araf.shell.console.jline.Console  220 | 15 - org.apache.karaf.shell.console - 2.3.0.redhat-611412 | Exception caught while executing command
      io.fabric8.api.EnsembleModificationFailed: io.fabric8.api.FabricAuthenticationException: java.lang.SecurityException: Authentication failed
      	at io.fabric8.api.EnsembleModificationFailed.launderThrowable(EnsembleModificationFailed.java:32)
      	at io.fabric8.internal.ZooKeeperClusterServiceImpl.createCluster(ZooKeeperClusterServiceImpl.java:380)
      	at io.fabric8.internal.ZooKeeperClusterServiceImpl.addToCluster(ZooKeeperClusterServiceImpl.java:419)
      	at Proxyfb293f62_51da_4f4d_a97b_58ed0e5b7f3d.addToCluster(Unknown Source)
      	at io.fabric8.commands.EnsembleAdd.doExecute(EnsembleAdd.java:90)
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)
      	at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)
      Caused by: io.fabric8.api.FabricAuthenticationException: java.lang.SecurityException: Authentication failed
      	at io.fabric8.service.ContainerTemplate.createConnector(ContainerTemplate.java:171)
      	at io.fabric8.service.ContainerTemplate$1.createConnector(ContainerTemplate.java:56)
      	at io.fabric8.service.NonCachingJmxTemplate.execute(NonCachingJmxTemplate.java:35)
      	at io.fabric8.service.ContainerTemplate.execute(ContainerTemplate.java:86)
      	at io.fabric8.internal.ZooKeeperClusterServiceImpl.publicPort(ZooKeeperClusterServiceImpl.java:389)
      	at io.fabric8.internal.ZooKeeperClusterServiceImpl.createCluster(ZooKeeperClusterServiceImpl.java:272)
      	... 14 more
      Caused by: java.lang.SecurityException: Authentication failed
      	at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:101)
      	at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)
      	at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
      	at sun.rmi.transport.Transport$1.run(Transport.java:177)
      	at sun.rmi.transport.Transport$1.run(Transport.java:174)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
      	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275)
      	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:252)
      	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
      	at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
      	at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2404)
      	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:308)
      	at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268)
      	at io.fabric8.service.ContainerTemplate.createConnector(ContainerTemplate.java:165)
      	... 19 more
      Caused by: javax.security.auth.login.FailedLoginException: User doesn't exist
      	at io.fabric8.jaas.ZookeeperLoginModule.login(ZookeeperLoginModule.java:134)
      	at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at javax.security.auth.login.LoginContext.invoke(LoginContext.java:762)
      	at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
      	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)
      	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)
      	at javax.security.auth.login.LoginContext.login(LoginContext.java:595)
      	at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:78)
      	at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)
      	at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
      	at sun.rmi.transport.Transport$1.run(Transport.java:177)
      	at sun.rmi.transport.Transport$1.run(Transport.java:174)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
      	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      

            pantinor@redhat.com Paolo Antinori
            davidjohnson_jira David Johnson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: