Hi Zhanwen,

The issue seems to be in the broker configuration. If you are using
IoTS-Alpha, there is a configuration issue which was fixed in the later
release[1]. The issue was username and password field for mqtt
configuration in broker.xml is been read as password and username
respectively.

[1] https://wso2.org/jira/browse/MB-1715

Thanks,
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Fri, Dec 23, 2016 at 11:45 AM, 云展智创 <i...@smartcloudex.com> wrote:

> Hi all,
>
> Could you tell me what’s the complete steps to change the admin password
> in IoTS alpha version? I had changed almost all the default admin password
> in configuration files but still got lots of following errors (for example,
> I change the password to smart):
>
> [2016-12-23 14:13:55,169]  WARN - CarbonAuthenticationUtil Failed
> Administrator login attempt 'smart[-1234]' at [2016-12-23 14:13:55,169+0800]
> [2016-12-23 14:13:55,169]  WARN - AuthenticationHandler Illegal access
> attempt at [2016-12-23 14:13:55,0169] from IP address 127.0.0.1 while
> trying to authenticate access to service OAuth2TokenValidationService
> [2016-12-23 14:13:55,170] ERROR - OAuth2BasedMQTTAuthenticator Error on
> connecting with the validation endpoint.
> org.apache.axis2.AxisFault: Access Denied. Authentication failed - Invalid
> credentials provided.
> at org.apache.axis2.util.Utils.getInboundFaultFromMessageCont
> ext(Utils.java:531)
> at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:370)
> at org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:445)
> at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:225)
> at org.apache.axis2.client.OperationClient.execute(
> OperationClient.java:149)
> at org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceSt
> ub.validate(OAuth2TokenValidationServiceStub.java:461)
> at org.wso2.carbon.andes.authentication.andes.
> OAuth2BasedMQTTAuthenticator.getAuthenticationInfo(
> OAuth2BasedMQTTAuthenticator.java:126)
> at org.wso2.carbon.andes.authentication.andes.
> OAuth2BasedMQTTAuthenticator.validateToken(OAuth2BasedMQTTAuthenticator.
> java:82)
> at org.wso2.carbon.andes.authentication.andes.
> OAuth2BasedMQTTAuthenticator.checkValid(OAuth2BasedMQTTAuthenticator.
> java:62)
> at org.dna.mqtt.moquette.messaging.spi.impl.ProtocolProcessor.
> processConnect(ProtocolProcessor.java:256)
> at org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging.onEvent(
> SimpleMessaging.java:160)
> at org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging.onEvent(
> SimpleMessaging.java:47)
> at com.lmax.disruptor.BatchEventProcessor.run(
> BatchEventProcessor.java:128)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> [2016-12-23 14:13:55,170]  INFO - ProtocolProcessor Lost connection with
> client paho6643675267853545
> [2016-12-23 14:13:55,171]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho6643675267853545 is not removed
> since the entry does not exist
> [2016-12-23 14:13:55,171]  INFO - ProtocolProcessor Lost connection with
> client paho6643673511277781
> [2016-12-23 14:13:55,171]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho6643673511277781 is not removed
> since the entry does not exist
> [2016-12-23 14:13:55,172]  INFO - ProtocolProcessor Lost connection with
> client paho6643673893486011
> [2016-12-23 14:13:55,172]  WARN - ProtocolProcessor
> MQTTAuthorizationSubject for client ID paho6643673893486011 is not removed
> since the entry does not exist
> [2016-12-23 14:13:55,172] ERROR - MQTTAdapterListener MQTT Exception
> occurred when starting listener
> Bad user name or password (4)
> at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.
> createMqttException(ExceptionHelper.java:28)
> at org.eclipse.paho.client.mqttv3.internal.ClientState.
> notifyReceivedAck(ClientState.java:885)
> at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.
> run(CommsReceiver.java:118)
> at java.lang.Thread.run(Thread.java:745)
>
>
>
>
> Thanks!
>
> ------
> Zhanwen Zhou (Jason),
> +86 13922218435 <+86%20139%202221%208435>
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: IOT, API
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to