Recover Couchbase Administrator Password

Using the built-in Erlang shell on Couchbase, we are going to decode the configuration to retrieve/recover the administrator’s password.

/opt/couchbase/bin/erl -noinput -eval '
case file:read_file("/opt/couchbase/var/lib/couchbase/config/config.dat") of
    {ok, B} -> io:format("~p~n", [binary_to_term(B)])
' -run init stop | grep cred
About the Author
Freelance Linux DevOps Engineer, Loves to scale things and make stacks intelligent

Leave a Reply


captcha *