Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem building couchdb with dreyfus and hastings for version couchdb 2.2.0 #30

Open
WillemvdW opened this issue Aug 20, 2018 · 2 comments

Comments

@WillemvdW
Copy link

Has anybody been able to build couchdb 2.2.0 with the dreyfus and closeau baked in to do text search?

When I try to do it I get the following error
{error,badfile} = load_app_module(dreyfus_rpc)
{error,badfile} = load_app_module(dreyfus_sup)
{error,badfile} = load_app_module(dreyfus_util)
{"init terminating in do_boot",{{error,{bad_return,{{couch_epi_app,start,[normal,[]]},{'EXIT',{undef,[{couch_epi_app,start,[normal,[]],[]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,273}]}]}}}}},[{boot_node,start_app,3,[{file,"dev/boot_node.erl"},{line,134}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{boot_node,start_app,3,[{file,"dev/boot_node.erl"},{line,124}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}

init terminating in do_boot ()Crash dump is being written to: erl_crash.dump...done
I used esl-erlang_19.3.6-1centos7_amd64.rpm together with the source download for couchdb
there are no errors in the make or make release stages

If we use esl-erlang_18.3.4-1centos7_amd64.rpm then the error is slightly different.

{"init terminating in do_boot",{{error,{{shutdown,{failed_to_start_child,"couch_epi|dreyfus:black_list|keeper",{function_clause,[{couch_epi_data,definitions,[{callback_module,dreyfus_config}],[{file,"src/couch_epi_data.erl"},{line,98}]},{couch_epi_data,collect_data,2,[{file,"src/couch_epi_data.erl"},{line,44}]},{lists,foldl,3,[{file,"lists.erl"},{line,1262}]},{couch_epi_data,data,1,[{file,"src/couch_epi_data.erl"},{line,32}]},{couch_epi_module_keeper,do_reload_if_updated,1,[{file,"src/couch_epi_module_keeper.erl"},{line,116}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}}},{couch_epi_app,start,[normal,[]]}}},[{boot_node,start_app,3,[{file,"dev/boot_node.erl"},{line,134}]},{lists,foldl,3,[{file,"lists.erl"},{line,1262}]},{boot_node,start_app,3,[{file,"dev/boot_node.erl"},{line,124}]},{lists,foldl,3,[{file,"lists.erl"},{line,1262}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

@jiangphcn
Copy link
Contributor

Do you use the latest commit in dreyfus? It looks that b9805be is related to blacklist. Try to use commit before this.

@brlanier
Copy link

brlanier commented Nov 9, 2018

I came across this same issue on a new install of couchdb 2.2.0. Same error.
Was using commit 9ab3010 and got same error. Following suggestion above, I switched to using commit df88b1c and I was able to successfully start couchdb. This was done under erlang installed from OTP repo using 1:20.3.8.7-1 on Ubuntu 14.04. Similar but slightly different error when it wasn't working

"Kernel pid terminated",application_controller,"{application_start_failure,couch_epi,{{shutdown,{failed_to_start_child,"couch_epi|dreyfus:black_list|keeper",{function_clause,[{couch_epi_data,definitions,[{callback_module,dreyfus_config}],[{file,"src/couch_epi_data.erl"},{line,98}]},{couch_epi_data,collect_data,2,[{file,"src/couch_epi_data.erl"},{line,44}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{couch_epi_data,data,1,[{file,"src/couch_epi_data.erl"},{line,32}]},{couch_epi_module_keeper,do_reload_if_updated,1,[{file,"src/couch_epi_module_keeper.erl"},{line,116}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,365}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,333}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}}},{couch_epi_app,start,[normal,[]]}}}"}

I have not tried to configure the node or tested the dreyfus is working yet. But I can at least get couchdb to start as a service. I have successfully run this same setup under 2.0.0 and 2.1.0 (different versions of dreyfus, but usually the latest at time I went to compile.)

Can provide more info if needed or test something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants