Re: understanding couchdb errors

2014-12-30 Thread Adam Kocoloski
Hi Cory, line 440 in the 1.2.1 release of Apache CouchDB looks like this: {ok, <>} = file:pread(Fd, Pos, TotalBytes), Your initial mail reported a 'badmatch' error on this line and indicated a response of the form {ok, Bin}. The match that's failing is therefore the TotalBytes check; i.e. Cou

Re: understanding couchdb errors

2014-12-23 Thread Cory Zue
Hey Alexander, Thanks for the note. Upgrading sounds like a good suggestion, although my first priority right now is just understanding if I have any reason to be concerned about data corruption/loss. Do these stack traces provide any more insight? 1.

Re: understanding couchdb errors

2014-12-23 Thread Alexander Shorin
Hi, Without complete stacktrace it's hard to say, but badmatch/function_clause commonly is about unhandled case in code. According your CouchDB version the very first advice is to upgrade it up to the latest stable release since alot of things had been fixed since 1.2.1 day. Security ones are too.

understanding couchdb errors

2014-12-22 Thread Cory Zue
Hi all, We recently had an accident and lost our database and had to restore from a daily backup. Since restoring, couchdb has seemed to work ok for the most part, but has been giving strange, hard-to-reproduce errors that seem somewhat random. I've pasted a few examples below. We have reason to