No connection could be made because the target machine actively refuse d it.

164 views
Skip to first unread message

Shanmugapriyan Murugesan

unread,
Dec 14, 2017, 9:05:39 AM12/14/17
to Google Cloud SQL discuss
I am trying to run node application on local machine using cloud_sql_proxy.exe. I have created Cloud sql instance & it is running fine in Google cloud.

Step I followed for running node application:
1) starting cloud sql proxy in local machine, using below command:
    
command: cloud_sql_proxy.exe -instances=instance-connection-nameXXXXXXXX=tcp:3306
output: 
2017/12/14 11:12:37 Listening on 127.0.0.1:3306 for instance-connection-nameXXXXXXXX
2017/12/14 11:12:37 Ready for new connections
2) Running my node application.

3) Getting error on cloud_sql_proxy terminal:
2017/12/14 11:14:49 New connection for instance-connection-nameXXXXXXXX
2017/12/14 11:14:49 New connection for instance-connection-nameXXXXXXXX
2017/12/14 11:14:50 Throttling refreshCfg(instance-connection-nameXXXXXXXX): it was only called 2.0001ms ago
2017/12/14 11:14:50 couldn't connect to instance-connection-nameXXXXXXXX: Post https://www.googleapis.com/sql/v1beta4/projects/questionsdat
abase-188317/instances/question-mysql/createEphemeral?alt=json: Post https://acc
ounts.google.com/o/oauth2/token: proxyconnect tcp: dial tcp 192.168.56.1:8888: c
onnectex: No connection could be made because the target machine actively refuse
d it.
ounts.google.com/o/oauth2/token: proxyconnect tcp: dial tcp 192.168.56.1:8888: c
onnectex: No connection could be made because the target machine actively refuse
d it.

 
 

Taher (Cloud Platform Support)

unread,
Dec 15, 2017, 4:49:04 PM12/15/17
to Google Cloud SQL discuss

Can you let me know the below:


  1. Which OS is running on your local machine?

  2. Can you try to connect from a different network and check whether you still get the same issue?


You can also try to troubleshoot the connection by following the steps stated in this document.

Reply all
Reply to author
Forward
0 new messages