How to restart Couchbase server on Mac OS X (Binary Package) - [Resolved]
Hello everyone, I'm new on this forum, I have a litle problem since have tried to enable vhost. Futon say me that Couchdb server must be restarted, but how do that. I have tried to restart the application, kill all process, restart my mac (I rarely do that), find a command line in the folder application, but nothing, and now, even Futon has completely crashed.
My version of the binary is 2.0.0-dev3.
Thank in advance, for your help.
PS: Sorry for my poor english, if it's no correctly write.
############ Log summary: ###############
[error] [<0.92.0>] {error_report,<0.34.0>,
{<0.92.0>,crash_report,
[[{initial_call,
{supervisor,couch_secondary_sup,['Argument__1']}},
{pid,<0.92.0>},
{registered_name,[]},
{error_info,
{exit,
{{badmatch,{error,{1,erl_parse,"bad term"}}},
[{couch_secondary_sup,'-init/1-lc$^0/1-0-',1},
{couch_secondary_sup,'-init/1-lc$^0/1-0-',1},
{couch_secondary_sup,init,1},
{supervisor,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]},
[{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}},
{ancestors,[couch_server_sup,<0.35.0>]},
{messages,[]},
{links,[<0.81.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,2584},
{stack_size,24},
{reductions,10041}],
[]]}}
=CRASH REPORT==== 19-Jul-2011::12:00:27 ===
crasher:
initial call: supervisor:couch_secondary_sup/1
pid: <0.92.0>
registered_name: []
exception exit: {{badmatch,{error,{1,erl_parse,"bad term"}}},
[{couch_secondary_sup,'-init/1-lc$^0/1-0-',1},
{couch_secondary_sup,'-init/1-lc$^0/1-0-',1},
{couch_secondary_sup,init,1},
{supervisor,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:init_it/6
ancestors: [couch_server_sup,<0.35.0>]
messages: []
links: [<0.81.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 2584
stack_size: 24
reductions: 10041
neighbours:
=CRASH REPORT==== 19-Jul-2011::12:00:27 ===
crasher:
initial call: application_master:init/4
pid: <0.34.0>
registered_name: []
exception exit: {bad_return,
{{couch_app,start,
[normal,
["/Users/dustin/work/dev/couch/preview/build/etc/couchdb/default.ini",
"/Users/dustin/work/dev/couch/preview/build/etc/couchdb/local.ini"]]},
{'EXIT',
{{badmatch,{error,shutdown}},
[{couch_server_sup,start_server,1},
{application_master,start_it_old,4}]}}}}
in function application_master:init/4
ancestors: [<0.33.0>]
messages: [{'EXIT',<0.35.0>,normal}]
links: [<0.33.0>,<0.7.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 2584
stack_size: 24
reductions: 616
neighbours:
Yes I see it reading all the .plist/ini file for the app and fix it, and another error what I do in the configuration (a syntax error ), and it work now, thank you Dustin !
For everyone that cannot access to the configuration web interface, modify the section
[query_servers]
javascript = bin/couchjs share/couchdb/server/main.js
coffeescript = bin/couchjs share/couchdb/server/main-coffee.js
in those files:
"/Users/{username}/Library/Preferences/couchbase-server.ini" (It work for me)
and maybe
"/Applications/Couchbase Server.app/Contents/Resources/couchdbx-core/etc/couchdb/default.ini That's it ! And Relax !
I'm not really an expert when it comes to matters like this but I'm pretty sure you'll be interested to read an article I found recently. It's in here: Stay perky with Caffeine Zone app
I'm the dustin who broke that for you. Sorry. :/
I fixed it around dev2, but if it already remembered the value it wouldn't help you much. I'm hoping to get time in for a retroactive fix for the next build. In the meantime, if you go into the configuration screen from the admin console ( http://127.0.0.1:5984/_utils/config.html ) and set coffeescript query_server to
bin/couchjs share/couchdb/server/main-coffee.jsit should do the right thing.