Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Resetting password for Couchbase web administrative console

9 replies [Last post]
  • Login or register to post comments
Thu, 03/22/2012 - 23:32
manojpcw
Offline
Joined: 03/22/2012
Groups: None

I forgot the password for the web console. How do I reset the password? I am on Windows.

Top
  • Login or register to post comments
Fri, 03/23/2012 - 03:24
manojpcw
Offline
Joined: 03/22/2012
Groups: None

Acutally the password seems to be saved in plain text in config.dat file! Is this really a good practice?

Top
  • Login or register to post comments
Fri, 03/23/2012 - 13:26
ingenthr
Offline
Joined: 03/16/2010
Groups:

The file's permissions only allow authorized users to view it. We agree though that it should be stored with stronger security. There is an open issue on this.

Top
  • Login or register to post comments
Sat, 03/24/2012 - 11:00
dipti
Offline
Joined: 11/02/2011
Groups:

The password can be changed using the couchbase-cli tool.

shell> ./couchbase-cli cluster-init -c 127.0.0.1:8091 --user=[CURRENT_USERNAME] --password=[CURRENT_PASSWORD] --cluster-init-username=[NEW_USERNAME] --cluster-init-password=[NEW_PASSWORD]

SUCCESS: init 127.0.0.1

More details about the couchbase-cli tool can be found here: www.couchbase.com/docs/couchbase-manual-1.8/couchbase-admin-cmdline-couc...

Top
  • Login or register to post comments
Mon, 03/26/2012 - 14:58
ingenthr
Offline
Joined: 03/16/2010
Groups:

Dipti: changing the password is different from resetting it though. I thought that's what was being asked about.

Top
  • Login or register to post comments
Wed, 03/28/2012 - 07:54
dipti
Offline
Joined: 11/02/2011
Groups:

We currently don't have a way to reset the password using cli. We have an enhancement request open.

Top
  • Login or register to post comments
Tue, 06/26/2012 - 20:45
ingenthr
Offline
Joined: 03/16/2010
Groups:

One current workaround is to stop the current server, copy out (or just cp -l) data files, uninstall, install, set up, cp -l data files back and create again the same bucket(s). It will honor the data files there.

Top
  • Login or register to post comments
Mon, 07/30/2012 - 23:09
joeycruz
Offline
Joined: 07/30/2012
Groups: None

Hi,

i have tried that and looks like they read a command like bash. Here is the output

./couchbase-cli cluster-init -c localhost:8091 --user=Administrator --password=c3nt0s!2345 --cluster-init-username=administrator --cluster-init-password=golive
-bash: !2345: event not found

Please help me regarding this..is my command is right?or is it not?

Top
  • Login or register to post comments
Wed, 08/01/2012 - 07:09
chris_stclair
chris_stclair's picture
Offline
Joined: 07/16/2012
Groups: None

You'll probably need to escape that '!' in your password.

Top
  • Login or register to post comments
Wed, 09/12/2012 - 20:14
dipti
Offline
Joined: 11/02/2011
Groups:

Path: /opt/couchbase/bin

Command: ./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

{rest_creds,
{creds,[{"a",[{password,"passwd"}]}]}]},

userid is "a"
password is "passwd"

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker