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

build with geocouch plugin failing on centos 6.3 #70

Open
breathe opened this issue Feb 5, 2013 · 2 comments
Open

build with geocouch plugin failing on centos 6.3 #70

breathe opened this issue Feb 5, 2013 · 2 comments

Comments

@breathe
Copy link

breathe commented Feb 5, 2013

build-couchdb with geocouch plugin is producing a non-functioning couchdb for me on centos-6.3 ...

building with

PLUGIN="git://github.com/couchbase/geocouch origin/couchdb1.2.x"
rake plugin="$PLUGIN"

$ ./build-couchdb/build/bin/couchdb
Apache CouchDB 1.2.1 (LogLevel=info) is starting.
[error] [<0.93.0>] {error_report,<0.31.0>,
{<0.93.0>,supervisor_report,
[{supervisor,{local,couch_secondary_services}},
{errorContext,start_error},
{reason,
{'EXIT',
{undef,
[{couch_spatial,start_link,[],[]},
{supervisor,do_start_child,2,
[{file,"supervisor.erl"},{line,303}]},
{supervisor,start_children,3,
[{file,"supervisor.erl"},{line,287}]},
{supervisor,init_children,2,
[{file,"supervisor.erl"},{line,253}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,304}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]}}},
{offender,
[{pid,undefined},
{name,spatial_manager},
{mfargs,{couch_spatial,start_link,[]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]}]}}
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/home/ncohen/build-dryit/rhel6/build-couchdb/build-couchdb/build/etc/couchdb/default.ini","/home/ncohen/build-dryit/rhel6/build-couchdb/build-couchdb/build/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[{file,"/home/ncohen/build-dryit/rhel6/build-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[{file,"/home/ncohen/build-dryit/rhel6/build-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/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 ()

@breathe
Copy link
Author

breathe commented Feb 5, 2013

a closer look shows that this is the same problem reported here:

#60

It doesn't seem very 'batteries included' for this to be a problem with the build ... The only workaround I could figure that keeps compatibility with other built components (eg init.d script) -- is to move the couchdb script to _couchhack and generate a wrapper which calls couchdb with the correct ERL_FLAGS set ...

Can there be a better way ...?

@jhs
Copy link
Member

jhs commented Feb 6, 2013

Yes, this is a pain point.

I will merge in the changes I made long ago which make CouchDB search for its own plugins.

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

2 participants