From user-return-11551-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sun Jul 18 11:14:46 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 31211 invoked from network); 18 Jul 2010 11:14:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Jul 2010 11:14:46 -0000 Received: (qmail 72370 invoked by uid 500); 18 Jul 2010 11:14:45 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 71889 invoked by uid 500); 18 Jul 2010 11:14:42 -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 71881 invoked by uid 99); 18 Jul 2010 11:14:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jul 2010 11:14:41 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,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 fidel.viegas@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-gw0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jul 2010 11:14:32 +0000 Received: by gwj17 with SMTP id 17so2849090gwj.11 for ; Sun, 18 Jul 2010 04:13:11 -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=511rQmmqCD+Hqhvuvl6DKcS9joRWwJt32eiQM4W23nE=; b=EpUj/Wvg8mrp3JIwqQ62WvmRjjuLc3KKmTo4OQyeGUfDGUFXYSini03Z7XMVD5gCMN QsCg2k2lhgdtXzFN1YMCRUtFCHzZmVffHAWT5Wn+J2kgJE0h63F5hKonAP4xbcNSmnzy vUolKyTC6k9ldvVH2ty8l1QYgdUfLpsBMlXnQ= 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=IsfijJ7Tnsm9z1fD4ANPzNm9sIRQoW841fRL5QsywOwTb2Kg0h6JWY6r/DnBxYWdla Rpu0dmDa2Zuh8WVKWMSRqmPPOW1gP3+nEX68yeb4sqCHn2TF0xBS+Bnae/nBksf3ciVd AuNXMQXNkxgDbMmcgEU5JLNqR+1GKNvO7veRU= MIME-Version: 1.0 Received: by 10.101.131.40 with SMTP id i40mr3466770ann.49.1279451591144; Sun, 18 Jul 2010 04:13:11 -0700 (PDT) Received: by 10.100.205.7 with HTTP; Sun, 18 Jul 2010 04:13:11 -0700 (PDT) In-Reply-To: References: <4C404D20.1040407@gmail.com> Date: Sun, 18 Jul 2010 12:13:11 +0100 Message-ID: Subject: Re: couchdb 1.0.0 with ubuntu 10.4 From: Fidel Viegas To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Afters, I have followed the same instructions you did, but unfortunately I cannot get my tests to pass. It installs ok, it creates the databases, the documents, but I get a very weird problem saying that it cannot read the json format. I managed to get it to work once, but it hanged during file uploads tests. I am still working with 0.11 as I managed to install it without any problems. I will look into it during the week and see if I can get it solved. Thanks for the feedback. Regards, Fidel. On 7/17/10, afters wrote: > 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 >> >>> >> >> >> >> >> > >> >