Unable to start couchbase:community-7.6.2 via docker

Setup:
I have a Windows machine on which I have VirtualBox on which I have linux mint 22.1 edition, in which I have docker 28.0.4. My laptop has a AMD Ryzen 7 PRO 5850U processor, 64-bit operating system, x64-based processor, 32GB ram.

I am trying to run the couchbase:community-7.6.2 edition couchbase but it won’t start. It works on my colleague’s machine, which has the same setup except that he has a different laptop configuration. Also, Couchbase 6.6.1 works via Docker. I went through the CB logs, but I failed to figure out from them what the issue could be here.

Here are some of the error statements that I have found from the logs:
Update:
I get this on the terminal almost every time. It seems like time is going backwards, and erlang is crashing. I wish I could go back in time :frowning: :slight_smile:

debug.log

[ns_server:error,2025-03-30T07:11:52.924Z,ns_1@cb.local:wait_link_to_couchdb_node<0.338.0>:ns_server_nodes_sup:do_wait_link_to_couchdb_node:195]ns_couchdb_port(<0.337.0>) died with reason {abnormal,134}
[error_logger:error,2025-03-30T07:11:52.924Z,ns_1@cb.local:wait_link_to_couchdb_node<0.338.0>:ale_error_logger_handler:do_log:101]
=========================CRASH REPORT=========================
  crasher:
    initial call: erlang:apply/2
    pid: <0.338.0>
    registered_name: wait_link_to_couchdb_node
    exception exit: {abnormal,134}
      in function  ns_server_nodes_sup:do_wait_link_to_couchdb_node/1 (src/ns_server_nodes_sup.erl, line 196)
    ancestors: [ns_server_nodes_sup,<0.291.0>,ns_server_cluster_sup,
                  root_sup,<0.155.0>]
    message_queue_len: 0
    messages: []
    links: [<0.292.0>,<0.339.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 28
    reductions: 3822
  neighbours:
    neighbour:
      pid: <0.339.0>
      registered_name: []
      initial call: ns_server_nodes_sup:'-do_wait_link_to_couchdb_node/1-fun-2-'/0
      current_function: {timer,sleep,1}
      ancestors: [wait_link_to_couchdb_node,ns_server_nodes_sup,<0.291.0>,
                  ns_server_cluster_sup,root_sup,<0.155.0>]
      message_queue_len: 0
      links: [<0.338.0>]
      trap_exit: false
      status: waiting
      heap_size: 1598
      stack_size: 12
      reductions: 33639
      current_stacktrace: [{timer,sleep,1,[{file,"timer.erl"},{line,219}]},
                  {misc,poll_for_condition_rec,3,
                      [{file,"src/misc.erl"},{line,564}]},
                  {ns_server_nodes_sup,
                      '-do_wait_link_to_couchdb_node/1-fun-2-',2,
                      [{file,"src/ns_server_nodes_sup.erl"},{line,165}]},
                  {proc_lib,init_p,3,[{file,"proc_lib.erl"},{line,225}]}]
[error_logger:error,2025-03-30T07:11:52.925Z,ns_1@cb.local:ns_server_nodes_sup<0.292.0>:ale_error_logger_handler:do_log:101]
=========================SUPERVISOR REPORT=========================
    supervisor: {local,ns_server_nodes_sup}
    errorContext: start_error
    reason: {abnormal,134}
    offender: [{pid,undefined},
               {id,wait_for_couchdb_node},
               {mfargs,{erlang,apply,
                               [#Fun<ns_server_nodes_sup.0.120652322>,[]]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,1000},
               {child_type,worker}]

Report.log

=========================ERROR REPORT=========================
** Generic server ns_couchdb_port terminating 
** Last message in was {#Port<0.13>,{exit_status,134}}
** When Server state == {state,#Port<0.13>,248,
                            {ns_couchdb,"/opt/couchbase/lib/erlang/bin/erl",
                                ["-pa",
                                 "/opt/couchbase/lib/erlang/lib/asn1-5.0.21/ebin",
                                 "/opt/couchbase/lib/erlang/lib/compiler-8.2.6.3/ebin",
                                 "/opt/couchbase/lib/erlang/lib/crypto-5.1.4.1/ebin",
                                 "/opt/couchbase/lib/erlang/lib/dialyzer-5.0.5/ebin",
                                 "/opt/couchbase/lib/erlang/lib/diameter-2.2.7/ebin",
                                 "/opt/couchbase/lib/erlang/lib/edoc-1.2/ebin",
                                 "/opt/couchbase/lib/erlang/lib/eldap-1.2.11/ebin",
                                 "/opt/couchbase/lib/erlang/lib/erl_docgen-1.4/ebin",
                                 "/opt/couchbase/lib/erlang/lib/erl_interface-5.3.2/ebin",
                                 "/opt/couchbase/lib/erlang/lib/erts-13.2.2.3/ebin",
                                 "/opt/couchbase/lib/erlang/lib/eunit-2.8.2/ebin",
                                 "/opt/couchbase/lib/erlang/lib/ftp-1.1.4/ebin",
                                 "/opt/couchbase/lib/erlang/lib/inets-8.3.1.2/ebin",
                                 "/opt/couchbase/lib/erlang/lib/mnesia-4.21.4.1/ebin",
                                 "/opt/couchbase/lib/erlang/lib/observer-2.14/ebin",
                                 "/opt/couchbase/lib/erlang/lib/os_mon-2.8.2/ebin",
                                 "/opt/couchbase/lib/erlang/lib/parsetools-2.4.1/ebin",
                                 "/opt/couchbase/lib/erlang/lib/public_key-1.13.3.1/ebin",
                                 "/opt/couchbase/lib/erlang/lib/reltool-0.9.1/ebin",
                                 "/opt/couchbase/lib/erlang/lib/runtime_tools-1.19/ebin",
                                 "/opt/couchbase/lib/erlang/lib/sasl-4.2/ebin",
                                 "/opt/couchbase/lib/erlang/lib/snmp-5.13.5/ebin",
                                 "/opt/couchbase/lib/erlang/lib/ssh-4.15.3/ebin",
                                 "/opt/couchbase/lib/erlang/lib/ssl-10.9.1.2/ebin",
                                 "/opt/couchbase/lib/erlang/lib/syntax_tools-3.0.1/ebin",
                                 "/opt/couchbase/lib/erlang/lib/tftp-1.0.4/ebin",
                                 "/opt/couchbase/lib/erlang/lib/tools-3.5.3/ebin",
                                 "/opt/couchbase/lib/erlang/lib/xmerl-1.3.31.1/ebin",
                                 "/opt/couchbase/lib/couchdb/plugins/gc-couchbase-1.0.0/ebin",
                                 "/opt/couchbase/lib/couchdb/plugins/vtree-0.1.0/ebin",
                                 "/opt/couchbase/lib/couchdb/plugins/wkb-1.2.0/ebin",
                                 "/opt/couchbase/lib/couchdb/erlang/lib/couch-1.2.0a-961ad59-git/ebin",
                                 "/opt/couchbase/lib/couchdb/erlang/lib/couch_audit-1.0.0/ebin",
                                 "/opt/couchbase/lib/couchdb/erlang/lib/couch_dcp-1.0.0/ebin",
                                 "/opt/couchbase/lib/couchdb/erlang/lib/couch_index_merger-1.0.0/ebin",
                                 "/opt/couchbase/lib/couchdb/erlang/lib/couch_set_view-1.0.0/ebin",
                                 "/opt/couchbase/lib/couchdb/erlang/lib/couch_view_parser-1.0/ebin",
                                 "/opt/couchbase/lib/couchdb/erlang/lib/ejson-0.1.0/ebin",
                                 "/opt/couchbase/lib/couchdb/erlang/lib/erlang-oauth/ebin",
                                 "/opt/couchbase/lib/couchdb/erlang/lib/etap/ebin",
                                 [...]|...],
                                [use_stdio,
                                 {env,
                                     [{"NS_COUCHDB_ENV_ARGS",
                                       "[{ns_server_node,'ns_1@cb.local'},\n {loglevel_stats,debug},\n {path_config_libdir,\"/opt/couchbase/lib\"},\n {loglevel_error_logger,debug},\n {path_config_secdir,\"/opt/couchbase/etc/security\"},\n {error_logger_mf_dir,\"/opt/couchbase/var/lib/couchbase/logs\"},\n {loglevel_xdcr,debug},\n {loglevel_ns_server,debug},\n {net_kernel_verbosity,10},\n {loglevel_user,debug},\n {loglevel_rebalance,debug},\n {loglevel_access,info},\n {path_config_bindir,\"/opt/couchbase/bin\"},\n {loglevel_menelaus,debug},\n {loglevel_views,debug},\n {path_config_tmpdir,\"/opt/couchbase/var/lib/couchbase/tmp\"},\n {disk_sink_opts,[{rotation,[{compress,true},\n                             {size,41943040},\n                             {num_files,10},\n                             {buffer_size_max,52428800}]}]},\n {loglevel_mapreduce_errors,debug},\n {loglevel_couchdb,info},\n {loglevel_default,debug},\n {path_config_datadir,\"/opt/couchbase/var/lib/couchbase\"},\n {loglevel_cluster,debug},\n {loglevel_cbas,debug},\n {loglevel_ns_doctor,debug},\n {path_config_etcdir,\"/opt/couchbase/etc/couchbase\"},\n {config_profile,[{name,\"default\"},{{indexer,disable_shard_affinity},true}]}]"},
                                      {"ERL_CRASH_DUMP",
                                       "erl_crash.dump.1743318693.79.ns_couchdb"}]},
                                 {write_data,
                                     #Fun<ns_ports_setup.4.50548505>}]},
                            {ringbuffer,569,1024,
                                {[{<<"[os_mon] memory supervisor port (memsup): Erlang has closed">>,
                                   59},
                                  {<<"[os_mon] cpu supervisor port (cpu_sup): Erlang has closed">>,
                                   57},
                                  {<<"Current time:  6412158389">>,25},
                                  {<<"Previous time: 6412208757">>,25},
                                  {<<"Monotonic time stepped backwards!">>,33},
                                  {<<"Apache CouchDB has started. Time to relax.">>,
                                   42},
                                  {<<"Apache CouchDB v4.5.1-330-g3e5b8f24 (LogLevel=info) is starting.">>,
                                   64},
                                  {<<>>,0},
                                  {<<"** Connection attempt to/from node 'ns_1@cb.local' rejected. Cookie is not set. **">>,
                                   82},
                                  {<<"=ERROR REPORT==== 30-Mar-2025::07:11:46.411086 ===">>,
                                   50},
                                  {<<>>,0},
                                  {<<"** Connection attempt to/from node 'ns_1@cb.local' rejected. Cookie is not set. **">>,
                                   82}],
                                 [{<<"=ERROR REPORT==== 30-Mar-2025::07:11:46.132567 ===">>,
                                   50}]}},
                            undefined,#Ref<0.467418762.3746299907.182253>,
                            [<<"[os_mon] memory supervisor port (memsup): Erlang has closed">>,
                             <<"[os_mon] cpu supervisor port (cpu_sup): Erlang has closed">>],
                            0}
** Reason for termination ==
** {abnormal,134}

[error_logger:error,2025-03-30T07:11:52.924Z,ns_1@cb.local:ns_couchdb_port<0.337.0>:ale_error_logger_handler:do_log:101]
=========================CRASH REPORT=========================
  crasher:
    initial call: ns_port_server:init/1
    pid: <0.337.0>
    registered_name: ns_couchdb_port
    exception exit: {abnormal,134}
      in function  gen_server:handle_common_reply/8 (gen_server.erl, line 1241)
    ancestors: [<0.335.0>,<0.334.0>,<0.333.0>,ns_server_nodes_sup,<0.291.0>,
                  ns_server_cluster_sup,root_sup,<0.155.0>]
    message_queue_len: 1
    messages: [{'EXIT',#Port<0.13>,normal}]
    links: [<0.335.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 17731
    stack_size: 28
    reductions: 115086
  neighbours:

[error_logger:error,2025-03-30T07:11:52.924Z,ns_1@cb.local:wait_link_to_couchdb_node<0.338.0>:ale_error_logger_handler:do_log:101]
=========================CRASH REPORT=========================
  crasher:
    initial call: erlang:apply/2
    pid: <0.338.0>
    registered_name: wait_link_to_couchdb_node
    exception exit: {abnormal,134}
      in function  ns_server_nodes_sup:do_wait_link_to_couchdb_node/1 (src/ns_server_nodes_sup.erl, line 196)
    ancestors: [ns_server_nodes_sup,<0.291.0>,ns_server_cluster_sup,
                  root_sup,<0.155.0>]
    message_queue_len: 0
    messages: []
    links: [<0.292.0>,<0.339.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 28
    reductions: 3822
  neighbours:
    neighbour:
      pid: <0.339.0>
      registered_name: []
      initial call: ns_server_nodes_sup:'-do_wait_link_to_couchdb_node/1-fun-2-'/0
      current_function: {timer,sleep,1}
      ancestors: [wait_link_to_couchdb_node,ns_server_nodes_sup,<0.291.0>,
                  ns_server_cluster_sup,root_sup,<0.155.0>]
      message_queue_len: 0
      links: [<0.338.0>]
      trap_exit: false
      status: waiting
      heap_size: 1598
      stack_size: 12
      reductions: 33639
      current_stacktrace: [{timer,sleep,1,[{file,"timer.erl"},{line,219}]},
                  {misc,poll_for_condition_rec,3,
                      [{file,"src/misc.erl"},{line,564}]},
                  {ns_server_nodes_sup,
                      '-do_wait_link_to_couchdb_node/1-fun-2-',2,
                      [{file,"src/ns_server_nodes_sup.erl"},{line,165}]},
                  {proc_lib,init_p,3,[{file,"proc_lib.erl"},{line,225}]}]
[error_logger:error,2025-03-30T07:11:52.925Z,ns_1@cb.local:ns_server_nodes_sup<0.292.0>:ale_error_logger_handler:do_log:101]

ns_couchdb.log

=========================ERROR REPORT=========================
** Connection attempt to/from node ‘ns_1@cb.local’ rejected. Cookie is not set. **

[ns_server:debug,2025-03-30T07:11:47.890Z,couchdb_ns_1@cb.local:cb_dist<0.69.0>:cb_dist:info_msg:1098]cb_dist: Connection down: {con,#Ref<0.1406724353.2135162881.56827>,
inet_tcp_dist,<0.175.0>,
#Ref<0.1406724353.2135162881.56828>}
[ns_server:debug,2025-03-30T07:11:48.095Z,couchdb_ns_1@cb.local:cb_dist<0.69.0>:cb_dist:info_msg:1098]cb_dist: Accepted new connection from <0.73.0> DistCtrl #Port<0.16>: {con,
#Ref<0.1406724353.2135162881.56860>,
inet_tcp_dist,
undefined,
undefined}
[ns_server:debug,2025-03-30T07:11:48.095Z,couchdb_ns_1@cb.local:net_kernel<0.71.0>:cb_dist:info_msg:1098]cb_dist: Accepting connection from <0.73.0> using module inet_tcp_dist
[ns_server:debug,2025-03-30T07:11:48.095Z,couchdb_ns_1@cb.local:cb_dist<0.69.0>:cb_dist:info_msg:1098]cb_dist: Updated connection: {con,#Ref<0.1406724353.2135162881.56860>,
inet_tcp_dist,<0.178.0>,
#Ref<0.1406724353.2135162881.56861>}
[error_logger:error,2025-03-30T07:11:48.096Z,couchdb_ns_1@cb.local:<0.178.0>:ale_error_logger_handler:do_log:101]

basysitter.log

[ns_server:info,2025-03-30T07:13:04.752Z,babysitter_of_ns_1@cb.local:<0.153.0>:ns_port_server:log:226]ns_server<0.153.0>: [os_mon] cpu supervisor port (cpu_sup): Erlang has closed
ns_server<0.153.0>: [os_mon] memory supervisor port (memsup): Erlang has closed

[error_logger:error,2025-03-30T07:13:04.754Z,babysitter_of_ns_1@cb.local:<0.153.0>:ale_error_logger_handler:do_log:101]
=========================ERROR REPORT=========================
** Generic server <0.153.0> terminating 
** Last message in was {#Port<0.16>,{exit_status,134}}
** When Server state == {state,#Port<0.16>,989,
                            {ns_server,"/opt/couchbase/lib/erlang/bin/erl",
                                ["+A","16","-smp","enable","+sbt","u","+P",
                                 "327680","+K","true","+swt","low","+sbwt",
                                 "none","+MMmcs","30","+e102400","-setcookie",
                                 "nocookie","-kernel","logger",
                                 "[{handler, default, undefined}]","-kernel",
                                 "prevent_overlapping_partitions","false",
                                 "-user","user_io","-run","child_erlang",
                                 "child_start","ns_bootstrap","--","-smp",
                                 "enable","-kernel","logger",
                                 "[{handler, default, undefined}]","inetrc",
                                 "\"/opt/couchbase/etc/couchbase/hosts.cfg\"",
                                 "dist_config_file",
                                 "\"/opt/couchbase/var/lib/couchbase/config/dist_cfg\"",
                                 [...]|...],
                                [{env,
                                     [{"NS_SERVER_BABYSITTER_PID","79"},
                                      {"CHILD_ERLANG_ENV_ARGS",
                                       "[{ns_babysitter,[{pidfile,[]}]},\n {ns_server,\n     [{path_config_libdir,\"/opt/couchbase/lib\"},\n      {loglevel_views,debug},\n      {loglevel_default,debug},\n      {max_r,20},\n      {loglevel_couchdb,info},\n      {disk_sink_opts_disk_tls_key_log,\n          [{rotation,\n               [{compress,true},\n                {size,10485760},\n                {num_files,1},\n                {buffer_size_max,13107200}]}]},\n      {disk_sink_opts_disk_json_rpc,\n          [{rotation,\n               [{compress,true},\n                {size,41943040},\n                {num_files,2},\n                {buffer_size_max,52428800}]}]},\n      {loglevel_error_logger,debug},\n      {config_path,\"/opt/couchbase/etc/couchbase/static_config\"},\n      {loglevel_cluster,debug},\n      {loglevel_xdcr,debug},\n      {loglevel_mapreduce_errors,debug},\n      {path_config_secdir,\"/opt/couchbase/etc/security\"},\n      {loglevel_rebalance,debug},\n      {disk_sink_opts,\n          [{rotation,\n               [{compress,true},\n                {size,41943040},\n                {num_files,10},\n                {buffer_size_max,52428800}]}]},\n      {loglevel_access,info},\n      {loglevel_ns_server,debug},\n      {loglevel_user,debug},\n      {error_logger_mf_dir,\"/opt/couchbase/var/lib/couchbase/logs\"},\n      {path_config_tmpdir,\"/opt/couchbase/var/lib/couchbase/tmp\"},\n      {loglevel_stats,debug},\n      {nodefile,\"/opt/couchbase/var/lib/couchbase/couchbase-server.node\"},\n      {max_t,10},\n      {net_kernel_verbosity,10},\n      {loglevel_ns_doctor,debug},\n      {path_config_etcdir,\"/opt/couchbase/etc/couchbase\"},\n      {path_config_datadir,\"/opt/couchbase/var/lib/couchbase\"},\n      {loglevel_menelaus,debug},\n      {loglevel_cbas,debug},\n      {path_config_bindir,\"/opt/couchbase/bin\"}]}]"},
                                      {"ERL_CRASH_DUMP",
                                       "erl_crash.dump.1743318693.79.ns_server"}]},
                                 exit_status,use_stdio,stream,eof,
                                 {write_data,#Fun<child_erlang.0.97961243>}]},
                            {ringbuffer,199,1024,
                                {[{<<"[os_mon] memory supervisor port (memsup): Erlang has closed">>,
                                   59},
                                  {<<"[os_mon] cpu supervisor port (cpu_sup): Erlang has closed">>,
                                   57},
                                  {<<"Current time:  7781234877">>,25},
                                  {<<"Previous time: 7781248559">>,25}],
                                 [{<<"Monotonic time stepped backwards!">>,
                                   33}]}},
                            undefined,#Ref<0.786944306.3208642561.255456>,
                            [<<"[os_mon] memory supervisor port (memsup): Erlang has closed">>,
                             <<"[os_mon] cpu supervisor port (cpu_sup): Erlang has closed">>],
                            0}
** Reason for termination ==
** {abnormal,134}

[error_logger:error,2025-03-30T07:13:04.755Z,babysitter_of_ns_1@cb.local:<0.153.0>:ale_error_logger_handler:do_log:101]
=========================CRASH REPORT=========================
  crasher:
    initial call: ns_port_server:init/1
    pid: <0.153.0>
    registered_name: []
    exception exit: {abnormal,134}
      in function  gen_server:handle_common_reply/8 (gen_server.erl, line 1241)
    ancestors: [<0.152.0>,<0.151.0>,child_ns_server_sup,ns_babysitter_sup,
                  <0.115.0>]
    message_queue_len: 1
    messages: [{#Port<0.16>,eof}]
    links: [<0.152.0>,#Port<0.16>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 28690
    stack_size: 28
    reductions: 67341
  neighbours:

error.log

[ns_server:error,2025-03-30T07:11:52.924Z,ns_1@cb.local:wait_link_to_couchdb_node<0.338.0>:ns_server_nodes_sup:do_wait_link_to_couchdb_node:195]ns_couchdb_port(<0.337.0>) died with reason {abnormal,134}
[ns_server:error,2025-03-30T07:12:32.553Z,ns_1@cb.local:wait_link_to_couchdb_node<0.336.0>:ns_server_nodes_sup:do_wait_link_to_couchdb_node:195]ns_couchdb_port(<0.335.0>) died with reason {abnormal,134}
[ns_server:error,2025-03-30T07:12:51.660Z,ns_1@cb.local:wait_link_to_couchdb_node<0.336.0>:ns_server_nodes_sup:do_wait_link_to_couchdb_node:195]ns_couchdb_port(<0.335.0>) died with reason {abnormal,134}

Seems like this is a virtual box issue. The time is not synching correctly and hence elixir crashes. When I changed my VM setting to 1 CPU couchbase started.
Elixir Crashes in Virtualbox with monotonic time message - Questions / Help - Elixir Programming Language Forum
#22334 (VM clock goes backwards => fixed in svn) – Oracle VirtualBox

@shreyas.sangai thanks for following up, and I’m glad you were able to find the root cause.