Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 77027 invoked from network); 8 Apr 2008 22:09:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Apr 2008 22:09:29 -0000 Received: (qmail 49666 invoked by uid 500); 8 Apr 2008 22:09:29 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 49632 invoked by uid 500); 8 Apr 2008 22:09:29 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 49623 invoked by uid 99); 8 Apr 2008 22:09:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 15:09:29 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of guby.mail@gmail.com designates 209.85.132.248 as permitted sender) Received: from [209.85.132.248] (HELO an-out-0708.google.com) (209.85.132.248) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 22:08:45 +0000 Received: by an-out-0708.google.com with SMTP id b33so551007ana.83 for ; Tue, 08 Apr 2008 15:08:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:mime-version:subject:date:references:x-mailer; bh=5N+LQEGCLCXhKS5fReM6cKtRr3wuJaqxfx8PeTX5YL8=; b=LnPCcLbS2hT/nmb8CrJXUIeEzjp6to+FQ60tN0WBVaVA/H58OZti3yYDW1kGANyK8mn9dN99YqdrEHP2Sx4Ji8WkVf1LePPoSd1AB8j9H3OfkR83vqNkIfi9SmPl7tmp6OkCcUWp+52hj120CjiCMxj1PRLXTSRnq0EiiHyxjMM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject:date:references:x-mailer; b=dWHnQqeqtORsKT3i5wKXAcyomUoPW91sMIeP/dNo7kOqts37ycMzPU2sGDVGtv0VpQFCMrL3SklA1qq1x2CBAQ6V31fzFdybdAn3Zlos7Dm8UUbSQAbMYo5dZXHBXb4Ehll05lNfQVz4dXV6apJNdKZRYluneEnHICGwUNvwUJo= Received: by 10.100.178.13 with SMTP id a13mr12845174anf.8.1207692536668; Tue, 08 Apr 2008 15:08:56 -0700 (PDT) Received: from ?192.168.1.100? ( [200.89.150.124]) by mx.google.com with ESMTPS id d38sm19075137and.17.2008.04.08.15.08.51 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Apr 2008 15:08:55 -0700 (PDT) Message-Id: <0808FA85-FB0B-4643-9682-6F1BA72692CD@gmail.com> From: Guby To: couchdb-user@incubator.apache.org In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-10--395471959 Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Cryptic view errors popping up Date: Tue, 8 Apr 2008 19:07:58 -0300 References: <1C39C036-2BA8-482C-AF77-08ACDC068046@apache.org> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-10--395471959 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Some additional info if that might help you: The three views that are causing me trouble today look like this. It has worked perfectly function(doc) { if (doc.class == "Feed"){ map(doc.attributes.feed_id, doc); } } function(doc) { if (doc.class == "Feed" && doc.attributes.being_checked == false) { map(doc.attributes.next_check, doc); } } function(doc) { if (doc.class == "Feed" && doc.attributes.being_checked == true) { map(doc.attributes.next_check, doc); } } A typical document with class == "Feed" would look like this: { "_id":"57FE8B5DDF5FA55537D76EEB7C4F7C62", "_rev":"346516073", "class":"Feed", "attributes": { "title":"The Unofficial Apple Weblog (TUAW)", "feed_url":"http:\/\/www.tuaw.com\/rss.xml", "url":"http:\/\/www.tuaw.com", "feed_id":"http:\/\/www.tuaw.com\/rss.xml", "description":"The Unofficial Apple Weblog (TUAW)", "last_updated":null, "copyright":"Copyright 2008 Weblogs, Inc. The contents of this feed are available for non-commercial use only.", "being_checked":false, "generator":"Blogsmith http:\/\/www.blogsmith.com\/", "image":"http:\/\/www.tuaw.com\/media\/feedlogo.gif", "next_check":1207692728, "was_scheduled_for_check":1207691521 } } Best regards Sebastian On Apr 8, 2008, at 6:59 PM, Guby wrote: > I am running CouchDB 0.7.2 > I love CouchDB when it is working! And it is really powerful all the > stuff one can do with the views, but: > Every so often, more often lately, views that have worked perfectly > start returning errors... and really cryptic errors too! > If I remove the view and add it again it might work for a little > while, and then the error comes back again. > I can't really make anything out of this error message, but if any > of you do, please let me know if you understand what might be wrong! > > Best regards > Sebastian > > > [error] [emulator] Error in process <0.10595.0> with exit value: > {function_clause,[{couch_btree,modify_kpnode,[{btree,<0.8093.0>, > {6790526,7},#Fun},[],[{insert, > {1207692728,"57FE8B5DDF5FA55537D76EEB7C4F7C62"},{obj, > [{"_id","57FE8B5DDF5FA55537D76EEB7C4F7C62"},{"_rev","346516073"}, > {"class","Feed"},{"attributes",{obj,[{"title"... > > > > =ERROR REPORT==== 8-Apr-2008::18:53:44 === > Error in process <0.10595.0> with exit value: {function_clause, > [{couch_btree,modify_kpnode,[{btree,<0.8093.0>, > {6790526,7},#Fun},[],[{insert, > {1207692728,"57FE8B5DDF5FA55537D76EEB7C4F7C62"},{obj, > [{"_id","57FE8B5DDF5FA55537D76EEB7C4F7C62"},{"_rev","346516073"}, > {"class","Feed"},{"attributes",{obj,[{"title"... > > [info] [<0.10594.0>] HTTP Error (code 500): {obj, > [{error,"function_clause"}, > {reason,"[{couch_btree,modify_kpnode, > \n [{btree,<0.8093.0>,\n > {6790526,7},\n #Fun 11.87050650>},\n [],\n [{insert, > {1207692728,\"57FE8B5DDF5FA55537D76EEB7C4F7C62\"}, > \n {obj,[{\"_id\", > \"57FE8B5DDF5FA55537D76EEB7C4F7C62\"}, > \n {\"_rev\",\"346516073\"}, > \n {\"class\",\"Feed\"}, > \n {\"attributes\", > \n {obj,[{\"title\", > \n \"The Unofficial Apple > Weblog (TUAW)\"},\n {\"feed_url > \",\n \"http://www.tuaw.com/rss.xml > \"},\n {\"url\",\"http://www.tuaw.com > \"},\n {\"feed_id\",\"http://www.tuaw.com/rss.xml > \"},\n {\"description\", > \n \"The Unofficial Apple > Weblog (TUAW)\"},\n > {\"last_updated\",null},\n > {\"copyright\",\n \"Copyright > 2008 Weblogs, Inc. The contents of this feed are available for non- > commercial use only.\"},\n > {\"being_checked\",false},\n > {\"generator\",\n \"Blogsmith http://www.blogsmith.com/ > \"},\n {\"image\", > \n \"http://www.tuaw.com/media/feedlogo.gif > \"},\n {\"next_check\", > 1207692728},\n > {\"was_scheduled_for_check\",\n > 1207691521}]}}]}},\n {insert, > {1207692749,\"595F9051C34C7A0C2C383620E724813C\"}, > \n {obj,[{\"_id\", > \"595F9051C34C7A0C2C383620E724813C\"}, > \n {\"_rev\",\"964772635\"}, > \n {\"class\",\"Feed\"}, > \n {\"attributes\", > \n {obj,[{\"title\",\"Dagbladet.no - > kultur\"},\n {\"feed_url\", > \n \"http://www.dagbladet.no/rss/kultur/ > \"},\n {\"url\", > \n \"http://www.dagbladet.no/kultur// > \"},\n {\"feed_id\", > \n \"http://www.dagbladet.no/rss/kultur/ > \"},\n {\"description\", > \n \"Dagbladet.no - kultur - > export\"},\n {\"last_updated > \",null},\n {\"copyright\",null}, > \n {\"being_checked\",false}, > \n {\"generator\",null}, > \n {\"image\", > \n \"http://www.dagbladet.no/gfx/dagbladet.no.gif > \"},\n {\"next_check\", > 1207692749},\n > {\"was_scheduled_for_check\",\n > 1207691521}]}}]}},\n {insert, > {1207692750,\"F61BD4576778E9A2F7F6B95DD357FA66\"}, > \n {obj,[{\"_id\", > \"F61BD4576778E9A2F7F6B95DD357FA66\"}, > \n {\"_rev\",\"2170658173\"}, > \n {\"class\",\"Feed\"}, > \n {\"attributes\", > \n {obj,[{\"title\",\"Dagbladet.no - > sport\"},\n {\"feed_url\", > \n \"http://www.dagbladet.no/rss/sport/ > \"},\n {\"url\",\"http://www.dagbladet.no/sport// > \"},\n {\"feed_id\", > \n \"http://www.dagbladet.no/rss/sport/ > \"},\n {\"description\", > \n \"Dagbladet.no - sport - > export\"},\n {\"last_updated > \",null},\n {\"copyright\",null}, > \n {\"being_checked\",false}, > \n {\"generator\",null}, > \n {\"image\", > \n \"http://www.dagbladet.no/gfx/dagbladet.no.gif > \"},\n {\"next_check\", > 1207692750},\n > {\"was_scheduled_for_check\",\n > 1207691521}]}}]}},\n {insert, > {1207692751,\"8D1F264FB7F72492E0EFAFAA3FD9BBE5\"}, > \n {obj,[{\"_id\", > \"8D1F264FB7F72492E0EFAFAA3FD9BBE5\"}, > \n {\"_rev\",\"1822787569\"}, > \n {\"class\",\"Feed\"}, > \n {\"attributes\", > \n {obj,[{\"title\",\"Dagbladet.no - > spill\"},\n {\"feed_url\", > \n \"http://www.dagbladet.no/rss/spill/ > \"},\n {\"url\",\"http://www.dagbladet.no/spill// > \"},\n {\"feed_id\", > \n \"http://www.dagbladet.no/rss/spill/ > \"},\n {\"description\", > \n \"Dagbladet.no - spill - > export\"},\n {\"last_updated > \",null},\n {\"copyright\",null}, > \n {\"being_checked\",false}, > \n {\"generator\",null}, > \n {\"image\", > \n \"http://www.dagbladet.no/gfx/dagbladet.no.gif > \"},\n {\"next_check\", > 1207692751},\n > {\"was_scheduled_for_check\",\n > 1207691521}]}}]}},\n {insert, > {1207692752,\"C3D3EE09DAF4BDEE5C77490D3E5F7C86\"}, > \n {obj,[{\"_id\", > \"C3D3EE09DAF4BDEE5C77490D3E5F7C86\"}, > \n {\"_rev\",\"2346335936\"}, > \n {\"class\",\"Feed\"}, > \n {\"attributes\", > \n {obj,[{\"title\",\"Dagbladet.no\"}, > \n {\"feed_url\", > \n \"http://www.dagbladet.no/rss/forsiden/ > \"},\n {\"url\",\"http://www.dagbladet.no/ > \"},\n {\"feed_id\", > \n \"http://www.dagbladet.no/rss/forsiden/ > \"},\n {\"description\", > \"Dagbladet.no - export\"},\n > {\"last_updated\",null},\n > {\"copyright\",null},\n > {\"being_checked\",false},\n > {\"generator\",null},\n {\"image > \",\n \"http://www.dagbladet.no/gfx/dagbladet.no.gif > \"},\n {\"next_check\", > 1207692752},\n > {\"was_scheduled_for_check\",\n > 1207691521}]}}]}},\n {insert, > {1207692753,\"214F131E43C6EA407F6C03FFF8384A56\"}, > \n {obj,[{\"_id\", > \"214F131E43C6EA407F6C03FFF8384A56\"}, > \n {\"_rev\",\"3771929290\"}, > \n {\"class\",\"Feed\"}, > \n {\"attributes\", > \n {obj,[{\"title\",\"Dagbladet.no - > reise\"},\n {\"feed_url\", > \n \"http://www.dagbladet.no/rss/reise/ > \"},\n {\"url\",\"http://www.dagbladet.no/reise// > \"},\n {\"feed_id\", > \n \"http://www.dagbladet.no/rss/reise/ > \"},\n {\"description\", > \n \"Dagbladet.no - reise - > export\"},\n {\"last_updated > \",null},\n {\"copyright\",null}, > \n {\"being_checked\",false}, > \n {\"generator\",null}, > \n {\"image\", > \n \"http://www.dagbladet.no/gfx/dagbladet.no.gif > \"},\n {\"next_check\", > 1207692753},\n > {\"was_scheduled_for_check\",\n > 1207691521}]}}]}}],\n [],[]]},\n > {couch_btree,modify_node,4},\n {couch_btree,query_modify,4},\n > {couch_btree,add_remove,3},\n {couch_view_group,'-write_changes/4-lc > $^3/1-3-',2},\n {couch_view_group,write_changes,4},\n > {couch_view_group,update_int,2}]"}]} > --Apple-Mail-10--395471959--