I have setup a Couchbase Community Server 4.5.1 (Linux Debian jessie) with a couchbase bucket named “btest” on standard port 11211 (with password “mypass”, as it seems that Dedicated port are deprecated…).
Now I am trying to setup moxi in order to access my bucket using a simple memcached protocol.
I want moxi to run on localhost too (for testing purpose), on port 11212.
moxi is not very well documented I think, and I am not sure how to setup moxi for my use case…
If I run moxi like this:
./moxi -z 11212=localhost:11211
I logically receive an “auth_error” as I didn’t specify the bucket password.
~# telnet 127.0.0.1 11212 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. set key 0 900 4 data SERVER_ERROR a2b auth_error
How can I specify the couchbase bucket password in the moxi configuration flags?
The only way to make it work for me was to specify the “Administrator” user using a http/rest-based url:
./moxi -Z usr=Administrator,pwd=myadminpass,port_listen=11212 http://127.0.0.1:8091/pools/default/bucketsStreaming/btest
~# telnet 127.0.0.1 11212 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. set key 0 900 4 data STORED
I think I missed something with moxi ou Couchbase bucket usage…