You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Nicolas Peeters <ni...@gmail.com> on 2014/06/13 12:38:26 UTC

Startup issue with CouchDB on Buildroot

We have been trying to get the CouchDB working on a Buildroot linux. After
quite some headaches, we actually have been able to compile it on Buildroot
(which as such is quite a pain), but we’re getting some issues with the
startup. Maybe you or some friend of yours from the CouchDB community would
know what to do…?

We really have no idea where to look (it saysFile not found...)

Any help is really appreciated.

Apache CouchDB 1.6.0 (LogLevel=info) is starting.
{"init terminating in
do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,collation_driver,"File
not found"}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

Being total newbies in Erlang we don’t even know where to look. Any kind of
help is appreciated.

Thanks a lot.

Nicolas

Re: Startup issue with CouchDB on Buildroot

Posted by Dave Cottlehuber <dc...@jsonified.com>.
Thanks! We're looking into this. We will post the updates if we find the  
real issue and solve it.  


On Fri, Jun 13, 2014 at 1:34 PM, Jan Lehnardt <ja...@apache.org> wrote:  

>  
> On 13 Jun 2014, at 13:32 , Nicolas Peeters <ni...@gmail.com> wrote:  
>  
> > @Jan: How would we know that it's the couch_icu_driver.so ?  
>  
> Because it says “collation_driver,"File not found"”. CouchDB only does one  
> type of collation: in view indexes, and it uses ICU for that :)  


You can look in default.ini for a section like this:

    [couchdb]
    util_driver_dir = …somewhere…


on my OSX it is:

    [couchdb]
    database_dir = /usr/local/var/lib/couchdb
    view_index_dir = /usr/local/var/lib/couchdb
    util_driver_dir = /usr/local/Cellar/couchdb/HEAD/lib/couchdb/erlang/lib/couch-1.7.0+build./priv/lib

and in `util_driver_dir` there are:

    couch_ejson_compare.so
    couch_icu_driver.so

If these files aren’t present, did the configure/make/make install dance work without errors?

A+
Dave


Re: Startup issue with CouchDB on Buildroot

Posted by Nicolas Peeters <ni...@gmail.com>.
Thanks! We're looking into this. We will post the updates if we find the
real issue and solve it.


On Fri, Jun 13, 2014 at 1:34 PM, Jan Lehnardt <ja...@apache.org> wrote:

>
> On 13 Jun 2014, at 13:32 , Nicolas Peeters <ni...@gmail.com> wrote:
>
> > @Jan: How would we know that it's the couch_icu_driver.so ?
>
> Because it says “collation_driver,"File not found"”. CouchDB only does one
> type of collation: in view indexes, and it uses ICU for that :)
>
> Best
> Jan
> --
>
>
>
> >
> >
> > On Fri, Jun 13, 2014 at 1:26 PM, Jan Lehnardt <ja...@apache.org> wrote:
> >
> >>
> >> On 13 Jun 2014, at 12:38 , Nicolas Peeters <ni...@gmail.com> wrote:
> >>
> >>> We have been trying to get the CouchDB working on a Buildroot linux.
> >> After
> >>> quite some headaches, we actually have been able to compile it on
> >> Buildroot
> >>> (which as such is quite a pain), but we’re getting some issues with the
> >>> startup. Maybe you or some friend of yours from the CouchDB community
> >> would
> >>> know what to do…?
> >>>
> >>> We really have no idea where to look (it saysFile not found...)
> >>>
> >>> Any help is really appreciated.
> >>>
> >>> Apache CouchDB 1.6.0 (LogLevel=info) is starting.
> >>> {"init terminating in
> >>>
> >>
> do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,
> >>
> >>>
> >>
> {failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,collation_driver,"File
> >>> not found"}}}}}},
> >>
> >> ^ This is the key. Meaning: couch_icu_driver.so can’t be found. It is
> >> usually built as part of the regular CouchDB build. Its source is in
> >> src/couchdb/priv/icu_driver/
> >>
> >> Best
> >> Jan
> >> --
> >>
> >>
> >>
> >>>
> >>
> [{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
> >>>
> >>> Crash dump was written to: erl_crash.dump
> >>> init terminating in do_boot ()
> >>>
> >>> Being total newbies in Erlang we don’t even know where to look. Any
> kind
> >> of
> >>> help is appreciated.
> >>>
> >>> Thanks a lot.
> >>>
> >>> Nicolas
> >>
> >>
>
>

Re: Startup issue with CouchDB on Buildroot

Posted by Jan Lehnardt <ja...@apache.org>.
On 13 Jun 2014, at 13:32 , Nicolas Peeters <ni...@gmail.com> wrote:

> @Jan: How would we know that it's the couch_icu_driver.so ?

Because it says “collation_driver,"File not found"”. CouchDB only does one type of collation: in view indexes, and it uses ICU for that :)

Best
Jan
--



> 
> 
> On Fri, Jun 13, 2014 at 1:26 PM, Jan Lehnardt <ja...@apache.org> wrote:
> 
>> 
>> On 13 Jun 2014, at 12:38 , Nicolas Peeters <ni...@gmail.com> wrote:
>> 
>>> We have been trying to get the CouchDB working on a Buildroot linux.
>> After
>>> quite some headaches, we actually have been able to compile it on
>> Buildroot
>>> (which as such is quite a pain), but we’re getting some issues with the
>>> startup. Maybe you or some friend of yours from the CouchDB community
>> would
>>> know what to do…?
>>> 
>>> We really have no idea where to look (it saysFile not found...)
>>> 
>>> Any help is really appreciated.
>>> 
>>> Apache CouchDB 1.6.0 (LogLevel=info) is starting.
>>> {"init terminating in
>>> 
>> do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,
>> 
>>> 
>> {failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,collation_driver,"File
>>> not found"}}}}}},
>> 
>> ^ This is the key. Meaning: couch_icu_driver.so can’t be found. It is
>> usually built as part of the regular CouchDB build. Its source is in
>> src/couchdb/priv/icu_driver/
>> 
>> Best
>> Jan
>> --
>> 
>> 
>> 
>>> 
>> [{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
>>> 
>>> Crash dump was written to: erl_crash.dump
>>> init terminating in do_boot ()
>>> 
>>> Being total newbies in Erlang we don’t even know where to look. Any kind
>> of
>>> help is appreciated.
>>> 
>>> Thanks a lot.
>>> 
>>> Nicolas
>> 
>> 


Re: Startup issue with CouchDB on Buildroot

Posted by Nicolas Peeters <ni...@gmail.com>.
@Jan: How would we know that it's the couch_icu_driver.so ?


On Fri, Jun 13, 2014 at 1:26 PM, Jan Lehnardt <ja...@apache.org> wrote:

>
> On 13 Jun 2014, at 12:38 , Nicolas Peeters <ni...@gmail.com> wrote:
>
> > We have been trying to get the CouchDB working on a Buildroot linux.
> After
> > quite some headaches, we actually have been able to compile it on
> Buildroot
> > (which as such is quite a pain), but we’re getting some issues with the
> > startup. Maybe you or some friend of yours from the CouchDB community
> would
> > know what to do…?
> >
> > We really have no idea where to look (it saysFile not found...)
> >
> > Any help is really appreciated.
> >
> > Apache CouchDB 1.6.0 (LogLevel=info) is starting.
> > {"init terminating in
> >
> do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,
>
> >
> {failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,collation_driver,"File
> > not found"}}}}}},
>
> ^ This is the key. Meaning: couch_icu_driver.so can’t be found. It is
> usually built as part of the regular CouchDB build. Its source is in
> src/couchdb/priv/icu_driver/
>
> Best
> Jan
> --
>
>
>
> >
> [{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
> >
> > Crash dump was written to: erl_crash.dump
> > init terminating in do_boot ()
> >
> > Being total newbies in Erlang we don’t even know where to look. Any kind
> of
> > help is appreciated.
> >
> > Thanks a lot.
> >
> > Nicolas
>
>

Re: Startup issue with CouchDB on Buildroot

Posted by Jan Lehnardt <ja...@apache.org>.
On 13 Jun 2014, at 12:38 , Nicolas Peeters <ni...@gmail.com> wrote:

> We have been trying to get the CouchDB working on a Buildroot linux. After
> quite some headaches, we actually have been able to compile it on Buildroot
> (which as such is quite a pain), but we’re getting some issues with the
> startup. Maybe you or some friend of yours from the CouchDB community would
> know what to do…?
> 
> We really have no idea where to look (it saysFile not found...)
> 
> Any help is really appreciated.
> 
> Apache CouchDB 1.6.0 (LogLevel=info) is starting.
> {"init terminating in
> do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,

> {failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,collation_driver,"File
> not found"}}}}}},

^ This is the key. Meaning: couch_icu_driver.so can’t be found. It is usually built as part of the regular CouchDB build. Its source is in src/couchdb/priv/icu_driver/

Best
Jan
--



> [{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
> 
> Crash dump was written to: erl_crash.dump
> init terminating in do_boot ()
> 
> Being total newbies in Erlang we don’t even know where to look. Any kind of
> help is appreciated.
> 
> Thanks a lot.
> 
> Nicolas


Re: Startup issue with CouchDB on Buildroot

Posted by Jan Lehnardt <ja...@thehoodiefirm.com>.
Heya Nicolas & Team,

I replied on the list.

Best
Jan
--

On 13 Jun 2014, at 12:38 , Nicolas Peeters <ni...@gmail.com> wrote:

> We have been trying to get the CouchDB working on a Buildroot linux. After
> quite some headaches, we actually have been able to compile it on Buildroot
> (which as such is quite a pain), but we’re getting some issues with the
> startup. Maybe you or some friend of yours from the CouchDB community would
> know what to do…?
> 
> We really have no idea where to look (it saysFile not found...)
> 
> Any help is really appreciated.
> 
> Apache CouchDB 1.6.0 (LogLevel=info) is starting.
> {"init terminating in
> do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,collation_driver,"File
> not found"}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
> 
> Crash dump was written to: erl_crash.dump
> init terminating in do_boot ()
> 
> Being total newbies in Erlang we don’t even know where to look. Any kind of
> help is appreciated.
> 
> Thanks a lot.
> 
> Nicolas

Jan Lehnardt
The Neighbourhoodie Software GmbH
Adalbertstr. 7-8, 10999 Berlin
neighbourhood.ie

Handelsregister HRB 157851 B Amtsgericht Charlottenburg
Geschäftsführung: Jan Lehnardt, Lena Reinhard