couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From afters <afters.m...@gmail.com>
Subject Re: couchdb 1.0.0 with ubuntu 10.4
Date Sat, 17 Jul 2010 16:14:52 GMT
Fidel,

Maybe your config files don't have the right permissions? See the
installation instructions.
If that doesn't work, I suggest you re-post your question in its own thread.
It's possible that only Ubuntu users read this one.

 a.

On 17 July 2010 00:48, Fidel Viegas <fidel.viegas@gmail.com> wrote:

> Ok,
>
> I have installed all the erlang dependencies and still get the same
> error while running the first two tests:
>
> Exception raised: {"message":"JSON.parse: Unable to parse value: "}
>
> I checked the logs, but nothing there.
>
> Here is an extract of the last 100 lines of my log file:
>
> -------------- begin extract -------------------------
> root@couchdb:~# tail -n 100 /var/log/couchdb/couch.log
> [Fri, 16 Jul 2010 21:38:07 GMT] [info] [<0.164.0>] 192.168.13.1 - - 'GET' /
> 200
>
> [Fri, 16 Jul 2010 21:38:07 GMT] [info] [<0.162.0>] 192.168.13.1 - -
> 'GET' /_users/ 200
>
> [Fri, 16 Jul 2010 21:38:10 GMT] [info] [<0.165.0>] 192.168.13.1 - -
> 'GET' /_session 200
>
> [Fri, 16 Jul 2010 21:38:10 GMT] [info] [<0.170.0>] 192.168.13.1 - - 'GET' /
> 200
>
> [Fri, 16 Jul 2010 21:38:13 GMT] [info] [<0.165.0>] 192.168.13.1 - -
> 'GET' /_session 200
>
> [Fri, 16 Jul 2010 21:38:13 GMT] [info] [<0.170.0>] 192.168.13.1 - - 'GET' /
> 200
>
> [Fri, 16 Jul 2010 21:38:13 GMT] [info] [<0.171.0>] 192.168.13.1 - -
> 'DELETE' /test_suite_db/ 404
>
> [Fri, 16 Jul 2010 21:38:13 GMT] [info] [<0.175.0>] 192.168.13.1 - -
> 'DELETE' /test_suite_db/ 404
>
> [Fri, 16 Jul 2010 21:38:13 GMT] [info] [<0.176.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db/ 201
>
> [Fri, 16 Jul 2010 21:38:13 GMT] [info] [<0.177.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db/ 412
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.185.0>] 192.168.13.1 - -
> 'DELETE' /test_suite_db 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.186.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.188.0>] 192.168.13.1 - -
> 'DELETE' /test_suite_db%2Fwith_slashes 404
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.196.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db%2Fwith_slashes 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.196.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/ 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.196.0>] 192.168.13.1 - -
> 'GET' /_all_dbs 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.196.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/ 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.197.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db/0 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.197.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/0?revs_info=true 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.197.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/0?local_seq=true 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.205.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db/1 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.206.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db/2 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.207.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db/3 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.207.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/ 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.210.0>] checkpointing view
> update at seq 1 for test_suite_db _temp
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.210.0>] checkpointing view
> update at seq 4 for test_suite_db _temp
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.208.0>] 192.168.13.1 - -
> 'POST' /test_suite_db/_temp_view 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.208.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/0 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.209.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db/0 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.210.0>] checkpointing view
> update at seq 5 for test_suite_db _temp
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.222.0>] 192.168.13.1 - -
> 'POST' /test_suite_db/_temp_view 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.222.0>] 192.168.13.1 - -
> 'GET' /_uuids?count=101 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.223.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db/bd9bc2e25449d62efa0d1fcc63034e18 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.229.0>] 192.168.13.1 - -
> 'PUT' /test_suite_db/bd9bc2e25449d62efa0d1fcc63034549 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.210.0>] checkpointing view
> update at seq 6 for test_suite_db _temp
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.210.0>] checkpointing view
> update at seq 7 for test_suite_db _temp
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.230.0>] 192.168.13.1 - -
> 'POST' /test_suite_db/_temp_view 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.230.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/ 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.238.0>] checkpointing view
> update at seq 2 for test_suite_db _temp
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.238.0>] checkpointing view
> update at seq 7 for test_suite_db _temp
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.231.0>] 192.168.13.1 - -
> 'POST' /test_suite_db/_temp_view 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.237.0>] 192.168.13.1 - -
> 'DELETE' /test_suite_db/0?rev=2-f11d7cac727db1834815181e355127f6 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.237.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/0 404
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.210.0>] checkpointing view
> update at seq 8 for test_suite_db _temp
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.248.0>] 192.168.13.1 - -
> 'POST' /test_suite_db/_temp_view 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.248.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/ 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.248.0>] 192.168.13.1 - -
> 'GET' /test_suite_db/0?rev=3-cac36b6fd7e2c7347b3147626c8cfdaf 200
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.249.0>] 192.168.13.1 - -
> 'POST' /test_suite_db/_ensure_full_commit 201
>
> [Fri, 16 Jul 2010 21:38:14 GMT] [info] [<0.255.0>] 192.168.13.1 - -
> 'POST' /_restart 200
>
> [Fri, 16 Jul 2010 21:38:24 GMT] [info] [<0.289.0>] Apache CouchDB has
> started on http://0.0.0.0:5984/
> ------------- end extract ----------------------------------------
>
> When I try to set the login credentials, I get the following error:
>
> ----------------------- begin error ----------------------------
> [Fri, 16 Jul 2010 21:44:21 GMT] [error] [<0.334.0>] ** Generic server
> couch_config terminating
> ** Last message in was {set,"admins","admin","admin",true}
> ** When Server state == {config,[{<0.335.0>,#Fun<couch_config.2.4103357>},
>                                 {<0.362.0>,#Fun<couch_config.2.4103357>},
>                                 {<0.355.0>,#Fun<couch_config.3.18912695>},
>                                 {<0.355.0>,#Fun<couch_config.3.18912695>},
>                                 {<0.353.0>,#Fun<couch_config.2.4103357>},
>                                 {<0.350.0>,#Fun<couch_config.2.4103357>},
>                                 {<0.349.0>,#Fun<couch_config.2.4103357>},
>                                 {<0.349.0>,#Fun<couch_config.2.4103357>},
>                                 {<0.347.0>,#Fun<couch_config.3.18912695>},
>                                 {<0.346.0>,#Fun<couch_config.2.4103357>},
>                                 {<0.344.0>,#Fun<couch_config.2.4103357>},
>                                 {false,#Fun<couch_server.3.123842465>},
>                                 {<0.341.0>,#Fun<couch_config.3.18912695>},
>                                 {<0.341.0>,#Fun<couch_config.2.4103357>},
>                                 {<0.262.0>,#Fun<couch_config.2.4103357>}],
>                                "/etc/couchdb/local.ini"}
> ** Reason for termination ==
> ** {{badmatch,{error,eacces}},
>    [{couch_config_writer,save_to_file,2},
>     {couch_config,handle_call,3},
>     {gen_server,handle_msg,5},
>     {proc_lib,init_p_do_apply,3}]}
>
>
> [Fri, 16 Jul 2010 21:44:21 GMT] [error] [<0.334.0>]
> {error_report,<0.288.0>,
>              {<0.334.0>,crash_report,
>               [[{initial_call,{couch_config,init,['Argument__1']}},
>                 {pid,<0.334.0>},
>                 {registered_name,couch_config},
>                 {error_info,{exit,{{badmatch,{error,eacces}},
>                                    [{couch_config_writer,save_to_file,2},
>                                     {couch_config,handle_call,3},
>                                     {gen_server,handle_msg,5},
>                                     {proc_lib,init_p_do_apply,3}]},
>                                   [{gen_server,terminate,6},
>                                    {proc_lib,init_p_do_apply,3}]}},
>                 {ancestors,[<0.289.0>]},
>                 {messages,[]},
>                 {links,[<0.335.0>]},
>                 {dictionary,[]},
>                 {trap_exit,false},
>                 {status,running},
>                 {heap_size,6765},
>                 {stack_size,24},
>                 {reductions,49254}],
>                []]}}
>
> [Fri, 16 Jul 2010 21:44:21 GMT] [error] [<0.335.0>]
> {error_report,<0.288.0>,
>    {<0.335.0>,supervisor_report,
>     [{supervisor,{local,couch_server_sup}},
>      {errorContext,child_terminated},
>      {reason,
>          {{badmatch,{error,eacces}},
>           [{couch_config_writer,save_to_file,2},
>            {couch_config,handle_call,3},
>            {gen_server,handle_msg,5},
>            {proc_lib,init_p_do_apply,3}]}},
>      {offender,
>          [{pid,<0.334.0>},
>           {name,couch_config},
>           {mfa,
>               {couch_server_sup,couch_config_start_link_wrapper,
>                   [["/etc/couchdb/default.ini","/etc/couchdb/local.ini",
>                     "/etc/couchdb/default.ini","/etc/couchdb/local.ini"],
>                    <0.334.0>]}},
>           {restart_type,permanent},
>           {shutdown,brutal_kill},
>           {child_type,worker}]}]}}
>
> [Fri, 16 Jul 2010 21:44:21 GMT] [error] [<0.714.0>] Uncaught error in
> HTTP request: {exit,
>                                 {{{badmatch,{error,eacces}},
>                                   [{couch_config_writer,save_to_file,2},
>                                    {couch_config,handle_call,3},
>                                    {gen_server,handle_msg,5},
>                                    {proc_lib,init_p_do_apply,3}]},
>                                  {gen_server,call,
>                                   [couch_config,
>                                    {set,"admins","admin","admin",true}]}}}
> ---------------------- end error -----------------------------------
>
> I know it has something to do with the config file, but I can't really
> figure out what the problem is.
>
> Can someone help with this?
>
> Regards,
>
> Fidel.
>
> On 7/16/10, afters <afters.mail@gmail.com> wrote:
> > FYI, I've just successfully tested these instructions with 1.0.0. I only
> > added some missing permissions-handling that failed some tests - they
> were
> > missing for 0.11.0 too.
> >
> >  a.
> >
> > On 16 July 2010 17:54, afters <afters.mail@gmail.com> wrote:
> >
> >> np, I'm glad to help.
> >>
> >> If you're doing a deb package (which would be great), you may be missing
> a
> >> couple of dependencies. I have installed 0.11 on a very minimal Ubuntu
> >> (that
> >> contains very few packages, much less than a clean install), and put the
> >> instructions at the second example here:
> >>
> >>   http://wiki.apache.org/couchdb/Installing_on_Ubuntu
> >>
> >> A couple of notes:
> >> I tried to avoid unessential packages, and so dropped the
> 'xulrunner-dev'
> >> package that has lots of dependencies, and instead installed the
> >> Spider-monkey js-engine from source. Nevertheless, 'xulrunner-dev' would
> >> be
> >> just fine.
> >> Also, the 'erlang' package has lots of dependenies. It'd be interesting
> to
> >> know what exactly is needed for couchdb to operate.
> >>
> >>  a.
> >>
> >> On 16 July 2010 17:22, Michael <newmaniese@gmail.com> wrote:
> >>
> >>>
> >>> I owe you. Thanks. Here I assumed erlang-dev would have brought the
> >>> regular
> >>> erlang libraries as dependancies. Wow, I spent way too long on that.
> >>>
> >>> For the record, all I needed was* apt-get install erlang* to get these.
> >>>
> >>> From a clean ubuntu install the dependancies to build from source are:
> >>> libicu-dev
> >>> curl
> >>> libcurl4-opensll-dev
> >>> erlang-dev
> >>> erlang
> >>>
> >>> Would there be interest in an unofficial .deb file?
> >>>
> >>> Thanks a,
> >>>
> >>> Michael
> >>>
> >>
> >>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message