Reset-admin-password returns ERROR no localtoken


Would someone help me understand why I’m getting this error? I’m using Couchbase 5.1.1 CE.

This is the command I’m using:

./couchbase-cli reset-admin-password -c ‘localhost:8091’ --new-password ‘my_password’

This is the error I’m getting:

ERROR: No such file or directory /home/server/opt/couchbase/var/lib/couchbase/localtoken


Hi Hyling,
Thanks for using our product.
I have a question. What Couchbase Server you are running now?
By default, reset password only runs in localhost. So you don’t need to pass ‘localhost’ param.
Here is an example code I ran it in Couchbase Server 6.0.0 Enterprise Edition

./couchbase-cli reset-admin-password --new-password password1
SUCCESS: Administrator password changed
[root@s44015 bin]#

If you still have issue with reset password, drop me a line to thuan at couchbase dot com