Comments on: Run Your Cloud MQTT Mosquitto Broker (access from anywhere using Digital Ocean) https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 13 Jun 2025 20:37:18 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: RAMZI https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-1057287 Fri, 13 Jun 2025 20:37:18 +0000 https://randomnerdtutorials.com/?p=97731#comment-1057287 In reply to Sara Santos.

Hi,
I think I started by starting. I followed the tutorial:
https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/
Please send me a tutorial to help me.
Best regards.

]]>
By: Sara Santos https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-1010493 Mon, 24 Feb 2025 02:28:54 +0000 https://randomnerdtutorials.com/?p=97731#comment-1010493 In reply to Ramzi.

Hi.
I recommend starting the installation process from the start.
Regards,
Sara

]]>
By: Ramzi https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-1009815 Fri, 21 Feb 2025 13:17:16 +0000 https://randomnerdtutorials.com/?p=97731#comment-1009815 Hello,
I can not restart Mosquitto :
when i try : sudo systemctl restart mosquitto
I get :
Job for mosquitto.service failed because the control process exited with error code.
See “systemctl status mosquitto.service” and “journalctl -xeu mosquitto.service” for details.

]]>
By: Jon https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-890230 Sun, 11 Feb 2024 23:19:51 +0000 https://randomnerdtutorials.com/?p=97731#comment-890230 As always, a great tutorial. Thank you for creating it.

I was struggling with the same issue that Jim & Moyo were having to get the ESP32 to connect to mqtt broker. I came across this website https://test.mosquitto.org/ which listed port 1884 : MQTT, unencrypted, authenticated. So when I tried port 1884 instead of 1883, the ESP32 connection worked.

I’m having issues with the (Optional) Taking It Further – MQTT Mosquitto Broker Encrypted Requests. Mosquitto cannot access the files in the letsencript filepath. Other websites have referenced copying the certs over to the Mosquitto certs folder. I haven’t tried this. For now, I’m just not using SSL. Open to suggestions. I’m running a DigitialOcean Droplet with ubunto 23.10 and mosquitto 2.0.18.

]]>
By: Dom https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-873605 Wed, 22 Nov 2023 14:19:59 +0000 https://randomnerdtutorials.com/?p=97731#comment-873605 If you expirience the problem that the server is not running after setting up the credentials you have to must grant some privileges to the password-file so do:
“chown mosquitto /etc/mosquitto/passwd”, otherwise it won´t work.
But I´m not sure if this setting is secure, tough…

Greetings Dom

]]>
By: Dom https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-873604 Wed, 22 Nov 2023 14:18:29 +0000 https://randomnerdtutorials.com/?p=97731#comment-873604 Ok everyone,

I found the solution to my question.It seems that you must grant some privileges so do:
“chown mosquitto /etc/mosquitto/passwd”, otherwise it won´t work.
But I´m not sure if this setting is secure, tough…

Greetings Dom

]]>
By: Dominik https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-873603 Wed, 22 Nov 2023 14:00:29 +0000 https://randomnerdtutorials.com/?p=97731#comment-873603 Hi Sara,

I got the same message from the first post (connecting…disconnecting…) when using no authorization.

But as soon as I set a password and change the configuration file the whole mosquitto server refuses to run?

When commenting out the change in the configuration file it runs again????

So it must have something to do with the configuration file especially one of the last three lines.

Regards Dom

]]>
By: Sara Santos https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-862681 Wed, 27 Sep 2023 09:16:32 +0000 https://randomnerdtutorials.com/?p=97731#comment-862681 In reply to Andy.

Hi.
I’m not sure.
Double-check that you’re using the latest version of the library and with all the right settings.
Additionally, make sure you’ve set up the mosquitto broker properly.
I haven’t tried this with the other library, so I’m not sure if there is any “trick” to make it work.
Regards,
Sara

]]>
By: Andy https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-862532 Tue, 26 Sep 2023 11:10:28 +0000 https://randomnerdtutorials.com/?p=97731#comment-862532 In reply to Sara Santos.

Hi Sara,

Thanks for the prompt reply. Yes it is what I thought originally but it seems the it only works with the AsyncMqttClient. With the other MQTT client is never able to connect, event with the correct settings it goes: Attempting MQTT connection…failed.
Any idea what might be causing the issue?

]]>
By: Sara Santos https://randomnerdtutorials.com/cloud-mqtt-mosquitto-broker-access-anywhere-digital-ocean/#comment-862520 Tue, 26 Sep 2023 09:30:04 +0000 https://randomnerdtutorials.com/?p=97731#comment-862520 In reply to Andy.

Hi.
You can use other MQTT libraries compatible with the ESP32 without any problem.
Just make sure you insert the right configurations.
Regards,
Sara

]]>