WMQTT CONNACK not received

138 views
Skip to first unread message

Azade Rahmati

unread,
Oct 12, 2015, 5:33:10 AM10/12/15
to rabbitmq-users
hi
 I ran RabbitMqtt broker and services by rabbit site tutorial. now i have a problem on connecting MQtt to RabbitMq broker. I have an android client that use WMQTT library to connect rabbit broker. but it  make this error "WMQTT CONNACK not received". I check all things, erl.exe listen port 1883 and rabbitMq service is running on task manager. I use wmqttSample java file to check connecting on local host it works true but i can't connect to broker on network. please help me, thanks

Michael Klishin

unread,
Oct 12, 2015, 5:36:55 AM10/12/15
to rabbitm...@googlegroups.com, Azade Rahmati
On 12 Oct 2015 at 12:33:12, Azade Rahmati (rahmat...@gmail.com) wrote:
> please help me, thanks

We haven’t heard of that client. What’s in RabbitMQ log files?

We’d recommend using Paho Java, I believe it is Android-compatible. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Azade Rahmati

unread,
Oct 12, 2015, 5:51:40 AM10/12/15
to rabbitmq-users
thanks for your fast reply.I use WMQTT in the other projects successfully but server side was programming by the others, now i wrote server side but i cant connect to rabbit. Now I check Paho Java.Thank you so much

Michael Klishin

unread,
Oct 12, 2015, 5:52:55 AM10/12/15
to rabbitm...@googlegroups.com, Azade Rahmati
 On 12 Oct 2015 at 12:51:43, Azade Rahmati (rahmat...@gmail.com) wrote:
> thanks for your fast reply.I use WMQTT in the other projects
> successfully but server side was programming by the others,
> now i wrote server side but i cant connect to rabbit. Now I check
> Paho Java.Thank you so much

Please also check RabbitMQ log files, in particular SASL.

Azade Rahmati

unread,
Oct 12, 2015, 6:00:17 AM10/12/15
to rabbitmq-users
i have some log files on C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.4\ebin you mean these log files?


On Monday, October 12, 2015 at 2:33:10 AM UTC-7, Azade Rahmati wrote:

Michael Klishin

unread,
Oct 12, 2015, 6:05:48 AM10/12/15
to rabbitm...@googlegroups.com, Azade Rahmati
On 12 Oct 2015 at 13:00:21, Azade Rahmati (rahmat...@gmail.com) wrote:
> i have some log files on C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.4\ebin
> you mean these log files?

Take a look at http://www.rabbitmq.com/relocate.html.

File names will be rabbit@….log and rabbit@…-sasl.log. We’d appreciate if you
could post their contents (via gist.github.com, for example). Feel free to edit out hostnames
and IPs .

Azade Rahmati

unread,
Oct 12, 2015, 6:14:35 AM10/12/15
to rabbitmq-users
Thanks alot. i see this log and send it. thanks


On Monday, October 12, 2015 at 2:33:10 AM UTC-7, Azade Rahmati wrote:

Azade Rahmati

unread,
Oct 12, 2015, 6:23:52 AM10/12/15
to rabbitmq-users
I found this sasl log and i post contentss on gist.github.com. but all reports are for 3 octobr.Today logs are not there.


On Monday, October 12, 2015 at 2:33:10 AM UTC-7, Azade Rahmati wrote:

Michael Klishin

unread,
Oct 12, 2015, 6:25:18 AM10/12/15
to rabbitm...@googlegroups.com, Azade Rahmati
On 12 Oct 2015 at 13:23:55, Azade Rahmati (rahmat...@gmail.com) wrote:
> I found this sasl log and i post contentss on gist.github.com(http://gist.github.com/).
> but all reports are for 3 octobr.Today logs are not there.

What’s in the regular log? Also, if you post something to gist.github.com, others
need a link in order to see it ;) 

Azade Rahmati

unread,
Oct 12, 2015, 6:34:03 AM10/12/15
to rabbitmq-users
Excuse me i think i posted link.now I saw rabbit log and i post it in this link "https://gist.github.com/anonymous/616e7cc2bb8bd7ab59a0" and i post sasl log in this link https://gist.github.com/anonymous/320f5867c03e619c8f66. I post log file because today logs 12-october were in this file.


On Monday, October 12, 2015 at 2:33:10 AM UTC-7, Azade Rahmati wrote:

Azade Rahmati

unread,
Oct 12, 2015, 6:43:16 AM10/12/15
to rabbitmq-users
Ok i found from log that I can't connect to broker by guset user. how can I access from remote hosts without setting  user?


On Monday, October 12, 2015 at 2:33:10 AM UTC-7, Azade Rahmati wrote:

Michael Klishin

unread,
Oct 12, 2015, 7:41:11 AM10/12/15
to rabbitm...@googlegroups.com, Azade Rahmati
On 12 October 2015 at 13:43:18, Azade Rahmati (rahmat...@gmail.com) wrote:
> Ok i found from log that I can't connect to broker by guset user.
> how can I access from remote hosts without setting user?

See the first couple of paragraphs on http://www.rabbitmq.com/access-control.html.

Note that we *highly* recommend creating a separate user with a strong password
for production environments. 

Azade Rahmati

unread,
Oct 12, 2015, 7:52:45 AM10/12/15
to rabbitmq-users
Now I check your recommended link http://www.rabbitmq.com/access-control.html but I can't find out this thing, that , when I want to connect Mqtt to broker, should android client post this particular user pass to broker? because i use WMQTT i only use this code to connect  mqttClient.connect(generateClientId(), cleanStart, keepAliveSeconds); and I dont't know how send user pass


On Monday, October 12, 2015 at 2:33:10 AM UTC-7, Azade Rahmati wrote:

Michael Klishin

unread,
Oct 12, 2015, 8:08:15 AM10/12/15
to rabbitm...@googlegroups.com, Azade Rahmati
 On 12 October 2015 at 14:52:48, Azade Rahmati (rahmat...@gmail.com) wrote:
> Now I check your recommended link http://www.rabbitmq.com/access-control.html
> but I can't find out this thing, that , when I want to connect Mqtt
> to broker, should android client post this particular user pass
> to broker? because i use WMQTT i only use this code to connect mqttClient.connect(generateClientId(),
> cleanStart, keepAliveSeconds); and I dont't know how send user
> pass

Yes, you need to create a user, give it access to the vhost used by MQTT ("/" by default)
and configure the client to use that user.

However exactly that's done in WMQTT, I don't know. It should be something straightforward,
please take a look at the API of that library.

Azade Rahmati

unread,
Oct 12, 2015, 8:16:32 AM10/12/15
to rabbitmq-users
Ok, if i find out right, you mean this library may send specific user and pass and i should read wmqtt docs to find this user and make like that, in rabbitMqtt server.am i right?


On Monday, October 12, 2015 at 2:33:10 AM UTC-7, Azade Rahmati wrote:

Michael Klishin

unread,
Oct 12, 2015, 8:19:46 AM10/12/15
to rabbitm...@googlegroups.com, Azade Rahmati
On 12 October 2015 at 15:16:36, Azade Rahmati (rahmat...@gmail.com) wrote:
> Ok, if i find out right, you mean this library may send specific
> user and pass and i should read wmqtt docs to find this user and
> make like that, in rabbitMqtt server.am i right?

MQTT is an interesting (to put this politely) protocol where authentication is optional,
so RabbitMQ has default credentials used for MQTT connections. Those can be configured
in RabbitMQ config file.

Yes, I was suggesting finding a way to specify credentials in WMQTT. 

Azade Rahmati

unread,
Oct 12, 2015, 8:25:31 AM10/12/15
to rabbitmq-users
Thanks so much. You help me so. Excuse me that i couldn't write English fluently. You show me how can i find out my problem in log file and  find out them. Thanks


On Monday, October 12, 2015 at 2:33:10 AM UTC-7, Azade Rahmati wrote:

Michael Klishin

unread,
Oct 12, 2015, 8:28:18 AM10/12/15
to rabbitm...@googlegroups.com, Azade Rahmati
On 12 October 2015 at 15:25:34, Azade Rahmati (rahmat...@gmail.com) wrote:
> Thanks so much. You help me so. Excuse me that i couldn't write
> English fluently. You show me how can i find out my problem in log
> file and find out them.

No worries, it wasn't difficult at all communicating with you.

If you have further RabbitMQ (or even MQTT) questions, don't hesitate to post
them to this list (as new topics, please) .

Azade Rahmati

unread,
Oct 12, 2015, 8:33:53 AM10/12/15
to rabbitmq-users
really thanks for your helpness.If i have problem, I back soon.


On Monday, October 12, 2015 at 2:33:10 AM UTC-7, Azade Rahmati wrote:
Reply all
Reply to author
Forward
0 new messages