jboss-cli / management interface broken?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

jboss-cli / management interface broken?

Frank Langelage-2
Mmmh, what's this?

New problem with WF 9 build from sources some minutes ago:

+ /mbi/tools/jboss/9.0/bin/jboss-cli.sh --controller=localhost:9990 --connect --user=jboss --password=xxx --file=/mbi/etc/mail-session.cli
org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
        at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
        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 org.jboss.modules.Module.run(Module.java:312)
        at org.jboss.modules.Main.main(Main.java:460)
Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9990
        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
        ... 8 more
Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
        at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
        at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
        at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
        at ...asynchronous invocation...(Unknown Source)
        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
        at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
        at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
        at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
        at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
        at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
        at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
        at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
        ... 11 more
org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
        at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
        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 org.jboss.modules.Module.run(Module.java:312)
        at org.jboss.modules.Main.main(Main.java:460)
Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9990
        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
        ... 8 more
Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
        at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
        at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
        at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
        at ...asynchronous invocation...(Unknown Source)
        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
        at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
        at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
        at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
        at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
        at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
        at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
        at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
        ... 11 more

User has been added before with:
$WILDFLY_HOME/bin/add-user.sh --user jboss --password xxx

Check
$JBOSS_HOME/bin/add-user.sh --user jboss --password xxx
Updated user 'jboss' to file '/mbi/tools/jboss/9.0/standalone/configuration/mgmt-users.properties'


29.08. 01:23:29,942 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0060: Http management interface listening on http://0.0.0.0:9990/management
29.08. 01:23:29,950 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0051: Admin console listening on http://0.0.0.0:9990

Starting web browser on localhost:9990 says:

Your WildFly Application Server is running.

However you have not yet added any users to be able to access the admin console.



_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli / management interface broken?

Darran Lofthouse
Just had a clean build myself, added a user can can successfully
authenticate for the admin console and the CLI.

Maybe something is missing on your copy as it looks like you are using a
server copied from the build.

On 29/08/14 00:29, Frank Langelage wrote:

> Mmmh, what's this?
>
> New problem with WF 9 build from sources some minutes ago:
>
> + /mbi/tools/jboss/9.0/bin/jboss-cli.sh --controller=localhost:9990
> --connect --user=jboss --password=xxx --file=/mbi/etc/mail-session.cli
> org.jboss.as.cli.CliInitializationException: Failed to connect to the
> controller
>          at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>          at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>          at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>          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 org.jboss.modules.Module.run(Module.java:312)
>          at org.jboss.modules.Main.main(Main.java:460)
> Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate
> against controller at localhost:9990
>          at
> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>          at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>          ... 8 more
> Caused by: javax.security.sasl.SaslException: Authentication failed: the
> server presented no authentication mechanisms
>          at
> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>          at
> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>          at
> org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>          at
> org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>          at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>          at ...asynchronous invocation...(Unknown Source)
>          at
> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>          at
> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>          at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>          at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>          at
> org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>          at
> org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>          at
> org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>          at
> org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>          at
> org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>          at
> org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>          at
> org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>          at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>          at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>          ... 11 more
> org.jboss.as.cli.CliInitializationException: Failed to connect to the
> controller
>          at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>          at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>          at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>          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 org.jboss.modules.Module.run(Module.java:312)
>          at org.jboss.modules.Main.main(Main.java:460)
> Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate
> against controller at localhost:9990
>          at
> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>          at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>          ... 8 more
> Caused by: javax.security.sasl.SaslException: Authentication failed: the
> server presented no authentication mechanisms
>          at
> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>          at
> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>          at
> org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>          at
> org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>          at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>          at ...asynchronous invocation...(Unknown Source)
>          at
> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>          at
> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>          at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>          at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>          at
> org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>          at
> org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>          at
> org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>          at
> org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>          at
> org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>          at
> org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>          at
> org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>          at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>          at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>          ... 11 more
>
> User has been added before with:
> $WILDFLY_HOME/bin/add-user.sh --user jboss --password xxx
>
> Check
> $JBOSS_HOME/bin/add-user.sh --user jboss --password xxx
> Updated user 'jboss' to file
> '/mbi/tools/jboss/9.0/standalone/configuration/mgmt-users.properties'
>
>
> 29.08. 01:23:29,942 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0060:
> Http management interface listening on http://0.0.0.0:9990/management
> 29.08. 01:23:29,950 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0051:
> Admin console listening on http://0.0.0.0:9990
>
> Starting web browser on localhost:9990 says:
>
>
>       Your WildFly Application Server is running.
>
> However you have not yet added any users to be able to access the admin
> console.
>
>
>
>
> _______________________________________________
> wildfly-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli / management interface broken?

