[wildfly-dev] jboss-cli / management interface broken?

Darran Lofthouse darran.lofthouse at jboss.com
Fri Aug 29 11:59:58 EDT 2014


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
>> wildfly-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
>
>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>


More information about the wildfly-dev mailing list