CouchbaseServer: Could not start erlang machine
Just installed CouchBaseServer community edition on Windows Server 2003 R2.
Install went fine, but after getting an error in the console page, I tracked it down to CouchbaseServer service not being started (even though it is set to automatic).
I started it and receive an error.
Event log says this:
CouchbaseServer: Could not start erlang machine
I rebooted and the same.
Any ideas?
Thanks,
Dave
go into C:\Program Files\Couchbase\Server\bin and run ms-dos batch file couchdb, worked for me.
Yep, I'm up and running. Thanks for replying.
Dave
Yes, this gets it up and running for me too, but is there a way to have it run without the console window and Erlang window open?
I have the same issue on Win 7 with Visual Studio 2010 installed. Running C:\Program Files\Couchbase\Server\bin\couchdb.bat worked for me. Re-installing different versions of the C++ redistributable had no effect.
is there a solution for this problem? Is there any other way of starting CouchDB other than running the batch file?
Erlang VM requires a specific version of vcredist_x86.exe to installed in order for it to run correctly. For newer version, Couchbase Server will bundle and run vcredist_x86.exe during installation. To work around this problem, the best approach is to download Erlang and install it with microsoft runtime dll option selected.
Just to add on to what Bin said, this is a known bug and will be addressed in the next version. The Windows service registration may get hung up and either registering the service via the included batch file or just starting it by the batch file are known workarounds, after installing the dependent redistributables of course.
Many people already have this C++ redistributable dependency installed, so they never see the issue. It depends on Windows release, service packs, and if some other piece of software has installed it first.
Just to provide another datapoint:
I am running WinXP and just installed CouchBase single server on one machine + it worked ok, but on a 2nd machine running XP it did not and refused to run couchdb.bat or any of the executables (erl.exe etc.), printing only the cryptic "The system cannot execute the specified program."
I tried installing MSVC redistributable 2005, 2005SP1, 2008, 2008SP1, 2010, and 2010SP1 with no luck. Running DependencyWalker on both machines seemed to indicate that erl.exe was looking for a more recent version of VC08 (2005 redistributable?) than was present on the 2nd machine.
I finally found a blog entry (http://tedwvc.wordpress.com/2011/06/18/ms11-025-has-been-reissued-all-pr...) that mentioned newer updates had been released. After I installed the MSVC redistributable 2005 SP1 Security Update, that fixed the problem.
We've got this problem on one dev machine (but not others). We've tried all of the above and nothing works. running the couchdb bat file reported errors....see below.
Erlang R14B04 (erts-5.8.5) [smp:8:8] [rq:8] [async-threads:0]
Eshell V5.8.5 (abort with ^G)
1> Apache CouchDB 1.2.0a-be4fa61-git (LogLevel=info) is starting.
=ERROR REPORT==== 8-Feb-2013::15:54:03 ===
** Generic server <0.115.0> terminating
** Last message in was {update_docs,<0.109.0>,
[{doc_update_info,<<"_design/_auth">>,false,
{0,<<>>},
34,0,3397,<0.110.0>}],
[],false}
** When Server state == {db,<0.114.0>,<0.115.0>,nil,<<"1360338843224000">>,
<0.110.0>,<0.116.0>,
{db_header,11,0,nil,nil,nil,0,nil,nil},
0,
{btree,<0.110.0>,nil,
#Fun,
#Fun,
#Fun,
#Fun,1279,2558,
true},
{btree,<0.110.0>,nil,
#Fun,
#Fun,
#Fun,
#Fun,1279,2558,
true},
{btree,<0.110.0>,nil,
#Fun,
#Fun,
#Fun,nil,1279,2558,
true},
0,<<"_users">>,
"c:/Program Files/Couchbase/Server/var/lib/couchdb/_users.couch.1",
[],nil,
{user_ctx,null,[],undefined},
nil,
[before_header,after_header,on_file_open],
[create,
{user_ctx,
{user_ctx,null,[<<"_admin">>],undefined}},
sys_db]}
** Reason for termination ==
** {'module could not be loaded',
[{'ale_logger-couchdb',info,
[couch_log,info,39,
"Database `~s`, design document `~s` updated (new revision: ~s, deleted: ~s)",
[<<"_users">>,<<"_design/_auth">>,<<"0-">>,false]]},
{couch_db_updater,'-handle_info/2-fun-0-',3},
{lists,foreach,2},
{couch_db_updater,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
=CRASH REPORT==== 8-Feb-2013::15:54:03 ===
crasher:
initial call: couch_db_updater:init/1
pid: <0.115.0>
registered_name: []
exception exit: {undef,
[{'ale_logger-couchdb',info,
[couch_log,info,39,
"Database `~s`, design document `~s` updated (new revision: ~s, deleted: ~s)",
[<<"_users">>,<<"_design/_auth">>,<<"0-">>,
false]]},
{couch_db_updater,'-handle_info/2-fun-0-',3},
{lists,foreach,2},
{couch_db_updater,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:terminate/6
ancestors: [<0.114.0>,couch_server,couch_primary_services,
couch_server_sup,<0.35.0>]
messages: []
links: [<0.114.0>]
dictionary: [{update_listeners,
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[]}}}}]
trap_exit: true
status: running
heap_size: 1597
stack_size: 24
reductions: 1479
neighbours:
=CRASH REPORT==== 8-Feb-2013::15:54:03 ===
crasher:
initial call: couch_auth_cache:init/1
pid: <0.109.0>
registered_name: []
exception exit: {undef,
[{'ale_logger-couchdb',info,
[couch_log,info,39,
"Database `~s`, design document `~s` updated (new revision: ~s, deleted: ~s)",
[<<"_users">>,<<"_design/_auth">>,<<"0-">>,
false]]},
{couch_db_updater,'-handle_info/2-fun-0-',3},
{lists,foreach,2},
{couch_db_updater,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:init_it/6
ancestors: [couch_secondary_services,couch_server_sup,<0.35.0>]
messages: []
links: [<0.107.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 24
reductions: 718
neighbours:
=SUPERVISOR REPORT==== 8-Feb-2013::15:54:03 ===
Supervisor: {local,couch_secondary_services}
Context: start_error
Reason: {undef,
[{'ale_logger-couchdb',info,
[couch_log,info,39,
"Database `~s`, design document `~s` updated (new revision: ~s, deleted: ~s)",
[<<"_users">>,<<"_design/_auth">>,<<"0-">>,false]]},
{couch_db_updater,'-handle_info/2-fun-0-',3},
{lists,foreach,2},
{couch_db_updater,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
Offender: [{pid,undefined},
{name,auth_cache},
{mfargs,{couch_auth_cache,start_link,[]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=ERROR REPORT==== 8-Feb-2013::15:54:03 ===
** Generic server <0.114.0> terminating
** Last message in was {'EXIT',<0.115.0>,
{undef,
[{'ale_logger-couchdb',info,
[couch_log,info,39,
"Database `~s`, design document `~s` updated (new revision: ~s, deleted: ~s)",
[<<"_users">>,<<"_design/_auth">>,
<<"0-">>,false]]},
{couch_db_updater,'-handle_info/2-fun-0-',3},
{lists,foreach,2},
{couch_db_updater,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}}
** When Server state == {db,<0.114.0>,<0.115.0>,nil,<<"1360338843224000">>,
<0.110.0>,<0.116.0>,
{db_header,11,0,nil,nil,nil,0,nil,nil},
0,
{btree,<0.110.0>,
{3431,
<<0,0,0,0,1,0,0,0,0,0,0,0,0,0,13,69>>,
51},
#Fun,
#Fun,
#Fun,
#Fun,1279,2558,
true},
{btree,<0.110.0>,
{3482,<<0,0,0,0,1>>,49},
#Fun,
#Fun,
#Fun,
#Fun,1279,2558,
true},
{btree,<0.110.0>,nil,
#Fun,
#Fun,
#Fun,nil,1279,2558,
true},
1,<<"_users">>,
"c:/Program Files/Couchbase/Server/var/lib/couchdb/_users.couch.1",
[],nil,
{user_ctx,null,[],undefined},
#Ref<0.0.0.145>,
[before_header,after_header,on_file_open],
[create,
{user_ctx,
{user_ctx,null,[<<"_admin">>],undefined}},
sys_db]}
** Reason for termination ==
** {'module could not be loaded',
[{'ale_logger-couchdb',info,
[couch_log,info,39,
"Database `~s`, design document `~s` updated (new revision: ~s, deleted: ~s)",
[<<"_users">>,<<"_design/_auth">>,<<"0-">>,false]]},
{couch_db_updater,'-handle_info/2-fun-0-',3},
{lists,foreach,2},
{couch_db_updater,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
=CRASH REPORT==== 8-Feb-2013::15:54:03 ===
crasher:
initial call: couch_db:init/1
pid: <0.114.0>
registered_name: []
exception exit: {undef,
[{'ale_logger-couchdb',info,
[couch_log,info,39,
"Database `~s`, design document `~s` updated (new revision: ~s, deleted: ~s)",
[<<"_users">>,<<"_design/_auth">>,<<"0-">>,
false]]},
{couch_db_updater,'-handle_info/2-fun-0-',3},
{lists,foreach,2},
{couch_db_updater,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:terminate/6
ancestors: [couch_server,couch_primary_services,couch_server_sup,
<0.35.0>]
messages: []
links: [<0.100.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 987
stack_size: 24
reductions: 330
neighbours:
=SUPERVISOR REPORT==== 8-Feb-2013::15:54:03 ===
Supervisor: {local,couch_server_sup}
Context: start_error
Reason: shutdown
Offender: [{pid,undefined},
{name,couch_secondary_services},
{mfargs,{couch_secondary_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=CRASH REPORT==== 8-Feb-2013::15:54:03 ===
crasher:
initial call: application_master:init/4
pid: <0.34.0>
registered_name: []
exception exit: {bad_return,
{{couch_app,start,
[normal,
["../etc/couchdb/default.ini",
"../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.6.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 987
stack_size: 24
reductions: 158
neighbours:
=INFO REPORT==== 8-Feb-2013::15:54:03 ===
application: couch
exited: {bad_return,{{couch_app,start,
[normal,
["../etc/couchdb/default.ini",
"../etc/couchdb/local.ini"]]},
{'EXIT',{{badmatch,{error,shutdown}},
[{couch_server_sup,start_server,1},
{application_master,start_it_old,4}]}}}}
type: temporary
I was able to get passed this. I had Visual Studio 2010 installed on the box which had Microsoft C++ runtime (version associated with 2010 installation) and it appears that CouchbaseServer is using a much older version (2005 redistributable) and when they are both on the same machine CouchbaseServer is going for the newer one and crashing.
Resolution is to uninstall Visual Studio 2010. May be able to install C++ redistributable specifically, but not sure if that affects VS 2010 so best to uninstall all.
Good luck.
Dave