Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Memcached Server 1.0.3

membaseclient cannot connect to the remote memcache server

7 replies [Last post]
  • Login or register to post comments
Tue, 08/31/2010 - 07:11
marisha
Offline
Joined: 08/31/2010
Groups: None

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.

Top
Tue, 08/31/2010 - 08:07
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

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!

Top
Tue, 08/31/2010 - 10:01
marisha
Offline
Joined: 08/31/2010
Groups: None

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

Top
Tue, 08/31/2010 - 22:51
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

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

__________________

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!

Top
Wed, 09/01/2010 - 02:11
marisha
Offline
Joined: 08/31/2010
Groups: None

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.

Top
Wed, 09/01/2010 - 06:31
marisha
Offline
Joined: 08/31/2010
Groups: None

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?

Top
Wed, 09/01/2010 - 07:54
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

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]

__________________

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!

Top
Wed, 09/01/2010 - 08:19
marisha
Offline
Joined: 08/31/2010
Groups: None

Thank you very much for your help. It worked for us!

Top
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker