Hey Bhaskar,

This forum is meant for more general, high-level discussion of the platform 
and services, and programming with App Engine, and specific-issue posts of 
this nature are considered off-topic. You should really post a question 
like this to a website designed for the purpose, such as Stack Overflow, 
which we also monitor. Over there, you'll find a much larger user-base and 
you'll be much more likely to get useful responses. 

Just some advice before you post there: it seems as though your issue is 
not adequately explained in your post. Consider attempting to reason about 
the problem as somebody with no access to your system other than the 
information in the post, and you might realize how difficult and limiting 
it is to debug from the other side of the internet. 

Even just some simple links can help improve a question - linking to 
Aerospike's 
documentation for Go connections 
<http://www.aerospike.com/docs/client/go/usage/connect/> as a start. Also, 
what "unable to connect" means in this context is highly important. Is 
there any error output? Have you checked the logs on your instance?

It seems as though the ultimate problem here is not being familiar with the 
platform you're building on. App Engine limits runtimes from making 
arbitrary port connections 
<https://cloud.google.com/appengine/docs/go/runtime#Go_The_sandbox>, which 
is certainly something that will be needed to run a line like: 

 _, err := NewClient("10.240.0.3", 3000)

So, it seems that you might want to deploy your application as a Managed VM 
<https://cloud.google.com/appengine/docs/managed-vms/> using the go 
runtime. This will allow your code to make arbitrary port connections. 
That, or use a GCE instance which can connect on its network interface as a 
proxy to your Aerospike DB.

On Tuesday, December 15, 2015 at 11:42:18 PM UTC-5, Bhaskar rao wrote:
>
> Hello,
>
> I am new to Golang and created an aerospike instance in google cloud from 
> one of the projects in app engine.
>
> I tried to connect to the database using 
>
>   _, err := NewClient("10.240.0.3", 3000)
>
>
> I also tried localhost as well as external ip provided by golang. But 
> unable to connect.
>
> Note that it is not golang/gingonic code issue as I was able to connect in 
> my local system to a remote aerospike database that I installed in digital 
> ocean.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/a05daf2b-86e2-4918-bbf5-bb13f5d92910%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to