[prev in list] [next in list] [prev in thread] [next in thread] 

List:       esb-java-dev
Subject:    Re: [Dev] [IoTS] what's the complete steps to change the admin password in IoTS alpha version
From:       Ayyoob Hamza <ayyoob () wso2 ! com>
Date:       2016-12-25 1:55:56
Message-ID: CAFp9FkoPEziudVeUzyaPXKW-9tPRSx6RASptJnxgJbnto5HTfg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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: ayyoob@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Fri, Dec 23, 2016 at 11:45 AM, 云展智创 <info@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.zhou@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
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Hi  <span style="font-size:12.8px">Zhanwen,</span><div><span \
style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">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.  </span></div><div><span \
style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">[1]  <a \
href="https://wso2.org/jira/browse/MB-1715">https://wso2.org/jira/browse/MB-1715</a></span></div><div><span \
style="font-size:12.8px"><br></span></div><div><span \
style="font-size:12.8px">Thanks,</span></div><div><span \
style="font-size:12.8px">Ayyoob  </span></div></div><div class="gmail_extra"><br \
clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><b style="color:rgb(136,136,136)">Ayyoob Hamza</b><br \
style="color:rgb(136,136,136)"><div \
style="color:rgb(136,136,136)"><b><div></div></b></div><div \
style="color:rgb(136,136,136)"><b>Software Engineer</b></div><div \
style="color:rgb(136,136,136)">WSO2 Inc.;  <a href="http://wso2.com/" \
style="color:rgb(17,85,204)" target="_blank">http://wso2.com</a><br>email:  <a \
href="mailto:ayyoob@wso2.com" style="color:rgb(17,85,204)" \
target="_blank">ayyoob@wso2.com</a>  cell:  <a href="tel:%2B94%2077%207779495" \
value="+94777779495" style="color:rgb(17,85,204)" target="_blank">+94 77 \
1681010</a></div></div></div></div> <br><div class="gmail_quote">On Fri, Dec 23, 2016 \
at 11:45 AM, 云展智创 <span dir="ltr">&lt;<a href="mailto:info@smartcloudex.com" \
target="_blank">info@smartcloudex.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div style="word-wrap:break-word">Hi \
all,<div><br></div><div>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):</div><div><br></div><div><div \
style="margin:0px;font-size:11px;font-family:Menlo"><div style="margin:0px"><div \
style="margin:0px">[2016-12-23 14:13:55,169]   WARN - CarbonAuthenticationUtil Failed \
Administrator login attempt &#39;smart[-1234]&#39; at [2016-12-23 \
14:13:55,169+0800]</div><div style="margin:0px">[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</div><div style="margin:0px">[2016-12-23 14:13:55,170] \
ERROR - OAuth2BasedMQTTAuthenticator Error on connecting with the validation \
endpoint.</div><div style="margin:0px">org.apache.axis2.AxisFault: Access Denied. \
Authentication failed - Invalid credentials provided.</div><div \
style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
style="white-space:pre-wrap">	</span>at \
org.apache.axis2.util.Utils.<wbr>getInboundFaultFromMessageCont<wbr>ext(Utils.java:531)</div><div \
style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
style="white-space:pre-wrap">	</span>at \
org.apache.axis2.description.<wbr>OutInAxisOperationClient.<wbr>handleResponse(<wbr>OutInAxisOperation.java:370)</div><div \
style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
style="white-space:pre-wrap">	</span>at \
org.apache.axis2.description.<wbr>OutInAxisOperationClient.send(<wbr>OutInAxisOperation.java:445)</div><div \
style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
style="white-space:pre-wrap">	</span>at \
org.apache.axis2.description.<wbr>OutInAxisOperationClient.<wbr>executeImpl(<wbr>OutInAxisOperation.java:225)</div><div \
style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
style="white-space:pre-wrap">	</span>at \
org.apache.axis2.client.<wbr>OperationClient.execute(<wbr>OperationClient.java:149)</div><div \
style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
style="white-space:pre-wrap">	</span>at \
org.wso2.carbon.identity.<wbr>oauth2.stub.<wbr>OAuth2TokenValidationServiceSt<wbr>ub.validate(<wbr>OAuth2TokenValidationServiceSt<wbr>ub.java:461)</div><div \
style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
style="white-space:pre-wrap">	</span>at \
org.wso2.carbon.andes.<wbr>authentication.andes.<wbr>OAuth2BasedMQTTAuthenticator.<wbr \
>getAuthenticationInfo(<wbr>OAuth2BasedMQTTAuthenticator.<wbr>java:126)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> org.wso2.carbon.andes.<wbr>authentication.andes.<wbr>OAuth2BasedMQTTAuthenticator.<wbr>validateToken(<wbr>OAuth2BasedMQTTAuthenticator.<wbr>java:82)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> org.wso2.carbon.andes.<wbr>authentication.andes.<wbr>OAuth2BasedMQTTAuthenticator.<wbr>checkValid(<wbr>OAuth2BasedMQTTAuthenticator.<wbr>java:62)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> org.dna.mqtt.moquette.<wbr>messaging.spi.impl.<wbr>ProtocolProcessor.<wbr>processConnect(<wbr>ProtocolProcessor.java:256)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> org.dna.mqtt.moquette.<wbr>messaging.spi.impl.<wbr>SimpleMessaging.onEvent(<wbr>SimpleMessaging.java:160)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> org.dna.mqtt.moquette.<wbr>messaging.spi.impl.<wbr>SimpleMessaging.onEvent(<wbr>SimpleMessaging.java:47)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> com.lmax.disruptor.<wbr>BatchEventProcessor.run(<wbr>BatchEventProcessor.java:128)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1142)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:617)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> java.lang.Thread.run(Thread.<wbr>java:745)</div><div style="margin:0px">[2016-12-23 \
> 14:13:55,170]   INFO - ProtocolProcessor Lost connection with client \
> paho6643675267853545</div><div style="margin:0px">[2016-12-23 14:13:55,171]   WARN \
> - ProtocolProcessor MQTTAuthorizationSubject for client ID paho6643675267853545 is \
> not removed since the entry does not exist</div><div style="margin:0px">[2016-12-23 \
> 14:13:55,171]   INFO - ProtocolProcessor Lost connection with client \
> paho6643673511277781</div><div style="margin:0px">[2016-12-23 14:13:55,171]   WARN \
> - ProtocolProcessor MQTTAuthorizationSubject for client ID paho6643673511277781 is \
> not removed since the entry does not exist</div><div style="margin:0px">[2016-12-23 \
> 14:13:55,172]   INFO - ProtocolProcessor Lost connection with client \
> paho6643673893486011</div><div style="margin:0px">[2016-12-23 14:13:55,172]   WARN \
> - ProtocolProcessor MQTTAuthorizationSubject for client ID paho6643673893486011 is \
> not removed since the entry does not exist</div><div style="margin:0px">[2016-12-23 \
> 14:13:55,172] ERROR - MQTTAdapterListener MQTT Exception occurred when starting \
> listener</div><div style="margin:0px">Bad user name or password (4)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> org.eclipse.paho.client.<wbr>mqttv3.internal.<wbr>ExceptionHelper.<wbr>createMqttException(<wbr>ExceptionHelper.java:28)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> org.eclipse.paho.client.<wbr>mqttv3.internal.ClientState.<wbr>notifyReceivedAck(ClientState.<wbr>java:885)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> org.eclipse.paho.client.<wbr>mqttv3.internal.CommsReceiver.<wbr>run(CommsReceiver.java:118)</div><div \
> style="margin:0px"><span class="m_-3206738458180572039Apple-tab-span" \
> style="white-space:pre-wrap">	</span>at \
> java.lang.Thread.run(Thread.<wbr>java:745)</div><div><br></div><div><br></div></div><div><br></div></div><div \
> style="margin:0px;font-size:11px;font-family:Menlo"><br></div><div>
<div><div><div>Thanks!</div><div><br></div><div>------</div><div>Zhanwen \
Zhou (Jason),  </div><div><a href="tel:+86%20139%202221%208435" \
value="+8613922218435" target="_blank">+86 13922218435</a></div></div><div><a \
href="mailto:zhanwen.zhou@smartcloudex.com" \
target="_blank">zhanwen.zhou@smartcloudex.com</a></div><div>Guangzhou Smart Cloudex \
Technology Co., Ltd.</div><div>Business: IOT, API</div></div> </div>
<br></div></div><br>______________________________<wbr>_________________<br>
Dev mailing list<br>
<a href="mailto:Dev@wso2.org">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" rel="noreferrer" \
target="_blank">http://wso2.org/cgi-bin/<wbr>mailman/listinfo/dev</a><br> \
<br></blockquote></div><br></div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic