You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Nikolay Vlasov <vl...@gmail.com> on 2014/09/29 16:05:36 UTC

Geocouch and CouchDB 1.6.1 comatibility

Hi everyone,

I'm trying to compile Geocouch with CouchDB 1.6.1 on Raspberry Pi with
Raspbian Wheezy. The code compiled correctly, without errors but system
doesn't pass tests. I'm also trying to implement example from this
book: Getting
Started with GEO, CouchDB, and Node.js
<http://www.amazon.com/Getting-Started-GEO-CouchDB-Node-js/dp/1449307523>
and on the request like the following:

http://192.168.0.234:5984/geoexample/_design/geocats/_spatial/points?bbox=-0,0,180,90


I'm getting this in the log (server freshly restarted):

[Mon, 29 Sep 2014 14:01:28 GMT] [info] [<0.32.0>] Apache CouchDB has
started on http://0.0.0.0:5984/
[Mon, 29 Sep 2014 14:01:53 GMT] [info] [<0.185.0>] Opening index for db:
geoexample idx: _design/geocats sig: "76cb79e5a7640ee806c556ed29b882d5"
[Mon, 29 Sep 2014 14:01:53 GMT] [info] [<0.189.0>] Starting index update
for db: geoexample idx: _design/geocats
[Mon, 29 Sep 2014 14:01:54 GMT] [error] [emulator] Error in process
<0.195.0> with exit value:
{undef,[{vtree_delete,delete,[{vtree,<0.186.0>,nil,#Fun<couch_spatial_util.5.112812810>,nil,2000,2000,4.000000e-01},[]],[]},{couch_spatial_updater,'-write_kvs/4-fun-0-',4,[{file,"src/couch_spatial_updater.erl"},{line,240}]},{lists,zipwith,3,[{file,"lists.erl"},{line,385}]},{couch_spatial_updater...



[Mon, 29 Sep 2014 14:01:54 GMT] [error] [<0.117.0>] {error_report,<0.31.0>,
                     {<0.117.0>,crash_report,
                      [[{initial_call,
                         {mochiweb_acceptor,init,
                          ['Argument__1','Argument__2','Argument__3']}},
                        {pid,<0.117.0>},
                        {registered_name,[]},
                        {error_info,
                         {error,badarg,
                          [{erlang,list_to_binary,
                            [[{vtree_delete,delete,
                               [{vtree,<0.186.0>,nil,
                                 #Fun<couch_spatial_util.5.112812810>,nil,
                                 2000,2000,0.4},
                                []],
                               []},

{couch_spatial_updater,'-write_kvs/4-fun-0-',4,
                               [{file,"src/couch_spatial_updater.erl"},
                                {line,240}]},
                              {lists,zipwith,3,
                               [{file,"lists.erl"},{line,385}]},
                              {couch_spatial_updater,write_kvs,4,
                               [{file,"src/couch_spatial_updater.erl"},
                                {line,251}]},
                              {couch_spatial_updater,write_results,2,
                               [{file,"src/couch_spatial_updater.erl"},
                                {line,157}]}]],
                            []},
                           {couch_httpd,error_info,1,
                            [{file,"couch_httpd.erl"},{line,818}]},
                           {couch_httpd,send_error,2,
                            [{file,"couch_httpd.erl"},{line,925}]},
                           {couch_httpd,handle_request_int,5,
                            [{file,"couch_httpd.erl"},{line,353}]},
                           {mochiweb_http,headers,5,
                            [{file,"mochiweb_http.erl"},{line,94}]},
                           {proc_lib,init_p_do_apply,3,
                            [{file,"proc_lib.erl"},{line,227}]}]}},
                        {ancestors,
                         [couch_httpd,couch_secondary_services,
                          couch_server_sup,<0.32.0>]},
                        {messages,[]},
                        {links,[<0.108.0>,#Port<0.3159>]},
                        {dictionary,
                         [{mochiweb_request_qs,[{"bbox","-0,0,180,90"}]},
                          {couch_rewrite_count,0},
                          {mochiweb_request_cookie,[]}]},
                        {trap_exit,false},
                        {status,running},
                        {heap_size,4181},
                        {stack_size,24},
                        {reductions,4077}],
                       []]}}

Any ideas on what's wrong?

Re: Geocouch and CouchDB 1.6.1 comatibility

Posted by Dave Cottlehuber <dc...@skunkwerks.at>.
Hi Nikolai

What instructions are you using to build both couch & geocouch, & did you try this on a normal debian wheezy instance too successfully?

A+
Dave

-----Original Message-----
From: Nikolay Vlasov <vl...@gmail.com>
Reply: user@couchdb.apache.org <us...@couchdb.apache.org>>
Date: 29. September 2014 at 18:15:59
To: user@couchdb.apache.org <us...@couchdb.apache.org>>
Subject:  Geocouch and CouchDB 1.6.1 comatibility

> Hi everyone,
>  
> I'm trying to compile Geocouch with CouchDB 1.6.1 on Raspberry Pi with
> Raspbian Wheezy. The code compiled correctly, without errors but system
> doesn't pass tests. I'm also trying to implement example from this
> book: Getting
> Started with GEO, CouchDB, and Node.js
>  
> and on the request like the following:
>  
> http://192.168.0.234:5984/geoexample/_design/geocats/_spatial/points?bbox=-0,0,180,90  
>  
>  
> I'm getting this in the log (server freshly restarted):
>  
> [Mon, 29 Sep 2014 14:01:28 GMT] [info] [<0.32.0>] Apache CouchDB has
> started on http://0.0.0.0:5984/
> [Mon, 29 Sep 2014 14:01:53 GMT] [info] [<0.185.0>] Opening index for db:
> geoexample idx: _design/geocats sig: "76cb79e5a7640ee806c556ed29b882d5"
> [Mon, 29 Sep 2014 14:01:53 GMT] [info] [<0.189.0>] Starting index update
> for db: geoexample idx: _design/geocats
> [Mon, 29 Sep 2014 14:01:54 GMT] [error] [emulator] Error in process
> <0.195.0> with exit value:
> {undef,[{vtree_delete,delete,[{vtree,<0.186.0>,nil,#Fun,nil,2000,2000,4.000000e-01},[]],[]},{couch_spatial_updater,'-write_kvs/4-fun-0-',4,[{file,"src/couch_spatial_updater.erl"},{line,240}]},{lists,zipwith,3,[{file,"lists.erl"},{line,385}]},{couch_spatial_updater...  
>  
>  
>  
> [Mon, 29 Sep 2014 14:01:54 GMT] [error] [<0.117.0>] {error_report,<0.31.0>,
> {<0.117.0>,crash_report,
> [[{initial_call,
> {mochiweb_acceptor,init,
> ['Argument__1','Argument__2','Argument__3']}},
> {pid,<0.117.0>},
> {registered_name,[]},
> {error_info,
> {error,badarg,
> [{erlang,list_to_binary,
> [[{vtree_delete,delete,
> [{vtree,<0.186.0>,nil,
> #Fun,nil,
> 2000,2000,0.4},
> []],
> []},
>  
> {couch_spatial_updater,'-write_kvs/4-fun-0-',4,
> [{file,"src/couch_spatial_updater.erl"},
> {line,240}]},
> {lists,zipwith,3,
> [{file,"lists.erl"},{line,385}]},
> {couch_spatial_updater,write_kvs,4,
> [{file,"src/couch_spatial_updater.erl"},
> {line,251}]},
> {couch_spatial_updater,write_results,2,
> [{file,"src/couch_spatial_updater.erl"},
> {line,157}]}]],
> []},
> {couch_httpd,error_info,1,
> [{file,"couch_httpd.erl"},{line,818}]},
> {couch_httpd,send_error,2,
> [{file,"couch_httpd.erl"},{line,925}]},
> {couch_httpd,handle_request_int,5,
> [{file,"couch_httpd.erl"},{line,353}]},
> {mochiweb_http,headers,5,
> [{file,"mochiweb_http.erl"},{line,94}]},
> {proc_lib,init_p_do_apply,3,
> [{file,"proc_lib.erl"},{line,227}]}]}},
> {ancestors,
> [couch_httpd,couch_secondary_services,
> couch_server_sup,<0.32.0>]},
> {messages,[]},
> {links,[<0.108.0>,#Port<0.3159>]},
> {dictionary,
> [{mochiweb_request_qs,[{"bbox","-0,0,180,90"}]},
> {couch_rewrite_count,0},
> {mochiweb_request_cookie,[]}]},
> {trap_exit,false},
> {status,running},
> {heap_size,4181},
> {stack_size,24},
> {reductions,4077}],
> []]}}
>  
> Any ideas on what's wrong?
>  

—
Dave Cottlehuber
dch@skunkwerks.at
+43 699 11 08 96 13
Managing Director
Skunkwerks, GmbH
Firmenbuch 410811i



Re: Fwd: Geocouch and CouchDB 1.6.1 comatibility

Posted by Dave Cottlehuber <dc...@jsonified.com>.
From: Nikolay Vlasov <vl...@gmail.com>
Reply: Nikolay Vlasov <vl...@gmail.com>>
Date: 06. Oktober 2014 at 03:35:15
To: dch@skunkwerks.at <dc...@skunkwerks.at>>, user@couchdb.apache.org <us...@couchdb.apache.org>>
Subject:  Fwd: Geocouch and CouchDB 1.6.1 comatibility

> Hi Dave,
>  
> I followed the following instructions:
>  
> CouchDB:
> http://jeeonthepi.blogspot.sg/2014/05/installing-couchdb-on-raspberry-pi.html  
> The CouchDB works ok, I'm playing around with it now.
>  
> For Geocouch I tried the following two instructions (one at a time with
> recompiling both Couch and Geocouch between them):
> 1. https://github.com/couchbase/geocouch
> 2. http://wiki.openstreetmap.org/wiki/OSMCouch#Installation
>  
> The interesting thing is that in both cases I couldn't find the script
> named './bootstrap' in the cloned project. So I had to skip this step and
> start with './config'.
>  
> And no, I haven't tried it on normal Debian Wheezy. Is it non-compatible?

Hi Nikolay,

Main reason for mentioning std debian is that somebody can walk through the same steps as you and check it. I’ve got no pi available and qemu is painfully slow for my limited attention span.

The instructions you’ve provided won’t work as they use git master, which is the forthcoming couchdb 2.0 and has a radically different structure.

If you checkout the 1.6.1 branch things should work again as expected, atm it sounds like you have a weird mix. I’d clean up and start from scratch here myself.

A+
Dave



Fwd: Geocouch and CouchDB 1.6.1 comatibility

Posted by Nikolay Vlasov <vl...@gmail.com>.
Hi Dave,

I followed the following instructions:

CouchDB:
http://jeeonthepi.blogspot.sg/2014/05/installing-couchdb-on-raspberry-pi.html
The CouchDB works ok, I'm playing around with it now.

For Geocouch I tried the following two instructions (one at a time with
recompiling both Couch and Geocouch between them):
1.  https://github.com/couchbase/geocouch
2. http://wiki.openstreetmap.org/wiki/OSMCouch#Installation

The interesting thing is that in both cases I couldn't find the script
named './bootstrap' in the cloned project. So I had to skip this step and
start with './config'.

And no, I haven't tried it on normal Debian Wheezy. Is it non-compatible?

---------- Forwarded message ----------
From: Nikolay Vlasov <vl...@gmail.com>
Date: Mon, Sep 29, 2014 at 10:05 PM
Subject: Geocouch and CouchDB 1.6.1 comatibility
To: user@couchdb.apache.org


Hi everyone,

I'm trying to compile Geocouch with CouchDB 1.6.1 on Raspberry Pi with
Raspbian Wheezy. The code compiled correctly, without errors but system
doesn't pass tests. I'm also trying to implement example from this
book: Getting
Started with GEO, CouchDB, and Node.js
<http://www.amazon.com/Getting-Started-GEO-CouchDB-Node-js/dp/1449307523>
and on the request like the following:

http://192.168.0.234:5984/geoexample/_design/geocats/_spatial/points?bbox=-0,0,180,90


I'm getting this in the log (server freshly restarted):

[Mon, 29 Sep 2014 14:01:28 GMT] [info] [<0.32.0>] Apache CouchDB has
started on http://0.0.0.0:5984/
[Mon, 29 Sep 2014 14:01:53 GMT] [info] [<0.185.0>] Opening index for db:
geoexample idx: _design/geocats sig: "76cb79e5a7640ee806c556ed29b882d5"
[Mon, 29 Sep 2014 14:01:53 GMT] [info] [<0.189.0>] Starting index update
for db: geoexample idx: _design/geocats
[Mon, 29 Sep 2014 14:01:54 GMT] [error] [emulator] Error in process
<0.195.0> with exit value:
{undef,[{vtree_delete,delete,[{vtree,<0.186.0>,nil,#Fun<couch_spatial_util.5.112812810>,nil,2000,2000,4.000000e-01},[]],[]},{couch_spatial_updater,'-write_kvs/4-fun-0-',4,[{file,"src/couch_spatial_updater.erl"},{line,240}]},{lists,zipwith,3,[{file,"lists.erl"},{line,385}]},{couch_spatial_updater...



[Mon, 29 Sep 2014 14:01:54 GMT] [error] [<0.117.0>] {error_report,<0.31.0>,
                     {<0.117.0>,crash_report,
                      [[{initial_call,
                         {mochiweb_acceptor,init,
                          ['Argument__1','Argument__2','Argument__3']}},
                        {pid,<0.117.0>},
                        {registered_name,[]},
                        {error_info,
                         {error,badarg,
                          [{erlang,list_to_binary,
                            [[{vtree_delete,delete,
                               [{vtree,<0.186.0>,nil,
                                 #Fun<couch_spatial_util.5.112812810>,nil,
                                 2000,2000,0.4},
                                []],
                               []},

{couch_spatial_updater,'-write_kvs/4-fun-0-',4,
                               [{file,"src/couch_spatial_updater.erl"},
                                {line,240}]},
                              {lists,zipwith,3,
                               [{file,"lists.erl"},{line,385}]},
                              {couch_spatial_updater,write_kvs,4,
                               [{file,"src/couch_spatial_updater.erl"},
                                {line,251}]},
                              {couch_spatial_updater,write_results,2,
                               [{file,"src/couch_spatial_updater.erl"},
                                {line,157}]}]],
                            []},
                           {couch_httpd,error_info,1,
                            [{file,"couch_httpd.erl"},{line,818}]},
                           {couch_httpd,send_error,2,
                            [{file,"couch_httpd.erl"},{line,925}]},
                           {couch_httpd,handle_request_int,5,
                            [{file,"couch_httpd.erl"},{line,353}]},
                           {mochiweb_http,headers,5,
                            [{file,"mochiweb_http.erl"},{line,94}]},
                           {proc_lib,init_p_do_apply,3,
                            [{file,"proc_lib.erl"},{line,227}]}]}},
                        {ancestors,
                         [couch_httpd,couch_secondary_services,
                          couch_server_sup,<0.32.0>]},
                        {messages,[]},
                        {links,[<0.108.0>,#Port<0.3159>]},
                        {dictionary,
                         [{mochiweb_request_qs,[{"bbox","-0,0,180,90"}]},
                          {couch_rewrite_count,0},
                          {mochiweb_request_cookie,[]}]},
                        {trap_exit,false},
                        {status,running},
                        {heap_size,4181},
                        {stack_size,24},
                        {reductions,4077}],
                       []]}}

Any ideas on what's wrong?