High Sierra, 5.0.0, problem starting Couchbase

I started with a fresh install of High Sierra (formatted drive, fresh install)

I have tried several different versions including the 5.0.0 build.

In all cases, in the error.log I am getting:
[ns_server:error,2017-09-29T09:39:40.441-04:00,ns_1@127.0.0.1:wait_link_to_couchdb_node<0.196.0>:ns_server_nodes_sup:do_wait_link_to_couchdb_node:163]ns_couchdb_port(<0.195.0>) died with reason {abnormal,139}

And I am seeing the following repeated in the babysitter.log file:
[ns_server:debug,2017-09-29T09:48:43.558-04:00,babysitter_of_ns_1@127.0.0.1:<0.679.0>:restartable:start_child:98]Started child process <0.680.0>
MFA: {supervisor_cushion,start_link,
[ns_server,5000,infinity,ns_port_server,start_link,
[#Fun<ns_child_ports_sup.4.124464978>]]}
[error_logger:error,2017-09-29T09:48:43.558-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================CRASH REPORT=========================
crasher:
initial call: ns_port_server:init/1
pid: <0.676.0>
registered_name:
exception exit: {abnormal,1}
in function gen_server:terminate/6 (gen_server.erl, line 744)
ancestors: [<0.675.0>,<0.674.0>,child_ns_server_sup,ns_babysitter_sup,
<0.59.0>]
messages: [{#Port<0.4271>,eof}]
links: [<0.675.0>,#Port<0.4271>]
dictionary:
trap_exit: true
status: running
heap_size: 10958
stack_size: 27
reductions: 1044
neighbours:

[error_logger:error,2017-09-29T09:48:43.558-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]** Generic server <0.675.0> terminating
** Last message in was {die,{abnormal,1}}
** When Server state == {state,ns_server,5000,
{1506,692918,417922},
undefined,infinity}
** Reason for termination ==
** {abnormal,1}

[error_logger:error,2017-09-29T09:48:43.559-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================CRASH REPORT=========================
crasher:
initial call: supervisor_cushion:init/1
pid: <0.675.0>
registered_name:
exception exit: {abnormal,1}
in function gen_server:terminate/6 (gen_server.erl, line 744)
ancestors: [<0.674.0>,child_ns_server_sup,ns_babysitter_sup,<0.59.0>]
messages:
links: [<0.674.0>]
dictionary:
trap_exit: true
status: running
heap_size: 233
stack_size: 27
reductions: 1893
neighbours:

[error_logger:error,2017-09-29T09:48:43.559-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================CRASH REPORT=========================
crasher:
initial call: erlang:apply/2
pid: <0.674.0>
registered_name:
exception exit: {abnormal,1}
in function restartable:loop/4 (src/restartable.erl, line 69)
ancestors: [child_ns_server_sup,ns_babysitter_sup,<0.59.0>]
messages:
links: [<0.74.0>]
dictionary:
trap_exit: true
status: running
heap_size: 10958
stack_size: 27
reductions: 1328
neighbours:

[error_logger:error,2017-09-29T09:48:43.560-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================SUPERVISOR REPORT=========================
Supervisor: {local,child_ns_server_sup}
Context: child_terminated
Reason: {abnormal,1}
Offender: [{pid,<0.674.0>},
{name,
{ns_server,
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/lib/erlang/bin/erl”,
["+A",“16”,"-smp",“enable”,"+sbt",“u”,"+P",“327680”,
“+K”,“true”,"+swt",“low”,"+MMmcs",“30”,"+e102400",
“-setcookie”,“nocookie”,"-kernel",
“inet_dist_listen_min”,“21100”,
“inet_dist_listen_max”,“21299”,“error_logger”,
“false”,"-sasl",“sasl_error_logger”,“false”,
“-nouser”,"-run",“child_erlang”,“child_start”,
“ns_bootstrap”,"–","-couch_ini",
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchdb/default.ini”,
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchdb/default.d/capi.ini”,
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchdb/default.d/geocouch.ini”,
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchdb/local.ini”,
“/Users/ben/Library/Preferences/couchbase-server.ini”,
“/Users/ben/Library/Application Support/Couchbase/etc/couch-platform.ini”,
“/Users/ben/Library/Application Support/Couchbase/etc/couch-custom.ini”],
[ns_server_no_stderr_to_stdout,
{env,
[{“NS_SERVER_BABYSITTER_COOKIE”,
“mkrlbjitkqrbknvp”},
{“NS_SERVER_BABYSITTER_PID”,“15259”},
{“CHILD_ERLANG_ENV_ARGS”,
“[{kernel,\n [{inet_dist_listen_min,21100},\n {inet_dist_listen_max,21299},\n {included_applications,},\n {error_logger,tty}]},\n {sasl,\n [{errlog_type,all},{included_applications,},{sasl_error_logger,false}]},\n {ns_babysitter,\n [{included_applications,},\n {cookiefile,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/couchbase-server.cookie”}]},\n {ns_server,\n [{pidfile,\n “/Users/ben/Library/Application Support/Couchbase/couchbase-server.pid”},\n {dont_suppress_stderr_logger,true},\n {max_t,10},\n {cookiefile,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/couchbase-server.cookie-ns-server”},\n {included_applications,},\n {loglevel_cluster,debug},\n {path_config_libdir,\n “/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/lib”},\n {path_config_tmpdir,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/tmp”},\n {loglevel_stderr,info},\n {loglevel_ns_server,debug},\n {loglevel_access,info},\n {loglevel_error_logger,debug},\n {loglevel_xdcr,debug},\n {path_config_secdir,\n “/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/security”},\n {loglevel_mapreduce_errors,debug},\n {loglevel_ns_doctor,debug},\n {loglevel_default,debug},\n {disk_sink_opts_xdcr_trace,\n [{rotation,[{compress,false},{size,83886080},{num_files,5}]}]},\n {loglevel_stats,debug},\n {config_path,\n “/Users/ben/Library/Application Support/Couchbase/etc/couchbase/static_config”},\n {loglevel_user,debug},\n {error_logger_mf_dir,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/logs”},\n {path_config_etcdir,\n “/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchbase”},\n {nodefile,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/couchbase-server.node”},\n {path_config_bindir,\n “/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin”},\n {net_kernel_verbosity,10},\n {max_r,20},\n {loglevel_rebalance,debug},\n {loglevel_menelaus,debug},\n {disk_sink_opts,\n [{rotation,\n [{compress,true},\n {size,41943040},\n {num_files,10},\n {buffer_size_max,52428800}]}]},\n {loglevel_views,debug},\n {path_config_datadir,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase”},\n {loglevel_xdcr_trace,error},\n {loglevel_couchdb,info}]}]”}]},
exit_status,use_stdio,stream,eof]}},
{mfargs,
{restartable,start_link,
[{supervisor_cushion,start_link,
[ns_server,5000,infinity,ns_port_server,
start_link,
[#Fun<ns_child_ports_sup.4.124464978>]]},
86400000]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,worker}]

[error_logger:info,2017-09-29T09:48:43.560-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================PROGRESS REPORT=========================
supervisor: {local,child_ns_server_sup}
started: [{pid,<0.679.0>},
{name,
{ns_server,
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/lib/erlang/bin/erl”,
["+A",“16”,"-smp",“enable”,"+sbt",“u”,"+P",
“327680”,"+K",“true”,"+swt",“low”,"+MMmcs",
“30”,"+e102400","-setcookie",“nocookie”,
“-kernel”,“inet_dist_listen_min”,“21100”,
“inet_dist_listen_max”,“21299”,“error_logger”,
“false”,"-sasl",“sasl_error_logger”,“false”,
“-nouser”,"-run",“child_erlang”,“child_start”,
“ns_bootstrap”,"–","-couch_ini",
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchdb/default.ini”,
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchdb/default.d/capi.ini”,
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchdb/default.d/geocouch.ini”,
“/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchdb/local.ini”,
“/Users/ben/Library/Preferences/couchbase-server.ini”,
“/Users/ben/Library/Application Support/Couchbase/etc/couch-platform.ini”,
“/Users/ben/Library/Application Support/Couchbase/etc/couch-custom.ini”],
[ns_server_no_stderr_to_stdout,
{env,
[{“NS_SERVER_BABYSITTER_COOKIE”,
“mkrlbjitkqrbknvp”},
{“NS_SERVER_BABYSITTER_PID”,“15259”},
{“CHILD_ERLANG_ENV_ARGS”,
“[{kernel,\n [{inet_dist_listen_min,21100},\n {inet_dist_listen_max,21299},\n {included_applications,},\n {error_logger,tty}]},\n {sasl,\n [{errlog_type,all},{included_applications,},{sasl_error_logger,false}]},\n {ns_babysitter,\n [{included_applications,},\n {cookiefile,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/couchbase-server.cookie”}]},\n {ns_server,\n [{pidfile,\n “/Users/ben/Library/Application Support/Couchbase/couchbase-server.pid”},\n {dont_suppress_stderr_logger,true},\n {max_t,10},\n {cookiefile,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/couchbase-server.cookie-ns-server”},\n {included_applications,},\n {loglevel_cluster,debug},\n {path_config_libdir,\n “/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/lib”},\n {path_config_tmpdir,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/tmp”},\n {loglevel_stderr,info},\n {loglevel_ns_server,debug},\n {loglevel_access,info},\n {loglevel_error_logger,debug},\n {loglevel_xdcr,debug},\n {path_config_secdir,\n “/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/security”},\n {loglevel_mapreduce_errors,debug},\n {loglevel_ns_doctor,debug},\n {loglevel_default,debug},\n {disk_sink_opts_xdcr_trace,\n [{rotation,[{compress,false},{size,83886080},{num_files,5}]}]},\n {loglevel_stats,debug},\n {config_path,\n “/Users/ben/Library/Application Support/Couchbase/etc/couchbase/static_config”},\n {loglevel_user,debug},\n {error_logger_mf_dir,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/logs”},\n {path_config_etcdir,\n “/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchbase”},\n {nodefile,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase/couchbase-server.node”},\n {path_config_bindir,\n “/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin”},\n {net_kernel_verbosity,10},\n {max_r,20},\n {loglevel_rebalance,debug},\n {loglevel_menelaus,debug},\n {disk_sink_opts,\n [{rotation,\n [{compress,true},\n {size,41943040},\n {num_files,10},\n {buffer_size_max,52428800}]}]},\n {loglevel_views,debug},\n {path_config_datadir,\n “/Users/ben/Library/Application Support/Couchbase/var/lib/couchbase”},\n {loglevel_xdcr_trace,error},\n {loglevel_couchdb,info}]}]”}]},
exit_status,use_stdio,stream,eof]}},
{mfargs,
{restartable,start_link,
[{supervisor_cushion,start_link,
[ns_server,5000,infinity,ns_port_server,
start_link,
[#Fun<ns_child_ports_sup.4.124464978>]]},
86400000]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,worker}]

[error_logger:info,2017-09-29T09:48:45.845-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================INFO REPORT=========================
{net_kernel,{‘EXIT’,<0.682.0>,connection_closed}}
[ns_server:info,2017-09-29T09:48:46.552-04:00,babysitter_of_ns_1@127.0.0.1:<0.681.0>:ns_port_server:log:210]ns_server<0.681.0>: {“Kernel pid terminated”,application_controller,"{application_start_failure,ns_server,{{shutdown,{failed_to_start_child,ns_server_nodes_sup,{shutdown,{failed_to_start_child,wait_for_couchdb_node,{abnormal,139}}}}},{ns_server,start,[normal,]}}}"}

[ns_server:debug,2017-09-29T09:48:48.820-04:00,babysitter_of_ns_1@127.0.0.1:ns_crash_log<0.70.0>:ns_crash_log:handle_cast:63]Dropping oldest unconsumed crash: {ns_server,1,
“{“Kernel pid terminated”,application_controller,”{application_start_failure,ns_server,{{shutdown,{failed_to_start_child,ns_server_nodes_sup,{shutdown,{failed_to_start_child,wait_for_couchdb_node,{abnormal,139}}}}},{ns_server,start,[normal,]}}}"}"}
[ns_server:info,2017-09-29T09:48:48.820-04:00,babysitter_of_ns_1@127.0.0.1:<0.680.0>:supervisor_cushion:handle_info:58]Cushion managed supervisor for ns_server failed: {abnormal,1}
[error_logger:error,2017-09-29T09:48:48.820-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]** Generic server <0.681.0> terminating
** Last message in was {#Port<0.4274>,{exit_status,1}}
** When Server state == {state,#Port<0.4274>,ns_server,
{["{“Kernel pid terminated”,application_controller,"{application_start_failure,ns_server,{{shutdown,{failed_to_start_child,ns_server_nodes_sup,{shutdown,{failed_to_start_child,wait_for_couchdb_node,{abnormal,139}}}}},{ns_server,start,[normal,]}}}"}",
empty,empty],
[empty,empty]},
undefined,undefined,,0}
** Reason for termination ==
** {abnormal,1}

[error_logger:error,2017-09-29T09:48:48.821-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================CRASH REPORT=========================
crasher:
initial call: ns_port_server:init/1
pid: <0.681.0>
registered_name:
exception exit: {abnormal,1}
in function gen_server:terminate/6 (gen_server.erl, line 744)
ancestors: [<0.680.0>,<0.679.0>,child_ns_server_sup,ns_babysitter_sup,
<0.59.0>]
messages: [{#Port<0.4274>,eof}]
links: [<0.680.0>,#Port<0.4274>]
dictionary:
trap_exit: true
status: running
heap_size: 10958
stack_size: 27
reductions: 1044
neighbours:

[error_logger:error,2017-09-29T09:48:48.821-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]** Generic server <0.680.0> terminating
** Last message in was {die,{abnormal,1}}
** When Server state == {state,ns_server,5000,
{1506,692923,558302},
undefined,infinity}
** Reason for termination ==
** {abnormal,1}

[ns_server:debug,2017-09-29T09:48:48.821-04:00,babysitter_of_ns_1@127.0.0.1:<0.685.0>:supervisor_cushion:init:39]starting ns_port_server with delay of 5000
[error_logger:error,2017-09-29T09:48:48.821-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================CRASH REPORT=========================
crasher:
initial call: supervisor_cushion:init/1
pid: <0.680.0>
registered_name:
exception exit: {abnormal,1}
in function gen_server:terminate/6 (gen_server.erl, line 744)
ancestors: [<0.679.0>,child_ns_server_sup,ns_babysitter_sup,<0.59.0>]
messages:
links: [<0.679.0>]
dictionary:
trap_exit: true
status: running
heap_size: 233
stack_size: 27
reductions: 1897
neighbours:

[error_logger:error,2017-09-29T09:48:48.822-04:00,babysitter_of_ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]
=========================CRASH REPORT=========================
crasher:
initial call: erlang:apply/2
pid: <0.679.0>
registered_name:
exception exit: {abnormal,1}
in function restartable:loop/4 (src/restartable.erl, line 69)
ancestors: [child_ns_server_sup,ns_babysitter_sup,<0.59.0>]
messages:
links: [<0.74.0>]
dictionary:
trap_exit: true
status: running
heap_size: 10958
stack_size: 27
reductions: 1328
neighbours:

I do not have firewall enabled, and I am able to run other things that open ports on localhost.

Any ideas?

Could you report the exact build number of 5.0.0 you’re using? (see VERSION.txt under the /Applications/Couchbase Server.app directory.)

There’s a couple of known issues on High Sierra (https://issues.couchbase.com/browse/MB-25380, https://issues.couchbase.com/browse/MB-24741) but they should both be expected in the most recent builds / the final GA release.

Should have mentioned - anything less than 5.0 GA (i.e. 4.6.3) is not supported on High Sierra.

I can’t find a version file, but about Couchbase server says: Version 5.0.0-3217

Found it…

cat Resources/couchbase-core/Version.txt
5.0.0-3217

I have also tried the following with the same result:

cat /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/VERSION.txt
5.0.0-2873

Ok, so you’re running one of the earlier 5.0.0 Betas. The final 5.0.0 release has both the aforementioned MBs fixed.

As an aside, the fact you are seeing mismatching versions is pretty odd - maybe some remnants of a partial easier install?

I downloaded the two marked beta and beta 2 from the downloads page. I did not have one version reporting two different versions. I uninstalled one and installed the other. If there is a newer version, how do we get it? The downloads page doesn’t specify versions.

I don’t think there’s a newer Beta. 5.0 will be GAing very soon; I suggest you wait for that.

That works for me, I restored a time machine to macOS 10.12 on Friday so that I could run 4.6 again and continue working while we sorted this out.

Thank you for your time.