Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 11728 invoked from network); 17 Jul 2010 16:15:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Jul 2010 16:15:23 -0000 Received: (qmail 92578 invoked by uid 500); 17 Jul 2010 16:15:22 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 92523 invoked by uid 500); 17 Jul 2010 16:15:21 -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 92515 invoked by uid 99); 17 Jul 2010 16:15:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jul 2010 16:15:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of afters.mail@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jul 2010 16:15:13 +0000 Received: by wya21 with SMTP id 21so4139000wya.11 for ; Sat, 17 Jul 2010 09:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=WP+S880NUdPaaPv1KNBHVNH+WnlMQqQpzuPpvx1/6hc=; b=de73fZb6jXrq/n3K9S/8fSJ9KY/+cDDZItgcYq7jp0RtzxtF+m9v8TA8OQ/SnQF7SZ Jgik/RQSUhCdZtGx0eKmPwaykxzHj8frycfZD3ugwVPw7hrfYKnZUZsDjrQ6ee/12vZU hpLYP0imnucgW/OlBpuvCT5YDIB1e5M67v1KA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=V6G28FoTfx5e+C2C+aouymSA5UCTQZ4xGFZMuqXSnwmn6j96L+djN0gf5lNgTOhYGJ /hAJExTpMOqkv/xxhBuVZ9WpXhON1qR42Bf6d8TbJIHV17JvBWAUbIovOvr14UolwF5K jiKbezyfOTf9XkUlOA69X3/eiN7usro9HDMIc= MIME-Version: 1.0 Received: by 10.227.37.140 with SMTP id x12mr2090581wbd.98.1279383292994; Sat, 17 Jul 2010 09:14:52 -0700 (PDT) Received: by 10.216.135.205 with HTTP; Sat, 17 Jul 2010 09:14:52 -0700 (PDT) In-Reply-To: References: <4C404D20.1040407@gmail.com> Date: Sat, 17 Jul 2010 19:14:52 +0300 Message-ID: Subject: Re: couchdb 1.0.0 with ubuntu 10.4 From: afters To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=002215974d46b5e3e7048b97a241 X-Virus-Checked: Checked by ClamAV on apache.org --002215974d46b5e3e7048b97a241 Content-Type: text/plain; charset=ISO-8859-1 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 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}, > {<0.362.0>,#Fun}, > {<0.355.0>,#Fun}, > {<0.355.0>,#Fun}, > {<0.353.0>,#Fun}, > {<0.350.0>,#Fun}, > {<0.349.0>,#Fun}, > {<0.349.0>,#Fun}, > {<0.347.0>,#Fun}, > {<0.346.0>,#Fun}, > {<0.344.0>,#Fun}, > {false,#Fun}, > {<0.341.0>,#Fun}, > {<0.341.0>,#Fun}, > {<0.262.0>,#Fun}], > "/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 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 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 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 > >>> > >> > >> > > > --002215974d46b5e3e7048b97a241--