Skip to content

Instantly share code, notes, and snippets.

@stickbyatlas
Created March 16, 2013 20:49
Show Gist options
  • Save stickbyatlas/5178279 to your computer and use it in GitHub Desktop.
Save stickbyatlas/5178279 to your computer and use it in GitHub Desktop.
Error log report after making changes to CouchDB Mac binary to support GeoCouch
Notes:
When moving the ebin file into the correct location, I named it geocouch-1.2.x, because I wasn't sure what version it was. Beyond that, followed your instructions to the letter, including building GeoCouch on the exact environment (R15B03-1).
Complete log dump:
Launching '/Applications/couchdb/Apache CouchDB.app/Contents/Resources/couchdbx-core/bin/couchdb'
Eshell V5.9.3.1 (abort with ^G)
Apache CouchDB 1.2.1 (LogLevel=info) is starting.
[error] [<0.96.0>] {error_report,<0.34.0>,
{<0.96.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}]}]}}
=SUPERVISOR REPORT==== 16-Mar-2013::17:41:39 ===
Supervisor: {local,couch_secondary_services}
Context: 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}]
[error] [<0.86.0>] {error_report,<0.34.0>,
{<0.86.0>,supervisor_report,
[{supervisor,{local,couch_server_sup}},
{errorContext,start_error},
{reason,shutdown},
{offender,
[{pid,undefined},
{name,couch_secondary_services},
{mfargs,{couch_secondary_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]}]}}
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/Users/jan/build/etc/couchdb/default.ini","/Users/jan/build/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[{file,"/Users/jan/Work/build-couchdb-mac/build-couchdb/git-build/https%3A%2F%2Fgit-wip-us.apache.org%2Frepos%2Fasf%2Fcouchdb.git%3Atags%2F1.2.1/src/couchdb/couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[{file,"/Users/jan/Work/build-couchdb-mac/build-couchdb/git-build/https%3A%2F%2Fgit-wip-us.apache.org%2Frepos%2Fasf%2Fcouchdb.git%3Atags%2F1.2.1/src/couchdb/couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Terminated with status 1
@janl
Copy link

janl commented Mar 16, 2013

Looks like it can’t find the geocouch beam files. likely because my instructions are wrong. I need to try this myself to get the details right, I might get to it tomorrow.

trying on Mountain Lion will not make a difference.

Maybe try this:

put the contents of geocouch/ebin into Apache CouchDB.app/Contents/Resources/couchdbx-core/lib/couchdb/erlang/lib/couch-1.2.1/ebin/

@janl
Copy link

janl commented Mar 16, 2013

Let’s keep discussion here to avoid polluting twitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment