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)]) end. ' -run init stop | grep cred