<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117793/mqtt-bridge-mosquitto-not-working-with-aws-iot</link><description>Hi, 
 we have implemented https://github.com/nRFCloud/MQTT-bridge-mosquitto in our AWS account. but in we are getting error like 
 
 
 
 
 January 07, 2025 at 14:51 (UTC+5:30) 
 
 
 1736241683: Client nrfcloud-bridge-local closed its connection. 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Feb 2025 10:41:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117793/mqtt-bridge-mosquitto-not-working-with-aws-iot" /><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/521275?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 10:41:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8b74d4d-f592-4fcb-9d38-692311e72396</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;The issue in MQTT bridge should be fixed now. Fixed mqtt bridge mosquitto is available in the same&amp;nbsp;&lt;a href="https://github.com/nRFCloud/mqtt-bridge-mosquitto"&gt;location&lt;/a&gt;&amp;nbsp;as it was previously. For re-deploying the bridge, you should follow the instructions provided in&amp;nbsp;&lt;a href="https://github.com/nRFCloud/mqtt-bridge-mosquitto"&gt;MQTT bridge mosquitto&lt;/a&gt;, get and compile the newest code,&amp;nbsp;&lt;span&gt;and use the --reset&lt;/span&gt;&lt;span&gt;&amp;nbsp;option to create a new MQTT Team device and new local credentials as described on the linked page. If this works, then you do not need a workaround anymore. You&amp;nbsp;can also delete all account-*&amp;nbsp;and mqtt-team-*&amp;nbsp;devices on your team that you do not use, except mqtt-team-*&amp;nbsp;device that will be newly created by your latest deployment.&amp;nbsp;That device ID can be found in AWS Systems Manager Parameter Store in the parameter NrfCloudMqttTeamDeviceId.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/520538?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2025 11:09:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec7bf06-fcef-4436-bc19-c58fc1942e12</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We have tested internally using your config and certificate files and could not reproduce the issue.&amp;nbsp;&lt;br /&gt;Below are some updated instructions. Can you please try again by following instructions shown below?&lt;/p&gt;
