Hi Conor,
it's hard to tell really. Maybe a solution is intercepting the calls to
couchjs. I just posted one possible solution here:
https://gist.github.com/sebastianrothbucher/01afe929095a55ab233e
Basically, it's using the tee command to write input and output to a file
to analyze.
I don't really have a striking idea, but maybe looking at the outputs in
your case helps.
Good luck
Sebastian
On Tue, Feb 10, 2015 at 5:00 PM, Conor Mac Aoidh <[email protected]>
wrote:
> Hi All,
>
> Been experiencing a strange issue where a couchdb view hangs repeatedly
> and does not stop hanging until the couch service is restarted. It seems to
> be happening on all databases (with the same view/design function)
> simultaneously, ie. once its triggered, it happens everywhere where that
> design doc is used.
>
> Stranger still, in some of the databases that are hanging, there are only
> 1 or 2 documents to index, so it does not appear to be a load issue. I have
> debug mode enabled and all I get in the logs for each request is:
> /
> //[Tue, 10 Feb 2015 15:33:41 GMT] [debug] [<0.1620.0>] 'GET'
> /ie_conormacaoidh_gmail_com/_design/proj//ects/_view/projects/all {1,//
> //1} from//
> // "193.1.208.99"//
> //Headers: [{'Accept',"*/*"},//
> // {'Authorization',"Basic YWRtaW46UVlIOHdFcGZLQXZzUFBu"},//
> // {'Host',"mysite.com:5984"},//
> // {'User-Agent',"curl/7.32.0"}]//
> //[Tue, 10 Feb 2015 15:33:41 GMT] [debug] [<0.1620.0>] OAuth Params: []/
>
>
> And the view function:
> /
> //function (doc) {//
> // if(doc.type === 'project' && doc.status !== 'deleted') {//
> // emit(doc.created, doc);//
> // }//
> //}/
>
> Anyone have any ideas what is causing this or how to debug it further?
>
> P.S. I'm using couchdb 1.6.1
>
> Thanks
>
> Conor
>