# MQTT stuck on Yellow Connecting

**URL:** <https://discourse.nodered.org/t/mqtt-stuck-on-yellow-connecting/44450>\
**Category:** General\
**Created:** [20 April 2021 09:12 UTC](https://discourse.nodered.org/t/mqtt-stuck-on-yellow-connecting/44450 "2021-04-20T09:12:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmavina](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bmavina/32/37333_2.png) [@bmavina](https://discourse.nodered.org/u/bmavina)\
**Post date:** [20 April 2021 09:12 UTC](https://discourse.nodered.org/t/mqtt-stuck-on-yellow-connecting/44450/1 "2021-04-20T09:12:32Z")

</div>

I'v created a MQTT node and which i have linked with influx DB node. My mqtt node is supposed to be connect with my device on the TTN "co-sensor1". I have followed all the steps to set up the mqtt node that TTN has posted \< [MQTT in Node-RED [HowTo] - Application Development - The Things Network](https://www.thethingsnetwork.org/forum/t/mqtt-in-node-red-howto/39909) \> but for some reason my node is stuck on " connecting "  
 ![MQTT loading](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/8/d870cf56d0aaf4f133ec52e7475522582e796987.jpeg)  
 ![MQTT -setting1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/8/f823e79606bf181b516108f6bd6e2a300cad631a.jpeg)  
 ![MQTT - setting2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/5/f5f43661efe2eceb37f47e995ffe483304b424e1.jpeg)  
Also when I try to paste the mqtt access key that I have generated from TTN onto my password section it keeps disappearing when I deploy it and often shows the old passcode that I have used for a previous application.  
 ![MQTT - setting3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/e/0e66387c55be8332f50b5fcb04d4d8cc33c9796b.jpeg)  
Before all this all went left I was receiving errors to change my credential secrets which I'm showing below. I edited out what actually there so will just say I wrote "pineapples2".  
 ![MQTT - setting4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/012f97de36c08bada90cfdb0be242c1e98a5de8c.jpeg)  
I don't know if this is what I did wrong or not so if you have any idea on how I can fix this issue please let me know.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [20 April 2021 09:43 UTC](https://discourse.nodered.org/t/mqtt-stuck-on-yellow-connecting/44450/2 "2021-04-20T09:43:51Z")

</div>

I think you should be using port 8883 for secure MQTT connections!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 April 2021 09:55 UTC](https://discourse.nodered.org/t/mqtt-stuck-on-yellow-connecting/44450/3 "2021-04-20T09:55:16Z")

</div>

Well spotted.

From [API Reference | The Things Network](https://www.thethingsnetwork.org/docs/applications/mqtt/api/index.html) ...

> API Reference
> 
> - Port: `1883` , or `8883` for TLS

---

<div class="post-metadata">

**Author:** ![bmavina](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bmavina/32/37333_2.png) [@bmavina](https://discourse.nodered.org/u/bmavina)\
**Post date:** [20 April 2021 09:56 UTC](https://discourse.nodered.org/t/mqtt-stuck-on-yellow-connecting/44450/4 "2021-04-20T09:56:59Z")

</div>

Thank you for @ghayne it worked

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 May 2021 09:57 UTC](https://discourse.nodered.org/t/mqtt-stuck-on-yellow-connecting/44450/5 "2021-05-04T09:57:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
