Failed to start/stop child containers after changing admin password

Solution Verified - Updated -

Issue

  • I change the default admin password as:
JBossFuse:karaf@root> jaas:realms
Index Realm                Module Class
1     karaf                io.fabric8.jaas.ZookeeperLoginModule
JBossFuse:karaf@root> jaas:manage --index 1
JBossFuse:karaf@root> jaas:useradd admin newP@ssw0rd
JBossFuse:karaf@root> jaas:update
  • And also restarted the root container. I can create the new container and stop it. But I am getting the SecurityException while stopping the child containers that are already created before password change.
JBossFuse:karaf@root> container-create-child root pqr
Jmx Login for root: admin
Jmx Password for root: 
Creating new instance on SSH port 8103 and RMI ports 1101/44446 at: /home/cpandey/NotBackedUp/Development/JBoss_Fuse_Folder/jboss-fuse-6.3.0.redhat-310/instances/pqr
The following containers have been created successfully:
    Container: pqr.

JBossFuse:karaf@root> container-list
[id]   [version]  [type]  [connected]  [profiles]              [provision status]
root*  1.0        karaf   yes          fabric                  success           
                                       fabric-ensemble-0000-1                    
                                       jboss-fuse-full                           
  abc  1.0        karaf   yes          default                 success           
  pqr  1.0        karaf   yes          default                 success           

# I can stop new container pqr but can not stop old container abc.                  

JBossFuse:karaf@root> container-stop pqr
The list of container names: [pqr]
Container 'pqr' stopped successfully.

JBossFuse:karaf@root> container-stop abc
The list of container names: [abc]
Error executing command: java.lang.SecurityException: Authentication failed
  • Following is the full stack trace of exception
2017-12-19 15:14:47,700 | ERROR | Thread-493       | Console                          | 38 - org.apache.karaf.shell.console - 2.4.0.redhat-630310 | Exception caught while executing command
io.fabric8.api.FabricAuthenticationException: java.lang.SecurityException: Authentication failed
.
Caused by: java.lang.SecurityException: Authentication failed
        at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:78)
.
Caused by: javax.security.auth.login.FailedLoginException: Password does not match
        at io.fabric8.jaas.ZookeeperLoginModule.login(ZookeeperLoginModule.java:156)
        at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83)

Environment

  • RedHat JBoss Fuse
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.