couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <>
Subject Re: view_indexer fails / cryptic error messages
Date Fri, 22 Mar 2013 08:20:04 GMT
On 22 March 2013 06:16, Gerald Richter - ECOS <> wrote:
> Hi,
> I am using couchdb for over two years now and I really love it, but I hate it’s error
messages. If there is one thing I would wish that should be in the next release, than it would
be: human readable error messages. I know that writing good error messages is nothing that
programmer likes to do. We like more to implement great new features, but for the daily work
having a good diagnostic message is of so much value and saves so much time…

Good call, maybe you want to open a JIRA for this and we can discuss
what needs to change?

> So in addition to the many hour I spend in the past, trying to decrypt an error message
of couchdb, here is one that really gives me no clue what it is about and I am giving up.
Neither starting couchdb with debug output, nor looking at the output of my viewserver, shows
anything irregular. Basically a view index is rebuild and it crashes somewhere in the middle
of the process with the error message below.  I hope somebody on the list, could shed some
light what’s going on here.

If you can run the view build with log level = debug  and send a link
to the results we might see something more interesting.

Don't forget what version of erlang, and couch you are running.

I'm pretty sure one of these fields in that log excerpt will tell you
the last doc processed but I don't see it right now myself.

If your view is small, you might consider sprinkling in some log
bearing in mind there's a *significant* performance impact for doing

If your view is failing at the same place each time, you'll see this
when you delete the view, re-run the build, query _info (see below)
and then re-run the build and re-query _info again.

If that *is* the case you can run a few of those docs manually through
the view engine, e.g. for JS like this


View raw message