Mac OS X Installation Issue - Server is not coming up

I installed Couchbase community server 4.0 as per the installation steps.

And did initial setup through admin console ( all with default values ).

After that, I am unable to login into the server, through “Lost connecting to the server” message while logging in.

Please find the below startup logs from the server…, pls help.

[stats:error,2016-03-03T12:42:24.271+05:30,ns_1@10.209.101.247:query_stats_collector<0.4075.0>:base_stats_collector:handle_info:109](Collector: query_stats_collector) Exception in stats collector: {error,
{badmatch,
{error,
{econnrefused,
[{lhttpc_client,
send_request,
1,
[{file,
"/Users/jenkins/jenkins/workspace/sherlock-unix/couchdb/src/lhttpc/lhttpc_client.erl"},
{line,
220}]},
{lhttpc_client,
execute,
9,
[{file,
"/Users/jenkins/jenkins/workspace/sherlock-unix/couchdb/src/lhttpc/lhttpc_client.erl"},
{line,
169}]},
{lhttpc_client,
request,
9,
[{file,
"/Users/jenkins/jenkins/workspace/sherlock-unix/couchdb/src/lhttpc/lhttpc_client.erl"},
{line,
92}]}]}}},
[{query_rest,
send,3,
[{file,
“src/query_rest.erl”},
{line,
64}]},
{query_rest,
do_get_stats,
0,
[{file,
“src/query_rest.erl”},
{line,
43}]},
{base_stats_collector,
handle_info,
2,
[{file,
“src/base_stats_collector.erl”},
{line,
89}]},
{gen_server,
handle_msg,
5,
[{file,
“gen_server.erl”},
{line,
604}]},
{proc_lib,
init_p_do_apply,
3,
[{file,
“proc_lib.erl”},
{line,
239}]}]}

[error_logger:info,2016-03-03T12:42:24.272+05:30,ns_1@10.209.101.247:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================INFO REPORT=========================
{net_kernel,{connect,normal,‘couchdb_ns_1@127.0.0.1’}}
[error_logger:info,2016-03-03T12:42:24.273+05:30,ns_1@10.209.101.247:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================INFO REPORT=========================
{net_kernel,{‘EXIT’,<0.4341.0>,shutdown}}
[ns_server:debug,2016-03-03T12:42:24.273+05:30,ns_1@10.209.101.247:<0.4127.0>:ns_couchdb_api:rpc_couchdb_node:161]RPC to couchdb node failed for {fetch_couch_stats,“default”} with {badrpc,
nodedown}
Stack: [{ns_couchdb_api,rpc_couchdb_node,4,
[{file,“src/ns_couchdb_api.erl”},{line,160}]},
{stats_collector,grab_stats,1,
[{file,“src/stats_collector.erl”},{line,69}]},
{base_stats_collector,handle_info,2,
[{file,“src/base_stats_collector.erl”},
{line,89}]},
{gen_server,handle_msg,5,[{file,“gen_server.erl”},{line,604}]},
{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,239}]}]
[error_logger:info,2016-03-03T12:42:24.273+05:30,ns_1@10.209.101.247:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================INFO REPORT=========================
{net_kernel,{net_kernel,875,nodedown,‘couchdb_ns_1@127.0.0.1’}}
[ns_server:info,2016-03-03T12:42:24.273+05:30,ns_1@10.209.101.247:<0.4127.0>:stats_collector:grab_stats:72]Failed to fetch couch stats:
{‘EXIT’,{error,{badrpc,nodedown}}}
^C[ns_server:debug,2016-03-03T12:42:24.593+05:30,ns_1@10.209.101.247:<0.2.0>:child_erlang:child_loop:124]Got EOF
EOF. Exiting
[ns_server:debug,2016-03-03T12:42:24.594+05:30,ns_1@10.209.101.247:<0.3917.0>:misc:delaying_crash:1623]Delaying crash exit:{{nodedown,‘babysitter_of_ns_1@127.0.0.1’},
{gen_server,call,
[{ns_crash_log,‘babysitter_of_ns_1@127.0.0.1’},
consume,infinity]}} by 1000ms
Stacktrace: [{gen_server,call,3,[{file,“gen_server.erl”},{line,188}]},
{ns_log,crash_consumption_loop,0,
[{file,“src/ns_log.erl”},{line,63}]},
{misc,delaying_crash,2,[{file,“src/misc.erl”},{line,1620}]},
{proc_lib,init_p,3,[{file,“proc_lib.erl”},{line,224}]}]
[ns_server:debug,2016-03-03T12:42:24.595+05:30,ns_1@10.209.101.247:<0.4042.0>:remote_monitors:monitor_loop:129]Monitored remote process <11489.79.0> went down with: noconnection
[ns_server:debug,2016-03-03T12:42:24.595+05:30,ns_1@10.
logout

[Process completed]

Hey @rajamuthukumaran,

What version of Mac OS X are you using and did you make sure to download the matching version whether it be El Capitan or other?

Best,

@nraboy
Same here.
I’ve downloaded a correct Mac OS version (El Capitan). I can neither open an admin panel (i.e. i get http://127.0.0.1:8091/ with page unavailable) nor put a checkbox on “Automatically start at login”.

For context - before I had 4.5DP, however removed following installation instructions.

Hello,

Any updates on this? I am facing the same issue, 4.1 on El Capitan.

Hi @rajeevmbhat, which version of couchbase server are you installing? 4.1 or 4.5?
are you able to start couchbase after you move the package to the applications? and finally, could you run a netstat -al and provide the output?
thanks
-cihan

Hi,
using 4.1. I also went down to 4.0, still same issue.
I tried both in Applications and in my download area; the problem is consistent.

Currently testing: Version 4.1.0-5005 in Applications.

can’t upload doc since “new users cannot upload documents”, so copying data here:

netstat -al | grep 8091
tcp4 0 0 *.18091 . LISTEN
tcp4 0 0 localhost.8091 localhost.63686 ESTABLISHED
tcp4 0 0 localhost.8091 localhost.63685 ESTABLISHED
tcp4 0 0 localhost.63686 localhost.8091 ESTABLISHED
tcp4 0 0 localhost.63685 localhost.8091 ESTABLISHED
tcp4 0 0 localhost.8091 localhost.63684 ESTABLISHED
tcp4 0 0 localhost.63684 localhost.8091 ESTABLISHED
tcp4 0 0 localhost.8091 localhost.63683 ESTABLISHED
tcp4 0 0 localhost.63683 localhost.8091 ESTABLISHED
tcp4 0 0 localhost.8091 localhost.63676 ESTABLISHED
tcp4 0 0 localhost.63676 localhost.8091 ESTABLISHED
tcp4 0 0 *.8091 . LISTEN

curl http://127.0.0.1:8091/

301 Moved Permanently

Moved Permanently

The document has moved <a href="http://127.0.0.1:8091/index.html>here</a>.</p></body></html>

@channel

Guys, any updates? Still an issue!

Hi @dennis so you followed the steps here to uninstall older version and install newer vesion and still facing this issue correct? and this is on El Capitan?

We have an existing bug to fix this uninstall issue on MAC here MB-20218 but in case if you think this not the same issue can please file new JIRA issue and add details?

Anil Kumar

I encountered the same issue and executing the command as instructed did not work because the folder being deleted in user’s home directory “~/Library…” but my previous installation is in Applications folder.

Changing the path of directory being deleted to ROOT solves the problem:

  • rm -rf /Library/Application\ Support/Membase
  • rm -rf ~/Library/Application\ Support/Couchbase

Thanks!