You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Nathan Vander Wilt <na...@calftrail.com> on 2014/07/02 02:53:01 UTC

badmatch on initial config file password

I am trying to set up CouchDB from a script, which makes a couch.ini config file that includes this line:


[admins]
admin = password

On my local machine with CouchDB 1.5.0 that gets automatically hashed on first launch. However, when another developer on the project tries to start CouchDB 1.6.0 on his machine, he gets:

$ couchdb -a local_data/couch.ini -o /dev/null -e local_data/logs/couch.stderr
Apache CouchDB 1.6.0 (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,couch_server,{function_clause,[{couch_passwords,hash_admin_password,["password"],[{file,"couch_passwords.erl"},{line,30}]},{couch_server,'-hash_admin_passwords/1-fun-0-',2,[{file,"couch_server.erl"},{line,148}]},{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},{couch_server,init,1,[{file,"couch_server.erl"},{line,172}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()


Has this behavior changed in CouchDB 1.6.0? Is there a way to set a password via plaintext config anymore?

thanks,
-natevw