•   over 2 years ago

RabbitMQ Mqtt is not getting connected

I want to deploy my own asset and collect data. While I have been able to publish and receive message from RabbitMQ dashboard, I am unable to publish or subscribe through Predix. Here is my entire service environment json.
I need immidiate help please.

System-Provided:
{
"VCAP_SERVICES": {
"rabbitmq-36": [
{
"credentials": {
"dashboard_url": "https://pivotal-rabbitmq-36.system.aws-usw02-pr.ice.predix.io/#/login/3248f375-763c-441c-a3e6-4763c69f415b/973vfj4oni4jldt0h7k80us4mn",
"hostname": "10.72.6.151",
"hostnames": [
"10.72.6.151",
"10.72.7.151"
],
"http_api_uri": "https://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@pivotal-rabbitmq-36.system.aws-usw02-pr.ice.predix.io/api/",
"http_api_uris": [
"https://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@pivotal-rabbitmq-36.system.aws-usw02-pr.ice.predix.io/api/"
],
"password": "973vfj4oni4jldt0h7k80us4mn",
"protocols": {
"amqp": {
"host": "10.72.6.151",
"hosts": [
"10.72.6.151",
"10.72.7.151"
],
"password": "973vfj4oni4jldt0h7k80us4mn",
"port": 5672,
"ssl": false,
"uri": "amqp://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.6.151:5672/ec5952eb-dd5e-4950-92c1-caa115a3976c",
"uris": [
"amqp://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.6.151:5672/ec5952eb-dd5e-4950-92c1-caa115a3976c",
"amqp://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.7.151:5672/ec5952eb-dd5e-4950-92c1-caa115a3976c"
],
"username": "3248f375-763c-441c-a3e6-4763c69f415b",
"vhost": "ec5952eb-dd5e-4950-92c1-caa115a3976c"
},
"management": {
"host": "pivotal-rabbitmq-36.system.aws-usw02-pr.ice.predix.io",
"hosts": [
"10.72.6.151",
"10.72.7.151"
],
"password": "973vfj4oni4jldt0h7k80us4mn",
"path": "/api/",
"port": 15672,
"ssl": false,
"uri": "http://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@pivotal-rabbitmq-36.system.aws-usw02-pr.ice.predix.io:80/api/",
"uris": [
"http://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.6.151:15672/api/",
"http://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.7.151:15672/api/"
],
"username": "3248f375-763c-441c-a3e6-4763c69f415b"
},
"mqtt": {
"host": "10.72.6.151",
"hosts": [
"10.72.6.151",
"10.72.7.151"
],
"password": "973vfj4oni4jldt0h7k80us4mn",
"port": 1883,
"ssl": false,
"uri": "mqtt://ec5952eb-dd5e-4950-92c1-caa115a3976c%3A3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.6.151:1883",
"uris": [
"mqtt://ec5952eb-dd5e-4950-92c1-caa115a3976c%3A3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.6.151:1883",
"mqtt://ec5952eb-dd5e-4950-92c1-caa115a3976c%3A3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.7.151:1883"
],
"username": "ec5952eb-dd5e-4950-92c1-caa115a3976c:3248f375-763c-441c-a3e6-4763c69f415b"
},
"stomp": {
"host": "10.72.6.151",
"hosts": [
"10.72.6.151",
"10.72.7.151"
],
"password": "973vfj4oni4jldt0h7k80us4mn",
"port": 61613,
"ssl": false,
"uri": "stomp://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.6.151:61613",
"uris": [
"stomp://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.6.151:61613",
"stomp://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.7.151:61613"
],
"username": "3248f375-763c-441c-a3e6-4763c69f415b",
"vhost": "ec5952eb-dd5e-4950-92c1-caa115a3976c"
}
},
"ssl": false,
"uri": "amqp://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.6.151/ec5952eb-dd5e-4950-92c1-caa115a3976c",
"uris": [
"amqp://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.6.151/ec5952eb-dd5e-4950-92c1-caa115a3976c",
"amqp://3248f375-763c-441c-a3e6-4763c69f415b:973vfj4oni4jldt0h7k80us4mn@10.72.7.151/ec5952eb-dd5e-4950-92c1-caa115a3976c"
],
"username": "3248f375-763c-441c-a3e6-4763c69f415b",
"vhost": "ec5952eb-dd5e-4950-92c1-caa115a3976c"
},
"label": "rabbitmq-36",
"name": "myMqtt",
"plan": "standard",
"provider": null,
"syslog_drain_url": null,
"tags": [
"rabbitmq",
"messaging",
"message-queue",
"amqp",
"stomp",
"mqtt",
"pivotal"
]
}
]
}
}

  • 3 comments

  • Moderator   •   over 2 years ago

    RabbitMQ is not available outside of Predix. It is coming soon. You can only use websocket or HTTPS for now to post to Predix.

    If I didn't answer your question, please post your question here: Predix.io forum (http://forum.predix.io). Make sure to include a Topic tag your question with “intelligentworld” and you’ll hear from us in the next 24 hours – or sooner!

  •   •   over 2 years ago

    Hi. Thanks for quick response. But, how can I use either of https or websocket in a pub-sub context?
    If I use HTTP or websocket, I have to write a polling at the client :(

  • Moderator   •   over 2 years ago

    That is correct. You can't use the pub-sub model. You will have to write a websocket client or a HTTP client. If you want near real-time events, you have to use websocket. If you want to get historical information, then you can use HTTPS.

Comments are closed.