I have moved from 4.x to 5.0.1 and memcached buckets created as previous are no longer accessible.
Previously I would use the following curl command to create a memcached bucket:
curl -u ${USERNAME}:${PASSWORD} -v
-X POST http://${CONNECTION}/pools/default/buckets
-d threadsNumber=4
-d flushEnabled=0
-d replicaNumber=0
-d evictionPolicy=valueOnly
-d ramQuotaMB=${RAM_QUOTA}
-d bucketType=couchbase
-d name=${BUCKET_NAME}
-d authType=sasl
I have modified this command slightly for 5.0.1
curl -u ${USERNAME}:${PASSWORD} -v
-X POST http://${CONNECTION}/pools/default/buckets
-d threadsNumber=4
-d flushEnabled=0
-d replicaNumber=0
-d evictionPolicy=valueOnly
-d ramQuotaMB=${RAM_QUOTA}
-d bucketType=memcached
-d name=${BUCKET_NAME}
-d authType=none
Which will create a memcached bucket however, when I try to connect it immediately disconnects as follows:
telnet localhost 11211
Trying ::1…
Connected to localhost.
Escape character is ‘^]’.
Connection closed by foreign host.