Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82BFEC90D for ; Mon, 23 Jul 2012 09:50:09 +0000 (UTC) Received: (qmail 85713 invoked by uid 500); 23 Jul 2012 09:50:08 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 85493 invoked by uid 500); 23 Jul 2012 09:50:07 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 85458 invoked by uid 99); 23 Jul 2012 09:50:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 09:50:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of volker.mische@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bk0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 09:49:58 +0000 Received: by bkcjf3 with SMTP id jf3so4655365bkc.11 for ; Mon, 23 Jul 2012 02:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=NaAWeCeu4dv+kpAOEGddt9xIW9UZKrYbv7pPHugA3ZU=; b=N2vkzK56I9zvoNavDMPfIYqt0kil8Cm0qhzUgbYdfuPVQkICuE+G4uqerrhlizJx+I QD7YQf56eNzdnYQ44Sap/UtmT0KzULRIS8nBaoXmOTJUkC8zfrDqRtUPUt9HZ/2tGxOo pHWOCip+eV02ciEw/k0YLLYxhrAQ1cS9Unjtcr6sShjM3CFI0PIqoeslDGllzw4cLjIL fhUb6gE06dUZC92PGS+bHH5iZ2qYWWhWS2QcMMqquqC42CHMjEMGBn9awYdIAjO2h3H/ saX2c2oirq3G4lhKhkqeXqkHObhAsv/v9fKU5uaUtSPVnMp0w+NCqBBjh47+KdbyKonT V6Gg== Received: by 10.205.134.137 with SMTP id ic9mr7363580bkc.57.1343036977379; Mon, 23 Jul 2012 02:49:37 -0700 (PDT) Received: from [192.168.178.28] (p4FF9A03B.dip.t-dialin.net. [79.249.160.59]) by mx.google.com with ESMTPS id hg13sm6692627bkc.7.2012.07.23.02.49.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Jul 2012 02:49:36 -0700 (PDT) Message-ID: <500D1E3C.30203@gmail.com> Date: Mon, 23 Jul 2012 11:49:48 +0200 From: Volker Mische User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: user@couchdb.apache.org CC: ScubbX Subject: Re: Error in Spatial-Index-Creation ? References: <500ABF44.40005@gmail.com> In-Reply-To: <500ABF44.40005@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 07/21/2012 04:40 PM, ScubbX wrote: > Hello! > > I get an error-return when executing a spatial view for the first time. > Everything goes fine when using non-spatial views. The index-generation > is aborting and the following error is displayed: > > |{"error":"{function_clause, > [{couch_spatial_updater,process_result, > [[<<\"railway\">>||,[<<\"8091320\">>,<<\"node\">>,<<\"halt\">>]]]}, > {couch_spatial_updater,'-process_results/1-fun-0-'||,2}, > {lists,foldl,3}, > {lists,map,2}, > {lists,map,2}, > {lists,map,2}, > {couch_spatial_updater||,spatial_docs,2}, > {couch_spatial_updater,spatial_compute,2}]}","reason":"{gen_server,call,[<0.18574||.0>,{request_group,445226},infinity]}"}| > > > This happens with different CouchDB installations (Ubuntu 12.04, a > self-compiled 1.2.0 and an older CouchBase in a VirtualMachine) on large > databases (in this case 440.000 entries, the error happens after about > processing 18.000). The view worked fine when executed on a database > with only about 2.300 entries. > > The spatial view looks like this (it has become a bit bloated because of > debugging): > > function(doc) { > if(doc.geometry && doc.properties) { > if(doc.properties.tags && doc.geometry.coordinates){ > if(doc.properties.tags.amenity) { > if(doc.properties.tags.amenity == "bicycle_parking") { > emit(doc.geometry, 1); > }}}}} > > I tried other spatial-views but they produce the same error. It seems to > me like an internal problem, or could there be something wrong with the > data? The document that produced the error is this: > > {"total_rows":445220,"offset":413135,"rows":[ > {"id":"node8091320", > "key":"node8091320", > "value":{ > "_id":"node8091320", > "_rev":"1-2eb0febff1242a1aa7514991a03a5e05", > "geometry":{ > "type":"Point", > "coordinates":[16.3148334,48.2232677]}, > "type":"Feature", > "properties":{ > "changeset":9169859, > "uid":129531, > "tags":{ > "railway":"halt", > "uic_ref":"8100271", > "name":"Hernals" > }, > "timestamp":"2011-08-30T18:27:09Z", > "version":28, > "user":"almich" > } > } > } > ]} > > I hope you can see something wrong her and would appreciate your help or > comment. > > Greetings, > Markus > > PS: The installations of the master-branch of CouchDB is going fine, but > the master of GeoCouch does not compile for me. > Hi Markus, your "PS" are the important bits. Currently GeoCouch doesn't work with the master branch of CouchDB (which will become 1.3.x). You have to use the 1.2.x branch (or the 1.2.0 release). In order to get GeoCouch to work with that, you also have to use the correct branch of GeoCouch, which would be the "couchdb1.2.x" branch. Cheers, Volker