Eduardo Sant´Ana da Silva
I was able to reproduce the authentication problem using a wrong password.

./jboss-cli.sh --controller=localhost:9990 --connect --user=jboss --password=<WRONG_PASSWORD> --file=/tmp/a

org.jboss.as.cli.CliInitializationException: Failed to connect to the controller

at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)

at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)

at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)

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.jboss.modules.Module.run(Module.java:312)

at org.jboss.modules.Main.main(Main.java:460)

Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9990

at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)

at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)

at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)

at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)

... 8 more

Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms

at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)

at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)

at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)

at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)

at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)

at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)

at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)

at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)

at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)

at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)

at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)

at ...asynchronous invocation...(Unknown Source)

at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)

at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)

at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)

at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)

at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)

at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)

at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)

at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)

at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)

at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)

at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)

at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)

at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)

at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)

at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)

at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)

at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)

at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)

... 11 more





2014-08-29 7:57 GMT-03:00 Darran Lofthouse <[hidden email]>:
Just had a clean build myself, added a user can can successfully
authenticate for the admin console and the CLI.

Maybe something is missing on your copy as it looks like you are using a
server copied from the build.

On 29/08/14 00:29, Frank Langelage wrote:
> Mmmh, what's this?
>
> New problem with WF 9 build from sources some minutes ago:
>
> + /mbi/tools/jboss/9.0/bin/jboss-cli.sh --controller=localhost:9990
> --connect --user=jboss --password=xxx --file=/mbi/etc/mail-session.cli
> org.jboss.as.cli.CliInitializationException: Failed to connect to the
> controller
>          at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>          at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>          at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>          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 org.jboss.modules.Module.run(Module.java:312)
>          at org.jboss.modules.Main.main(Main.java:460)
> Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate
> against controller at localhost:9990
>          at
> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>          at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>          ... 8 more
> Caused by: javax.security.sasl.SaslException: Authentication failed: the
> server presented no authentication mechanisms
>          at
> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>          at
> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>          at
> org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>          at
> org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>          at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>          at ...asynchronous invocation...(Unknown Source)
>          at
> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>          at
> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>          at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>          at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>          at
> org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>          at
> org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>          at
> org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>          at
> org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>          at
> org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>          at
> org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>          at
> org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>          at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>          at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>          ... 11 more
> org.jboss.as.cli.CliInitializationException: Failed to connect to the
> controller
>          at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>          at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>          at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>          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 org.jboss.modules.Module.run(Module.java:312)
>          at org.jboss.modules.Main.main(Main.java:460)
> Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate
> against controller at localhost:9990
>          at
> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>          at
> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>          ... 8 more
> Caused by: javax.security.sasl.SaslException: Authentication failed: the
> server presented no authentication mechanisms
>          at
> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>          at
> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>          at
> org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>          at
> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>          at
> org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>          at
> org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>          at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>          at ...asynchronous invocation...(Unknown Source)
>          at
> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>          at
> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>          at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>          at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>          at
> org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>          at
> org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>          at
> org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>          at
> org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>          at
> org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>          at
> org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>          at
> org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>          at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>          at
> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>          at
> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>          at
> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>          ... 11 more
>
> User has been added before with:
> $WILDFLY_HOME/bin/add-user.sh --user jboss --password xxx
>
> Check
> $JBOSS_HOME/bin/add-user.sh --user jboss --password xxx
> Updated user 'jboss' to file
> '/mbi/tools/jboss/9.0/standalone/configuration/mgmt-users.properties'
>
>
> 29.08. 01:23:29,942 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0060:
> Http management interface listening on http://0.0.0.0:9990/management
> 29.08. 01:23:29,950 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0051:
> Admin console listening on http://0.0.0.0:9990
>
> Starting web browser on localhost:9990 says:
>
>
>       Your WildFly Application Server is running.
>
> However you have not yet added any users to be able to access the admin
> console.
>
>
>
>
> _______________________________________________
> wildfly-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev



--
__________________________
Eduardo Sant'Ana da Silva - Dr.
Pesquisador / Consultor de TI


_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli / management interface broken?

Emmanuel Hugonnet
In reply to this post by Frank Langelage-2
I'm getting a similar issue (javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms)
when trying to connect a slave to a remote domain controller.
I'm using the result from the dist directory built with current core and wildfly master.
Emmanuel



Le 29/08/2014 01:29, Frank Langelage a écrit :

> Mmmh, what's this?
>
> New problem with WF 9 build from sources some minutes ago:
>
> + /mbi/tools/jboss/9.0/bin/jboss-cli.sh --controller=localhost:9990 --connect --user=jboss --password=xxx --file=/mbi/etc/mail-session.cli
> org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
>         at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>         at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>         at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>         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 org.jboss.modules.Module.run(Module.java:312)
>         at org.jboss.modules.Main.main(Main.java:460)
> Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9990
>         at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>         at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>         at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>         at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>         ... 8 more
> Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
>         at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>         at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>         at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>         at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>         at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>         at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>         at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>         at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>         at ...asynchronous invocation...(Unknown Source)
>         at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>         at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>         at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>         at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>         at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>         at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>         at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>         at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>         at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>         at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>         at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>         at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>         ... 11 more
> org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
>         at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>         at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>         at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>         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 org.jboss.modules.Module.run(Module.java:312)
>         at org.jboss.modules.Main.main(Main.java:460)
> Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9990
>         at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>         at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>         at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>         at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>         ... 8 more
> Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
>         at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>         at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>         at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>         at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>         at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>         at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>         at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>         at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>         at ...asynchronous invocation...(Unknown Source)
>         at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>         at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>         at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>         at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>         at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>         at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>         at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>         at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>         at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>         at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>         at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>         at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>         ... 11 more
>
> User has been added before with:
> $WILDFLY_HOME/bin/add-user.sh --user jboss --password xxx
>
> Check
> $JBOSS_HOME/bin/add-user.sh --user jboss --password xxx
> Updated user 'jboss' to file '/mbi/tools/jboss/9.0/standalone/configuration/mgmt-users.properties'
>
>
> 29.08. 01:23:29,942 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0060: Http management interface listening on http://0.0.0.0:9990/management
> 29.08. 01:23:29,950 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0051: Admin console listening on http://0.0.0.0:9990
>
> Starting web browser on localhost:9990 says:
>
>
>       Your WildFly Application Server is running.
>
> However you have not yet added any users to be able to access the admin console.
>
>
>
>
> _______________________________________________
> wildfly-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>

_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli / management interface broken?

Emmanuel Hugonnet
After pull latest source it is working properly.
Emmmanuel

Le 29/08/2014 15:36, Emmanuel Hugonnet a écrit :

> I'm getting a similar issue (javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms)
> when trying to connect a slave to a remote domain controller.
> I'm using the result from the dist directory built with current core and wildfly master.
> Emmanuel
>
>
>
> Le 29/08/2014 01:29, Frank Langelage a écrit :
>> Mmmh, what's this?
>>
>> New problem with WF 9 build from sources some minutes ago:
>>
>> + /mbi/tools/jboss/9.0/bin/jboss-cli.sh --controller=localhost:9990 --connect --user=jboss --password=xxx --file=/mbi/etc/mail-session.cli
>> org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
>>         at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>>         at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>>         at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>>         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 org.jboss.modules.Module.run(Module.java:312)
>>         at org.jboss.modules.Main.main(Main.java:460)
>> Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9990
>>         at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>>         at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>>         at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>>         at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>>         ... 8 more
>> Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
>>         at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>>         at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>>         at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>>         at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>>         at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>>         at ...asynchronous invocation...(Unknown Source)
>>         at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>>         at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>>         at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>>         at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>>         at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>>         at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>>         at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>>         at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>>         at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>>         at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>>         at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>>         at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>>         ... 11 more
>> org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
>>         at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>>         at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>>         at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>>         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 org.jboss.modules.Module.run(Module.java:312)
>>         at org.jboss.modules.Main.main(Main.java:460)
>> Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9990
>>         at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>>         at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>>         at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>>         at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>>         ... 8 more
>> Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
>>         at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>>         at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>>         at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>>         at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>>         at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>>         at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>>         at ...asynchronous invocation...(Unknown Source)
>>         at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>>         at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>>         at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>>         at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>>         at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>>         at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>>         at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>>         at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>>         at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>>         at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>>         at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>>         at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>>         at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>>         ... 11 more
>>
>> User has been added before with:
>> $WILDFLY_HOME/bin/add-user.sh --user jboss --password xxx
>>
>> Check
>> $JBOSS_HOME/bin/add-user.sh --user jboss --password xxx
>> Updated user 'jboss' to file '/mbi/tools/jboss/9.0/standalone/configuration/mgmt-users.properties'
>>
>>
>> 29.08. 01:23:29,942 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0060: Http management interface listening on http://0.0.0.0:9990/management
>> 29.08. 01:23:29,950 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0051: Admin console listening on http://0.0.0.0:9990
>>
>> Starting web browser on localhost:9990 says:
>>
>>
>>       Your WildFly Application Server is running.
>>
>> However you have not yet added any users to be able to access the admin console.
>>
>>
>>
>>
>> _______________________________________________
>> wildfly-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>
>
>
>
> _______________________________________________
> wildfly-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>

