Unable to connect to MQTT database on a VM instance from AppEngine.

34 views
Skip to first unread message

Rajkumar Godi

unread,
Sep 20, 2018, 5:12:15 PM9/20/18
to Google App Engine
Hi All,

I am having issues connecting by MQTT database on VM instance from an application installed on App Engine. I am getting below messages. Please let me know if you have any idea on this. Thank you!.

A  error: Mqtt reconnect 
 
A  info: MQTT Connected ------------------ MQTT_CLIENT_32 
 
A  error: Mqtt offline 
 
A  Mqtt offline 
 
A  error: Mqtt offline 
 
A  Mqtt offline 
 
A  error: Mqtt reconnect 
 
A  info: MQTT Connected ------------------ MQTT_CLIENT_32 
 
A  error: Mqtt reconnect 
 
A  info: MQTT Connected ------------------ MQTT_CLIENT_32 
 
A  180919/102607.004, [ops] memory: 212Mb, uptime (seconds): 56381.156, load: [0.0185546875,0.037109375,0. 001953125]
 
A  Mqtt offline 
 
A  error: Mqtt offline

George (Cloud Platform Support)

unread,
Sep 20, 2018, 8:20:37 PM9/20/18
to Google App Engine
Hello Rajkumar, 

Is your VM instance running in Google Cloud Platform? Do you run your VM instance in your own local server? What DBMS have you implemented? Do you refer to a Cloud SQL instance? How do you connect from your app in App Engine to your VM? A little more detail on your setup should definitely help. 

Rajkumar Godi

unread,
Sep 21, 2018, 12:42:33 PM9/21/18
to google-a...@googlegroups.com
Hi George,

Yes, my setup is entirely on GCP. I do not refer to Cloud SQL. I have installed MongoDB on a VM instance in compute engine, I also have MQTT installed on the same VM Instance. I have not trouble connecting MongoDB to App Enigne, but connection to MQTT is failing with the error lines I provide in my previous post. Please let me know if you need more details. Appreciate any help in this regard.

Regards,
Raj.



On Fri, Sep 21, 2018 at 5:50 AM 'George (Cloud Platform Support)' via Google App Engine <google-a...@googlegroups.com> wrote:
Hello Rajkumar, 

Is your VM instance running in Google Cloud Platform? Do you run your VM instance in your own local server? What DBMS have you implemented? Do you refer to a Cloud SQL instance? How do you connect from your app in App Engine to your VM? A little more detail on your setup should definitely help. 

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/f04134bd-554e-4eff-a0ce-bce930831531%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

George (Cloud Platform Support)

unread,
Sep 21, 2018, 6:43:20 PM9/21/18
to Google App Engine
Hi Rajkumar, 

You should configure the GCE instance's firewall to allow traffic to port 1883, or whatever port is needed for MQTT. You may gather more detail from the "Virtual Private Cloud (VPC) Network Overview" documentation page

As MQTT is not a supported product, you are responsible for its proper configuration, as generally for the proper working of your VM instance in GCE. 
Reply all
Reply to author
Forward
0 new messages