&lt;p&gt;1. In your AWS account and region where the MQTT Bridge is installed, go to the Systems Manager Parameter Store console.&lt;/p&gt;
&lt;p&gt;2. Copy the certificates in the IotCert and IotKey parameters into files named local_IotCert.txt and local_IotKey.txt. Ensure the last line of each file has an end-of-line character at the end.&lt;/p&gt;
&lt;p&gt;3. Using the REST API, create an MQTT Team device. See nRF Cloud&amp;nbsp;&lt;a href="https://api.nrfcloud.com/v1#tag/Mqtt-Team-Devices/operation/CreateMqttTeamDevice"&gt;REST API documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;4. Store the 3 certificates returned in files named nrfcloud_caCert.txt, nrfcloud_clientCert.txt, and nrfcloud_privateKey.txt.&lt;/p&gt;
&lt;p&gt;5. Change all literal strings &amp;quot;\n&amp;quot; to end-of-line characters in all 3 files. Ensure the last line of each file has an end-of-line character at the end.&lt;/p&gt;
&lt;p&gt;6. Download mosquitto.org/.../mosquitto-2.0.11-install-windows-x64.exe&lt;/p&gt;
&lt;p&gt;7. Install it to the default location&lt;/p&gt;
&lt;p&gt;8. Add &amp;quot;%ProgramFiles%\Mosquitto&amp;quot; (without quotes) to the Windows PATH&lt;/p&gt;
&lt;p&gt;9. Create a directory from where you will run Mosquitto and store configuration files, such as &amp;quot;C:\Mosquitto&amp;quot;.&lt;/p&gt;
&lt;p&gt;10. Open a Command Prompt window and &amp;quot;cd&amp;quot; to the run directory you created.&lt;/p&gt;
&lt;p&gt;11. Enter &amp;quot;mosquitto -h&amp;quot;. You should see the help page and &amp;quot;mosquitto version 2.0.11&amp;quot; displayed.&lt;/p&gt;
&lt;p&gt;12. Copy the attached &amp;quot;config.txt&amp;quot; into that directory.&lt;/p&gt;
&lt;p&gt;13. Look for the “# Replace…” comment lines and replace the example strings with the correct strings for your case.&lt;/p&gt;
&lt;p&gt;14. Create a subdirectory &amp;quot;config&amp;quot;.&lt;/p&gt;
&lt;p&gt;15. Copy the 5 files you created above, into that &amp;quot;config&amp;quot; directory. (local_IotCert.txt, local_IotKey.txt, nrfcloud_ca.crt, nrfcloud_clientCert.txt, nrfcloud_privateKey.txt)&lt;/p&gt;
&lt;p&gt;16. In the run directory, start the mosquitto broker with the command: &amp;quot;mosquitto -v -c config.txt&amp;quot;.&lt;/p&gt;
&lt;p&gt;17. Verify that MQTT messages sent by devices in your nrfcloud team appear on your AWS account and region on the MQTT topics &amp;quot;data/#&amp;quot; as described in&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/MessagesAndAlerts/SetupMessageBridge.html#republished-topics"&gt;republished topics&lt;/a&gt;&amp;nbsp;documentation.&lt;br /&gt;&lt;br /&gt;Please find uploaded revised&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-be6f0975dabc4460a5727cc5b049ab8d/config.txt"&gt;devzone.nordicsemi.com/.../config.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you still experience issue, please consider trying on another computer and look thoroughly for any potential networking issue which may block some traffic.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/520489?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2025 06:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:403e124a-970c-4c2d-a3be-d6175ce74456</guid><dc:creator>Neel Patel</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;While using this config file, we are facing the below error.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Client nrfcloud-bridge-local disconnected: protocol error.&lt;br /&gt;Client local.DESKTOP-UQS9RRA.iot-bridge disconnected: protocol error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/520142?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 10:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a8e0294-5ee2-4333-ab47-39edd82be956</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Neel,&lt;br /&gt;&lt;br /&gt;Have you made any progress?&amp;nbsp;Can you provide an update on a current status?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/519048?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2025 12:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fabc252b-bf08-4eb0-a4bc-be238545f24e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Neel,&lt;br /&gt;&lt;br /&gt;Although there is no fix for MQTT Bridge yet, we have verified that mosquitto MQTT broker (which the bridge uses) works if it is installed and configured manually.&lt;br /&gt;&lt;br /&gt;Fortunately, there is a workaround implementation which you can try to follow. It&amp;nbsp;&lt;span&gt;installs and configures Mosquitto locally on a Windows 11 machine. You can adapt these instructions for use on Linux or in Docker containers as you see fit.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The MQTT Bridge must be already installed, because it reuses local certs the bridge creates. The ECS task of the bridge does need to be running. You can stop it using the AWS Console by clicking “Update Service” on the ECS cluster’s nrfcloud-mqtt-bridge-MqttBridgeService…, and setting the “Desired tasks” to 0.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ol start="1"&gt;
&lt;li&gt;
&lt;p&gt;In your AWS account and region where the MQTT Bridge is installed, go to the Systems Manager Parameter Store console.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="2"&gt;
&lt;li&gt;
&lt;p&gt;Copy the certificates in the IotCert and IotKey parameters into files named local_IotCert.txt and local_IotKey.txt. Ensure the last line of each file has an end-of-line character at the end.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="3"&gt;
&lt;li&gt;
&lt;p&gt;Using the REST API, create an MQTT Team device. See &lt;a title="https://api.nrfcloud.com/v1#tag/Mqtt-Team-Devices/operation/CreateMqttTeamDevice" href="https://api.nrfcloud.com/v1#tag/Mqtt-Team-Devices/operation/CreateMqttTeamDevice"&gt;https://api.nrfcloud.com/v1#tag/Mqtt-Team-Devices/operation/CreateMqttTeamDevice&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="4"&gt;
&lt;li&gt;
&lt;p&gt;Store the 3 certificates returned in files named nrfcloud_caCert.crt, nrfcloud_clientCert.txt, and nrfcloud_privateKey.txt.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="5"&gt;
&lt;li&gt;
&lt;p&gt;Change all literal strings &amp;quot;\n&amp;quot; to end-of-line characters in all 3 files. Ensure the last line of each file has an end-of-line character at the end.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="6"&gt;
&lt;li&gt;
&lt;p&gt;Download https://mosquitto.org/files/binary/win64/mosquitto-2.0.11-install-windows-x64.exe&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="7"&gt;
&lt;li&gt;
&lt;p&gt;Install it to the default location&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="8"&gt;
&lt;li&gt;
&lt;p&gt;Add &amp;quot;%ProgramFiles%\Mosquitto&amp;quot; (without quotes) to the Windows PATH&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="9"&gt;
&lt;li&gt;
&lt;p&gt;Create a directory from where you will run Mosquitto and store configuration files, such as &amp;quot;C:\Mosquitto&amp;quot;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open a Command Prompt window and &amp;quot;cd&amp;quot; to the run directory you created.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enter &amp;quot;mosquitto -h&amp;quot;. You should see the help page and &amp;quot;mosquitto version 2.0.11&amp;quot; displayed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the attached &amp;quot;config.txt&amp;quot; into that directory.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Replace the &amp;quot;remote_clientid&amp;quot; with the ID of the MQTT Team device you created, e.g. &amp;quot;mqtt-team-…&amp;quot;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Replace the &amp;quot;address&amp;quot; of the &amp;quot;connection iot-bridge&amp;quot; (not the &amp;quot;connection nrfcloud-bridge&amp;quot;) with the AWS IoT Domain configuration name for your AWS account and region.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a subdirectory &amp;quot;config&amp;quot;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the 5 files you created above, into that &amp;quot;config&amp;quot; directory. (local_IotCert.txt, local_IotKey.txt, nrfcloud_ca.crt, nrfcloud_clientCert.txt, nrfcloud_privateKey.txt)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the run directory, start the mosquitto broker with the command: &amp;quot;mosquitto -v -c config.txt&amp;quot;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Verify that MQTT messages sent by devices in your nrfCloud team appear on your AWS account and region on the MQTT topics &amp;quot;data/#&amp;quot; as described in&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/MessagesAndAlerts/SetupMessageBridge.html#republished-topics"&gt;republished topics&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Please find uploaded example of config.txt file.&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1638.config.txt"&gt;devzone.nordicsemi.com/.../1638.config.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/518760?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 06:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68e8509f-62f1-4f7b-bac2-1030ccb838de</guid><dc:creator>Neel Patel</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Is there any update here? We are in a bit hurry as production system is impaired by this.&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Neel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/518448?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 13:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d7a3811-72e8-49f8-84ac-db9243621172</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have reached out again to the relevant team internally. I will get back to you with status update by the end of this week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/518114?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 10:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fad7ce8-7595-4a56-a1a6-bbeb0d375e8e</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;It would be nice to get some feedback on this cause this is stopping everything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/517986?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 15:09:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d8114f7-dfba-4919-9d5c-5165dbced5a0</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have reported this problem internally. I will get back to you by the end of next week.&lt;br /&gt;In the meantime, please let me know if situation changes and you start getting data in AWS.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/517720?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 13:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dbe107c-a80c-415c-bda9-7419d46d13ad</guid><dc:creator>Neel Patel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Earlier it was working fine then it suddenly stopped. So we recreated the mosquito bridge but it didn&amp;rsquo;t work &lt;br /&gt;We are getting data in nRF cloud but not in aws IoT&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/517650?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 10:28:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e09869a-bf9c-4269-b45c-1562bf92bc06</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which board do you use?&lt;br /&gt;&lt;br /&gt;Did you get data at any point after the issue appeared for the first time or does the sequence &amp;quot;Connecting -&amp;gt; Closed its connection&amp;quot; persist?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/517376?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 06:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:945e629b-901f-4867-bd52-96b609bc8135</guid><dc:creator>Neel Patel</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We have 50+ devices and all devices are not able to connect. Our devices are in 2-3 countries like Poland&lt;span&gt;, Spain etc.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-bridge-mosquitto not working with AWS Iot</title><link>https://devzone.nordicsemi.com/thread/517246?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 13:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:376d3a96-e73f-4ad8-8ad0-cb40f13f999d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;How many devices do you have in total? How many devices are affected by this &amp;quot;not able to connect&amp;quot; problem?&lt;br /&gt;&lt;br /&gt;Are affected devices (that try to connect) located in the same physical location?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>