_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli / management interface broken?

Frank Langelage-2
In reply to this post by Frank Langelage-2
Here's the solution:
from running the testsuite there still was a running instance listening on localhost:9990.
But I can start my instance which uses bind-address 0.0.0.0 without problems in parallel.

Then we have two listeners on the same port, but different hosts:
127.0.0.1.9990             *.*                0      0 49152      0 LISTEN
      *.9990               *.*                0      0 49152      0 LISTEN

The mgmt user was added to my instance.

But accessing localhost:9990 via browser or cli connects to the testsuite instance where this user is not known.

This exception and stacktrace is irritating.
A message like "Username not known or wrongs passwort" would be more helpful in my eyes.

Regards, Frank


On 29.08.14 01:29, Frank Langelage wrote:
Mmmh, what's this?

New problem with WF 9 build from sources some minutes ago:

+ /mbi/tools/jboss/9.0/bin/jboss-cli.sh --controller=localhost:9990 --connect --user=jboss --password=xxx --file=/mbi/etc/mail-session.cli
org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
        at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
        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 org.jboss.modules.Module.run(Module.java:312)
        at org.jboss.modules.Main.main(Main.java:460)
Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9990
        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
        ... 8 more
Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
        at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
        at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
        at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
        at ...asynchronous invocation...(Unknown Source)
        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
        at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
        at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
        at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
        at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
        at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
        at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
        at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
        ... 11 more
org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
        at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
        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 org.jboss.modules.Module.run(Module.java:312)
        at org.jboss.modules.Main.main(Main.java:460)
Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9990
        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
        ... 8 more
Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
        at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
        at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
        at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
        at ...asynchronous invocation...(Unknown Source)
        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
        at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
        at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
        at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
        at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
        at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
        at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
        at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
        ... 11 more

User has been added before with:
$WILDFLY_HOME/bin/add-user.sh --user jboss --password xxx

Check
$JBOSS_HOME/bin/add-user.sh --user jboss --password xxx
Updated user 'jboss' to file '/mbi/tools/jboss/9.0/standalone/configuration/mgmt-users.properties'


29.08. 01:23:29,942 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0060: Http management interface listening on http://0.0.0.0:9990/management
29.08. 01:23:29,950 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0051: Admin console listening on http://0.0.0.0:9990

Starting web browser on localhost:9990 says:

Your WildFly Application Server is running.

However you have not yet added any users to be able to access the admin console.




_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev


_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev
Reply | Threaded
Open this post in threaded view
|

Re: jboss-cli / management interface broken?

Darran Lofthouse
We do need something more meaningful for the error message but out
problem is that it is not a case of a single failure - using SASL for
authentication after a failure it is still possible to try a further
mechanism that succeeds.

Just created this issue for the moment: -
   https://issues.jboss.org/browse/WFCORE-77

Regards,
Darran Lofthouse.


On 29/08/14 15:45, Frank Langelage wrote:

> Here's the solution:
> from running the testsuite there still was a running instance listening
> on localhost:9990.
> But I can start my instance which uses bind-address 0.0.0.0 without
> problems in parallel.
>
> Then we have two listeners on the same port, but different hosts:
> 127.0.0.1.9990             *.*                0      0 49152 0 LISTEN
>        *.9990               *.*                0      0 49152 0 LISTEN
>
> The mgmt user was added to my instance.
>
> But accessing localhost:9990 via browser or cli connects to the
> testsuite instance where this user is not known.
>
> This exception and stacktrace is irritating.
> A message like "Username not known or wrongs passwort" would be more
> helpful in my eyes.
>
> Regards, Frank
>
>
> On 29.08.14 01:29, Frank Langelage wrote:
>> Mmmh, what's this?
>>
>> New problem with WF 9 build from sources some minutes ago:
>>
>> + /mbi/tools/jboss/9.0/bin/jboss-cli.sh --controller=localhost:9990
>> --connect --user=jboss --password=xxx --file=/mbi/etc/mail-session.cli
>> org.jboss.as.cli.CliInitializationException: Failed to connect to the
>> controller
>>         at
>> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>>         at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>>         at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>>         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 org.jboss.modules.Module.run(Module.java:312)
>>         at org.jboss.modules.Main.main(Main.java:460)
>> Caused by: org.jboss.as.cli.CommandLineException: Unable to
>> authenticate against controller at localhost:9990
>>         at
>> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>>         at
>> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>>         at
>> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>>         at
>> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>>         ... 8 more
>> Caused by: javax.security.sasl.SaslException: Authentication failed:
>> the server presented no authentication mechanisms
>>         at
>> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>>         at
>> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>>         at
>> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at
>> org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>>         at
>> org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>>         at
>> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at
>> org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>>         at
>> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at
>> org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>>         at
>> org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>>         at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>>         at ...asynchronous invocation...(Unknown Source)
>>         at
>> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>>         at
>> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>>         at
>> org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>>         at
>> org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>>         at
>> org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>>         at
>> org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>>         at
>> org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>>         at
>> org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>>         at
>> org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>>         at
>> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>>         at
>> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>>         at
>> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>>         at
>> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>>         at
>> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>>         at
>> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>>         at
>> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>>         ... 11 more
>> org.jboss.as.cli.CliInitializationException: Failed to connect to the
>> controller
>>         at
>> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:278)
>>         at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:235)
>>         at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
>>         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 org.jboss.modules.Module.run(Module.java:312)
>>         at org.jboss.modules.Main.main(Main.java:460)
>> Caused by: org.jboss.as.cli.CommandLineException: Unable to
>> authenticate against controller at localhost:9990
>>         at
>> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1028)
>>         at
>> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:846)
>>         at
>> org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:825)
>>         at
>> org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:276)
>>         ... 8 more
>> Caused by: javax.security.sasl.SaslException: Authentication failed:
>> the server presented no authentication mechanisms
>>         at
>> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
>>         at
>> org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
>>         at
>> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at
>> org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
>>         at
>> org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
>>         at
>> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at
>> org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
>>         at
>> org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>>         at
>> org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
>>         at
>> org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
>>         at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
>>         at ...asynchronous invocation...(Unknown Source)
>>         at
>> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
>>         at
>> org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
>>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
>>         at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)
>>         at
>> org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)
>>         at
>> org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)
>>         at
>> org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257)
>>         at
>> org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71)
>>         at
>> org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
>>         at
>> org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:169)
>>         at
>> org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:129)
>>         at
>> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147)
>>         at
>> org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122)
>>         at
>> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
>>         at
>> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
>>         at
>> org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
>>         at
>> org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
>>         at
>> org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:1020)
>>         ... 11 more
>>
>> User has been added before with:
>> $WILDFLY_HOME/bin/add-user.sh --user jboss --password xxx
>>
>> Check
>> $JBOSS_HOME/bin/add-user.sh --user jboss --password xxx
>> Updated user 'jboss' to file
>> '/mbi/tools/jboss/9.0/standalone/configuration/mgmt-users.properties'
>>
>>
>> 29.08. 01:23:29,942 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0060:
>> Http management interface listening on http://0.0.0.0:9990/management
>> 29.08. 01:23:29,950 INFO  [org.jboss.as#logAdminConsole] WFLYSRV0051:
>> Admin console listening on http://0.0.0.0:9990
>>
>> Starting web browser on localhost:9990 says:
>>
>>
>>       Your WildFly Application Server is running.
>>
>> However you have not yet added any users to be able to access the
>> admin console.
>>
>>
>>
>>
>> _______________________________________________
>> wildfly-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
>
>
> _______________________________________________
> wildfly-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev