No service on port 11211 with Couchbase Server 5.x


#1

I have a strange error on an upgraded 5.x couchbase testserver.

It seems that my Memcached bucket is not available on port 11211 anymore and I’m not able to find out why. When I re-add it also no service starts running on port 11211.

Any idea ?


How to prevent moxi listening at an unauthorized port?
#2

Couchbase Data service listens on 11210 port.

Moxi has been deprecated and is not used anymore. This is why you might not see 11210.


#3

Hi,

I saw it in the Json config files indeed. So using port 11210 should work ? I also see a 11209, both are in use I see, is this an alternative one ?

Thanks!


#4

11209 port is reserved for Couchbase needs.
This page describes all ports related to the server

https://developer.couchbase.com/documentation/server/5.0/install/install-ports.html


#5

Thanks for the link and the update, it’s always good to review everything when you want to release/upgrade software @ the same time.

Strange thing is, I can connect to 11210 using telnet but using a user that has rights to the bucket I get a:

03 = MEMCACHED_CONNECTION_FAILURE

Any idea how to debug that ?


#6

Have you tried our official client libraries? 11210 unlike moxi requires from SDK extra work because requests to this port are not rerouted to other cluster nodes, so that the client have to be aware of Couchbase, and legacy memcached clients will not work.


#7

I’m confused here, why is the native php-memcached library not working, I thought it should be compatible as that is the power of it ?

For coucbase itself I’m using the SDK, which works great, but I’m not sure about the couchbase memcached libraries, so they replace the php-memcached ones ?


#8

php-memcached library written for memcached server. Although Couchbase uses memcached protocol, it provides much more features. And this is why we maintain php-couchbase module. This is the recommended SDK to be used with Couchbase in production.


#9

OK, so for software that uses memcached itself and I want to use couchbase as it’s “memcached” server I need to remove php-memcached and only install the SDK, which is already installed.

That is what is not clear to me.

php-memcached worked pretty well back the daus on 3.x and 4.x but on 5.x it fails indeed.


#10

Couchbase is not memcached. When you used Couchbase as memcached in the past you actually used moxi proxy to Couchbase which has its own performance issue being single entry point of the cluster.


#11

OK, but what is the “fix” here as the advantage was to have a replicated Memcached server which Couchbase also communicated into the public compared to normal memcached servers.

So if Moxi is deprecated, what’s the solution here then ?

I don’t see any.


#12

You can follow advice from the server release notes: use client-side moxi.

https://developer.couchbase.com/documentation/server/current/install/install-client-server.html


#13

I have read about that indeed and sounds like a plan.

Will the moxi packages be build/supported the same as for 4.x was done ?


#14

I still see it by running Docker image couchbase:5.1.1.