Did a fresh install of Apache CouchDB on Windows 7 x64, using setup-couchdb-1.4.0_R16B01.exe
Can access futon without any problem
Can programmatically create databases and add documents (including views)
Get the error pasted below when executing a view (even when executing the simplest default non-edited temporary map-reduce in Futon
"map": "function(doc){ emit(null, doc); }"
(in which case the same exact error text is shown in a browser pop-up)
Does this error make sense to anyone? Where should I start my investigation?
Notes:
Error Message:
{"error":"EXIT",
"reason":"{{badmatch,\n
{error,\n
{enoent,\n
[{erlang,open_port,\n
[{spawn,\n
\"c:/Program Files (x86)/Apache Software Foundation/CouchDB/lib/couch-1.4.0/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js\"},\n
[stream,{line,4096},binary,exit_status,hide]],\n
[]},\n
{couch_os_process,init,1,\n
[{file,\n
\"c:/cygwin/relax/APACHE~1.0/src/couchdb/couch_os_process.erl\"},\n
{line,148}]},\n
{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,304}]},\n
{proc_lib,init_p_do_apply,3,\n
[{file,\"proc_lib.erl\"},{line,239}]}]}}},\n
[{couch_query_servers,new_process,3,\n
[{file,\"c:/cygwin/relax/APACHE~1.0/src/couchdb/couch_query_servers.erl\"},\n
{line,477}]},\n
{couch_query_servers,lang_proc,3,\n
[{file,\"c:/cygwin/relax/APACHE~1.0/src/couchdb/couch_query_servers.erl\"},\n
{line,462}]},\n
{couch_query_servers,handle_call,3,\n
[{file,\"c:/cygwin/relax/APACHE~1.0/src/couchdb/couch_query_servers.erl\"},\n
{line,334}]},\n {gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,585}]},\n
{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]}"}
What is the result of running http://localhost:5984/_utils/verify_install.html
?
This error usually happens when people install to a filesystem with ntfs 8.3 filename mangling disabled. Various "tune-up" and performance tools do this for you without understanding the consequences.
Easiest fix is to install to a directory without spaces, e.g. c:\couchdb
.
The weird c:\cygwin... lines come up because when CouchDB is built & compiled, error messages are returned with filenames and line numbers present, relative to the build directory, not your future install directory.
Also, the couchdb mailing list is the best place to ask for support (I read it :-).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With