Yuriy, Try http://127.0.0.1:5984/dev_script/_all_docs
Hope that helps, Chris On Sun, Oct 26, 2008 at 12:20 PM, Yuriy Sazonets <[EMAIL PROTECTED]> wrote: > Hi, > > Not sure if this is a bug or I'm doing something wrong. > > I have two databases for testing called 'dev_offer' and 'dev_script'. > I have inserted few (1 or 2) documents to the each of databases and > after system crash I can't retrieve _all view for any of these > databases: > >>curl http://127.0.0.1:5984/dev_script/_all/ >> ~ > {"error":"EXIT","reason":"{{{badmatch,eof},\n > [{couch_file,handle_call,3},\n {gen_server,handle_msg,5},\n > {proc_lib,init_p,5}]},\n > {gen_server,call,[<0.58.0>,{pread_bin,14207},infinity]}}"} > > Log: > > [Sun, 26 Oct 2008 19:17:13 GMT] [error] [<0.62.0>] ** Generic server > <0.62.0> terminating > ** Last message in was {pread_bin,14207} > ** When Server state == {file_descriptor,prim_file,{#Port<0.142>,11}} > ** Reason for termination == > ** {{badmatch,eof}, > [{couch_file,handle_call,3}, > {gen_server,handle_msg,5}, > {proc_lib,init_p,5}]} > > > [Sun, 26 Oct 2008 19:17:13 GMT] [error] [<0.62.0>] {error_report,<0.22.0>, > {<0.62.0>,crash_report, > [[{pid,<0.62.0>}, > {registered_name,[]}, > {error_info, > {exit, > {{badmatch,eof}, > [{couch_file,handle_call,3}, > {gen_server,handle_msg,5}, > {proc_lib,init_p,5}]}, > [{gen_server,terminate,6},{proc_lib,init_p,5}]}}, > {initial_call, > {gen,init_it, > [gen_server,<0.47.0>,<0.47.0>,couch_file, > {"/usr/local/var/lib/couchdb/dev_script.couch",[],<0.47.0>}, > []]}}, > {ancestors,[couch_server_sup,<0.1.0>]}, > {messages,[]}, > {links,[<0.64.0>]}, > {dictionary,[]}, > {trap_exit,false}, > {status,running}, > {heap_size,377}, > {stack_size,23}, > {reductions,1233}], > [{neighbour, > [{pid,<0.65.0>}, > {registered_name,[]}, > {initial_call, > {gen,init_it, > [gen_server,<0.64.0>,<0.64.0>,couch_stream, > {{4165,9931},<0.62.0>}, > []]}}, > {current_function,{gen_server,loop,6}}, > {ancestors,[<0.64.0>]}, > {messages,[]}, > {links,[<0.64.0>]}, > {dictionary,[]}, > {trap_exit,false}, > {status,waiting}, > {heap_size,233}, > {stack_size,12}, > {reductions,37}]}, > {neighbour, > [{pid,<0.63.0>}, > {registered_name,[]}, > {initial_call, > {gen,init_it, > [gen_server,<0.47.0>,<0.47.0>,couch_db, > {"dev_script", > "/usr/local/var/lib/couchdb/dev_script.couch",<0.62.0>, > []}, > []]}}, > {current_function,{gen_server,loop,6}}, > {ancestors,[couch_server_sup,<0.1.0>]}, > {messages,[]}, > {links,[<0.47.0>,<0.64.0>]}, > {dictionary,[]}, > {trap_exit,false}, > {status,waiting}, > {heap_size,610}, > {stack_size,12}, > {reductions,93}]}, > {neighbour, > [{pid,<0.64.0>}, > {registered_name,[]}, > {initial_call,{couch_db,start_update_loop,2}}, > {current_function,{couch_db,update_loop,1}}, > {ancestors,[]}, > {messages,[]}, > {links,[<0.63.0>,<0.65.0>,<0.62.0>]}, > {dictionary,[]}, > {trap_exit,false}, > {status,waiting}, > {heap_size,233}, > {stack_size,10}, > {reductions,106}]}]]}} > > [Sun, 26 Oct 2008 19:17:13 GMT] [error] [<0.47.0>] {error_report,<0.22.0>, > {<0.47.0>,supervisor_report, > [{supervisor,{local,couch_server_sup}}, > {errorContext,child_terminated}, > {reason, > {{badmatch,eof}, > [{couch_file,handle_call,3}, > {gen_server,handle_msg,5}, > {proc_lib,init_p,5}]}}, > {offender, > [{pid,<0.63.0>}, > {name,"dev_script"}, > {mfa, > {couch_db,open, > ["dev_script", > "/usr/local/var/lib/couchdb/dev_script.couch"]}}, > {restart_type,transient}, > {shutdown,infinity}, > {child_type,supervisor}]}]}} > > [Sun, 26 Oct 2008 19:17:13 GMT] [info] [<0.3347.0>] HTTP Error (code > 500): {'EXIT', > {{{badmatch,eof}, > [{couch_file,handle_call,3}, > {gen_server,handle_msg,5}, > {proc_lib,init_p,5}]}, > {gen_server,call, > [<0.62.0>,{pread_bin,14207},infinity]}}} > > [Sun, 26 Oct 2008 19:17:13 GMT] [info] [<0.3347.0>] 127.0.0.1 - - "GET > /dev_script/_all/" 500 > >>curl http://127.0.0.1:5984/dev_script/ >> ~ > {"db_name":"dev_script","doc_count":1,"doc_del_count":0,"update_seq":1,"compact_running":false,"disk_size":8192} > >>curl http://127.0.0.1:5984/ >> ~ > {"couchdb":"Welcome","version":"0.8.1-incubating"} > > All tests from the test suite succeed. Running CouchDB 0.8.1 on Mac OS > X 10.5.5 built from the official source package. > > -- > With Respect, > Yuriy. > -- Chris Anderson http://jchris.mfdz.com