Version 4.5 Failing to Start on Mac OS X El Capitan


#1

Could I please have your help in resolving the following problem Latest version 4.5 of Couchbase server is failing to start on the Mac. Here is some output from the Couchbase.log file.

[user:info,2016-06-29T12:16:40.177+01:00,ns_1@127.0.0.1:<0.204.0>:ns_log:crash_consumption_loop:70]Service ‘ns_server’ exited with status 1. Restarting. Messages: {“Kernel pid terminated”,application_controller,"{application_start_failure,ns_server,{{shutdown,{failed_to_start_child,ns_server_nodes_sup,{shutdown,{failed_to_start_child,ns_server_sup,{shutdown,{failed_to_start_child,index_settings_manager,{badarg,[{dict,fetch,[<<“indexer.settings.compaction.compaction_mode”>>,{dict,9,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[[<<“indexer.settings.compaction.interval”>>|<<“00:00,00:00”>>]],[[<<“indexer.settings.persisted_snapshot.interval”>>|5000],[<<“indexer.settings.log_level”>>|<<“info”>>]],[[<<“indexer.settings.compaction.min_frag”>>|30]],[[<<“indexer.settings.inmemory_snapshot.interval”>>|200]],[],[[<<“indexer.settings.max_cpu_percent”>>|0]],[[<<“indexer.settings.storage_mode”>>|<<>>]],[],[[<<“indexer.settings.recovery.max_rollbacks”>>|5]],[[<<“indexer.settings.memory_quota”>>|268435456]],[],[],[],[]}}}],[{file,“dict.erl”},{line,126}]},{index_settings_manager,’-lens_get_many/2-lc$^0/1-0-’,2,[{file,“src/index_settings_manager.erl”},{line,373}]},{index_settings_manager,’-lens_get_many/2-lc$^0/1-0-’,2,[{file,“src/index_settings_manager.erl”},{line,373}]},{index_settings_manager,do_populate_ets_table,1,[{file,“src/index_settings_manager.erl”},{line,188}]},{work_queue,init,1,[{file,“src/work_queue.erl”},{line,51}]},{gen_server,init_it,6,[{file,“gen_server.erl”},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,239}]}]}}}}}}},{ns_server,start,[normal,[]]}}}"}
[ns_server:error,2016-06-29T12:16:40.178+01:00,ns_1@127.0.0.1:ns_log<0.202.0>:ns_log:handle_cast:209]unable to notify listeners because of badarg
[ns_server:warn,2016-06-29T12:16:40.185+01:00,ns_1@127.0.0.1:ns_config_isasl_sync<0.205.0>:ns_memcached:connect:1290]Unable to connect: {error,{badmatch,{error,econnrefused}}}, retrying.
[error_logger:info,2016-06-29T12:16:41.186+01:00,ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do_log:203]

Thank you.


#2

Hi Alfie,

For Mac, I’ve experienced this when I upgrade Couchbase without uninstalling a previous version. Can you try uninstalling Couchbase, deleting the data directories, and then doing a fresh install?

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

http://developer.couchbase.com/documentation/server/current/install/install-uninstalling.html


#3

Hi Will

That did the trick. Thanks very much : ). It will be great if this could be fixed in your next release.


#4

It’s documented that you need to remove those directories, although as you noticed, not everyone reads the documents.

I also filed a ticket MB-201218 to have the installer delete those directories. Of course, it will have to be prioritized against a lot of other things we want to build and fix so until you hear differently, you should also remove those two directories before you install a new Couchbase Server version on Mac.

Best,
-Will


#5

Thanks very much Will.