membaseclient cannot connect to the remote memcache server
Hello,
I have a very weird kind of a issue. I am using MembaseClient, If I have the client and the server on the same machine, my program runs fine, and I am able to store and retrieve objects. But if I try to connect to the remote memcache server from app.config, It does not connect.
I have checked the firewall on both my server and client, and checked all the ports. They are all correctly set up. I still don't know what is missing to be able to connect it to the remote server.
My app.config looks like this:
<?xml version="1.0" encoding="utf-8" ?>
kindly suggest.
Thanks.
Hi Perry,
I used telnet to the server and port, and typed "stats" and also could see some stats coming up. Also, I tried providing username/pwd and made it secured. But still doesn't work.
Do you have any other suggestions?
Thanks,
Marisha
Okay, so the server itself is running properly. Just to confirm, did you telnet to the server from the same client machine that is running the problematic application? That will just confirm there is no barrier in connectivity...
I assume you also put that username and password into the app.config in the appropriate section?
Can you provide some more information on the problem that you are seeing? Is the client throwing an exception or returning an error?
Perry
Hi Perry,
Yes I telnet to the server from the client machine(running problematic application). Yes I did keep the username and pwd in apt. section.
my app.config looks like this:
<?xml version="1.0" encoding="utf-8" ?>
My application is unable to store the key-value, and henceforth, when I try to retrieve the key-value, it throws me an exception in the program.
Kindly advice.
Hi Perry,
I think we found the problem. The problem is exactly as you talked about in this post: [url]http://forums.northscale.com/showthread.php?327-Using-NorthScale-Memcached-Server-on-Amazon-EC2-instance&highlight=internal[/url]
The problem is that after install the server is showing up on it's internal network IP rather than on the external IP, so is not routable. Do you know how I can change the IP that is being picked up by the northscale server?
Ahh yes...I would have gotten there eventually ;-)
You should be able to "register" the correct address by following the steps in the second post of this thread: [url]http://forums.northscale.com/showthread.php?10-Windows-2008-NLB-cluster[/url]
Thank you very much for your help. It worked for us!
Let's start from the top, are you sure that the server is running on the remote machine?
Can you telnet to it on port 11211 and type 'stats'?
If that is working and running, we've also seen an issue where not having a username/password supplied for the server creates problems connecting ([url]http://forums.northscale.com/showthread.php?451-Specifying-bucket-causes-Object-null-exception[/url])
Perry
Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!