Hi all,
I'm playing with a project which uses couchdb and I'm trying to get the project working on Windows.

I found the Wiki at http://wiki.apache.org/couchdb/Installing_on_Windows, and while the binaries worked well, the application was causing the following error:

"""
[info] [<0.75.0>] HTTP Error (code 500): {query_parse_error,"Bad URL query key:include_docs"}
"""

A bit of time with google led me to believe that I needed a newer version of couchdb for this to work. After pulling from SVN and updating and recompiling the couchdb-0.8.1 directory, the 'couch_start.bat' batch file fails with:

"""
1> {"init terminating in do_boot",{{badmatch,{error,{function_clause,[{couch_util,separate_cmd_args,[46,[]]},{couch_util,abs_pathname,1},{couch_config,load_ini_file,1},{couch_config,'-init/1-lc$^0/1-0-',1},{couch_config,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}}},[{couch_server_sup,start_server,1},{erl_eval,do_apply,5},{erl_eval,exprs,5},{init,start_it,1},{init,start_em,1}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
"""

I suspect the problem is the args we are passing to the start function but I'm not experienced enough to decycpher it; for reference, couch_start.bat consists of the single line:

"""
..\bin\werl.exe -smp auto -sasl errlog_type error -eval "application:load(inets)" -eval "application:load(crypto)" -eval "application:load(couch)" -eval "crypto:start()" -eval "inets:start()" -eval "couch_server:start(\"../usr/couch.ini\"), receive done -> done end."
"""

If I try and start it via the Wiki instructions (ie, a simple 'couch_server:start().', I get:

"""
1> couch_server:start().
Apache CouchDB 0.0.0 (LogLevel=info) is starting.
** exception error: no function clause matching
                    filename:join({error,bad_name},"lib")
     in function  couch_server_sup:start_server/1
"""

Ultimately, all I really need is the initial 'include_docs' error resolved; is updating couchdb the correct way to do that? If so, can anyone offer any clues to what my problem is?

Thanks,

Mark

Reply via email to