Wednesday, December 13, 2017

[google-cloud-sql-discuss] No connection could be made because the target machine actively refuse d it.

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.
2017/12/14 11:14:50 couldn't connect to instance-connection-nameXXXXXXXX: Post https://www.googleapis.com/sql/v1beta4/projects/procet_id-XXXXXX/instances/instance_name-XXXXX/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.

 
 

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/3c0c40f7-7ef5-470b-887a-78d4856841ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment