Could be a regression on trunk, does it happen with the latest stable release too?
B. On 15 December 2011 05:26, Daniel Bryan <[email protected]> wrote: > I have a script that deletes a design document and a special lock file that I > keep in the database and then adds them anew, based on the contents of a > file. I know I could just be doing a document update, but bear with me. > > This is what happens normally: > > curl -i -X GET > http://user:password@localhost:5984/datawarehousing/_design/dataWarehousing/_view/appLogs >> HTTP/1.1 200 OK >> Transfer-Encoding: chunked >> Server: CouchDB/1.3.0a- (Erlang OTP/R14B04) >> ETag: "CTTTVNJNOUDEF7D1VK388994B" >> Date: Thu, 15 Dec 2011 05:15:53 GMT >> Content-Type: text/plain; charset=utf-8 >> Cache-Control: must-revalidate >> >> {"total_rows":2,"offset":0,"rows":[ >> {"id":"a248288e228df8b28e83a86be100ca80","key":"2011-12-15 05:15:33 >> +0000","value":"Moved file"}, >> {"id":"a248288e228df8b28e83a86be100da00","key":"2011-12-15 05:15:33 >> +0000","value":"Moved file"} >> ]} > > > > Then I run a script that deletes a bunch of documents and adds them again > from files (these are settings that are defined externally): > >> [Thu, 15 Dec 2011 05:19:50 GMT] [info] [<0.154.0>] 127.0.0.1 - - GET >> /datawarehousing/ 200 >> [Thu, 15 Dec 2011 05:19:50 GMT] [info] [<0.159.0>] 127.0.0.1 - - GET >> /datawarehousing/dataWarehousingSettings 200 >> [Thu, 15 Dec 2011 05:19:50 GMT] [info] [<0.171.0>] 127.0.0.1 - - DELETE >> /datawarehousing/dataWarehousingSettings?rev=1-07c70b44abd7971da2d6e90efb578bb3 >> 200 >> [Thu, 15 Dec 2011 05:19:50 GMT] [info] [<0.169.0>] 127.0.0.1 - - POST >> /datawarehousing/ 201 >> [Thu, 15 Dec 2011 05:19:51 GMT] [info] [<0.170.0>] 127.0.0.1 - - GET >> /datawarehousing/_design/dataWarehousing 200 >> [Thu, 15 Dec 2011 05:19:51 GMT] [info] [<0.172.0>] 127.0.0.1 - - DELETE >> /datawarehousing/_design/dataWarehousing?rev=1-0d5435839176c2c315cbe9ebeaeb6578 >> 200 >> [Thu, 15 Dec 2011 05:19:51 GMT] [info] [<0.174.0>] 127.0.0.1 - - POST >> /datawarehousing/ 201 >> [Thu, 15 Dec 2011 05:19:51 GMT] [info] [<0.173.0>] 127.0.0.1 - - GET >> /datawarehousing/lockFile 200 >> [Thu, 15 Dec 2011 05:19:51 GMT] [info] [<0.136.0>] 127.0.0.1 - - PUT >> /datawarehousing/lockFile 201 > > > > If I run the same query with curl as above, I get this: >> HTTP/1.1 500 Internal Server Error >> Server: CouchDB/1.3.0a- (Erlang OTP/R14B04) >> Date: Thu, 15 Dec 2011 05:21:14 GMT >> Content-Type: text/plain; charset=utf-8 >> Content-Length: 84 >> Cache-Control: must-revalidate >> >> {"error":"noproc","reason":"{gen_server,call,[<0.271.0>,{get_state,13},infinity]}"} > > Here's the entry from the CouchDB log (debug level set to 'debug'): > >> [Thu, 15 Dec 2011 05:23:17 GMT] [error] [<0.129.0>] Uncaught error in HTTP >> request: {exit, >> {noproc, >> {gen_server,call, >> [<0.271.0>, >> {get_state,13}, >> infinity]}}} >> [Thu, 15 Dec 2011 05:23:17 GMT] [info] [<0.129.0>] Stacktrace: >> [{io_lib_pretty,cind_tag_tuple,7}, >> {io_lib_pretty,while_fail,3}, >> {io_lib_pretty,print,6}, >> {io_lib_format,build,3}, >> {io_lib_format,build,3}, >> {io_lib_format,build,3}, >> {io_lib_format,build,3}, >> {io_lib_format,build,3}] >> [Thu, 15 Dec 2011 05:23:17 GMT] [info] [<0.129.0>] 127.0.0.1 - - GET >> /datawarehousing/_design/dataWarehousing/_view/appLogs 500 > > > > > And nothing I've been able to do has been able to fix it aside from deleting > the entire database and recreating it. > > Does anyone know what any of this means? > > > >
