Thursday, February 23, 2017

[google-cloud-sql-discuss] Can only get proxy service account to work when

Hi there,

     WE are able to connect CloudSql through proxy as described in - https://cloud.google.com/sql/docs/mysql-connect-proxy, only when we are in public network. How to connect, when we are in private network from office. Below are error details while connection from private network( Connections on,  2017/02/23 are from private network ). 

E:\cloudsqlProxy\bin>cloud_sql_proxy.exe -instances=xxx:yyy:zzzz=tcp:3306 -credential_file=E:\XXXXXXXXXX.json
2017/02/22 17:27:04 using credential file for authentication; email=xxx@xxx.com
2017/02/22 17:27:04 Listening on 127.0.0.1:3306 for xxx:yyy:zzzz
2017/02/22 17:27:04 Ready for new connections
2017/02/22 17:27:11 New connection for "xxx:yyy:zzzz"
2017/02/22 17:27:13 Instance xxx:yyy:zzzz closed connection
2017/02/22 17:27:46 New connection for "xxx:yyy:zzzz"
2017/02/22 17:27:53 New connection for "xxx:yyy:zzzz"
2017/02/22 18:02:57 New connection for "xxx:yyy:zzzz"
2017/02/22 18:03:43 Client closed local connection on 127.0.0.1:3306
2017/02/23 08:57:52 Reading data from xxx:yyy:zzzz had error: read tcp <private ip>:65099->XXX.XXX.X.XX:3307: wsarecv: An established connection was aborted by the software in your host machine.
2017/02/23 08:57:52 Reading data from xxx:yyy:zzzz had error: read tcp <private ip>:65103->XXX.XXX.X.XX:3307: wsarecv: An established connection was aborted by the software in your host machine.
2017/02/23 11:01:45 New connection for "xxx:yyy:zzzz"
2017/02/23 11:01:47 couldn't connect to "xxx:yyy:zzzz": dial tcp XXX.XXX.X.XX:3307: connectex: No connection could be made because the target machine actively refused it.
2017/02/23 11:01:47 New connection for "xxx:yyy:zzzz"
2017/02/23 11:01:48 Throttling refreshCfg(xxx:yyy:zzzz): it was only called 2.106238s ago
2017/02/23 11:01:49 couldn't connect to "xxx:yyy:zzzz": dial tcp XXX.XXX.X.XX:3307: connectex: No connection could be made because the target machine actively refused it.

Thanks & Regards,
Adi

Notice:  This email is confidential and may contain copyright material of members of the Ocado Group. Opinions and views expressed in this message may not necessarily reflect the opinions and views of the members of the Ocado Group. 

 

If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses. 

 

Fetch and Sizzle are trading names of Speciality Stores Limited and Fabled is a trading name of Marie Claire Beauty Limited, both members of the Ocado Group.

 

References to the "Ocado Group" are to Ocado Group plc (registered in England and Wales with number 7098618) and its subsidiary undertakings (as that expression is defined in the Companies Act 2006) from time to time.  The registered office of Ocado Group plc is Titan Court, 3 Bishops Square, Hatfield Business Park, Hatfield, Herts. AL10 9NE.

--
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/64095b03-e5f7-489f-8bc7-06f7d72df1a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment