Clutch View Server and CouchDB 0.11.2/1.0.1

25 views
Skip to first unread message

Ryan Senior

unread,
Jan 19, 2011, 12:19:02 AM1/19/11
to clojure...@googlegroups.com
I've been running into the below error when I try to execute a view using the Clutch view server

[Wed, 19 Jan 2011 05:04:45 GMT] [error] [<0.131.0>] OS Process Error <0.216.0> :: {os_process_error,"OS process timed out."}

I get this on CouchDB version 0.11.2 and 1.0.1, temporary and permanent views.  These same views work with no issues on CouchDB 0.10.  The views are very small and basic and the database has a very small number of documents (less than 10).

Does anyone have the Clutch view server working with CouchDB 0.11.2 or 1.0.1?  Is there something special that needs to be done?

-Ryan

Tunde Ashafa

unread,
Jan 19, 2011, 8:35:29 AM1/19/11
to clojure...@googlegroups.com
Hello Ryan,

I just installed CouchDB 1.0.1 and will begin work to make sure Clutch works with that version of CouchDB. Do you mind sharing the map (or reduce) function you are using with the views you are getting the errors with? I can reproduce the problem on a specific type of view (using keys that contain spaces) and I just want to make sure I'm fixing the right problem in your case.

Thanks, Tunde.

Ryan Senior

unread,
Jan 19, 2011, 8:51:05 AM1/19/11
to clojure...@googlegroups.com
Sure, it's a map fn (but I also see the same error for reduce functions)

(fn [doc] (when (and (:movie-title doc)
(:runtime doc))
[[(:movie-title doc)
(:runtime doc)]]))


if you'd like to load up some data for it to return:

(clutch/with-db movies-db
(clutch/bulk-update
[{:movie-title "The Godfather"
:director "Francis Ford Coppola"
:runtime 175
:year-released 1972
:studio "Paramount"}
{:movie-title "The Godfather II"
:director "Francis Ford Coppola"
:runtime 200
:year-released 1974
:studio "Paramount"}
{:movie-title "The Godfather III"
:director "Francis Ford Coppola"
:runtime 162
:year-released 1990
:studio "Paramount"}]))


-Ryan

Tunde Ashafa

unread,
Jan 22, 2011, 7:37:24 PM1/22/11
to clojure...@googlegroups.com
Hello Ryan,

I think I may have fixed this issue. I have created a version of the Clojure view server that now passes all test on CouchDB 1.0.1. Let me know if you want to help and test the solution before I commit it to the repo.

-Tunde. 

Ryan Senior

unread,
Jan 22, 2011, 11:34:09 PM1/22/11
to clojure...@googlegroups.com
Sure.  Can you push it up to a branch?

-Ryan

Tunde Ashafa

unread,
Jan 23, 2011, 12:26:48 PM1/23/11
to clojure...@googlegroups.com
Done. 


Let me know if it works.

-Tunde.

Ryan Senior

unread,
Jan 25, 2011, 11:38:47 PM1/25/11
to clojure...@googlegroups.com
This looks to have fixed my issue.

Thanks!

Ryan
Reply all
Reply to author
Forward
0 new messages