From user-return-12352-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sun Aug 29 19:14:11 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 36003 invoked from network); 29 Aug 2010 19:14:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Aug 2010 19:14:11 -0000 Received: (qmail 75985 invoked by uid 500); 29 Aug 2010 19:14:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 75924 invoked by uid 500); 29 Aug 2010 19:14:09 -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 75916 invoked by uid 99); 29 Aug 2010 19:14:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Aug 2010 19:14:09 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Whimsica@aol.com designates 205.188.105.147 as permitted sender) Received: from [205.188.105.147] (HELO imr-da05.mx.aol.com) (205.188.105.147) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Aug 2010 19:13:59 +0000 Received: from imo-da03.mx.aol.com (imo-da03.mx.aol.com [205.188.169.201]) by imr-da05.mx.aol.com (8.14.1/8.14.1) with ESMTP id o7TJDUoM013754 for ; Sun, 29 Aug 2010 15:13:31 -0400 Received: from Whimsica@aol.com by imo-da03.mx.aol.com (mail_out_v42.9.) id o.c79.6b2e9fa8 (37043) for ; Sun, 29 Aug 2010 15:13:25 -0400 (EDT) Received: from smtprly-md01.mx.aol.com (smtprly-md01.mx.aol.com [64.12.143.154]) by cia-db03.mx.aol.com (v129.4) with ESMTP id MAILCIADB031-d4154c7ab152f9; Sun, 29 Aug 2010 15:13:25 -0400 Received: from webmail-m068 (webmail-m068.sim.aol.com [64.12.224.34]) by smtprly-md01.mx.aol.com (v129.4) with ESMTP id MAILSMTPRLYMD013-d4154c7ab152f9; Sun, 29 Aug 2010 15:13:22 -0400 References: <4C7A96E9.3090709@gmail.com> To: user@couchdb.apache.org Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install Date: Sun, 29 Aug 2010 15:13:22 -0400 X-AOL-IP: 75.31.41.117 In-Reply-To: <4C7A96E9.3090709@gmail.com> X-MB-Message-Source: WebUI MIME-Version: 1.0 From: whimsica@aol.com X-MB-Message-Type: User Content-Type: multipart/alternative; boundary="--------MB_8CD15C561D8E686_94C_1D7A2_webmail-m068.sysops.aol.com" X-Mailer: AOL Webmail 32447-STANDARD Received: from 75.31.41.117 by webmail-m068.sysops.aol.com (64.12.224.34) with HTTP (WebMailUI); Sun, 29 Aug 2010 15:13:22 -0400 Message-Id: <8CD15C561D1C260-94C-1573E@webmail-m068.sysops.aol.com> X-AOL-SENDER: Whimsica@aol.com X-Old-Spam-Flag: NO ----------MB_8CD15C561D8E686_94C_1D7A2_webmail-m068.sysops.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" =20 userdan@ubuntu:~$ ps -ef |grep couch root 4490 1 0 11:35 ? 00:00:01 gedit /opt/couchdb-1.0.1/e= tc/couchdb/default.ini userdan 4596 4533 0 11:47 pts/3 00:00:00 grep --color=3Dauto=20 =20 on /etc/couchdb the paths are the same as on=20 /opt/couchdb-1.0.1/etc/ for the ini files local and default. although port and path are ;commented out here is the crash=20 Apache CouchDB 1.0.1 (LogLevel=3Dinfo) is starting. =3DCRASH REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D crasher: initial call: couch_event_sup:init/1 pid: <0.80.0> registered_name: [] exception exit: {{badmatch, {'EXIT', {{badmatch,{error,eacces}}, [{couch_log,init,1}, {gen_event,server_add_handler,4}, {gen_event,handle_msg,5}, {proc_lib,init_p_do_apply,3}]}}}, [{couch_event_sup,init,1}, {gen_server,init_it,6}, {proc_lib,init_p_do_apply,3}]} in function gen_server:init_it/6 ancestors: [couch_primary_services,couch_server_sup,<0.33.0>] messages: [] links: [<0.79.0>,<0.6.0>] dictionary: [] trap_exit: false status: running heap_size: 377 stack_size: 24 reductions: 117 neighbours: =3DSUPERVISOR REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D Supervisor: {local,couch_primary_services} Context: start_error Reason: {{badmatch,{'EXIT',{{badmatch,{error,eacces}}, [{couch_log,init,1}, {gen_event,server_add_handler,4}, {gen_event,handle_msg,5}, {proc_lib,init_p_do_apply,3}]}}}, [{couch_event_sup,init,1}, {gen_server,init_it,6}, {proc_lib,init_p_do_apply,3}]} Offender: [{pid,undefined}, {name,couch_log}, {mfa,{couch_log,start_link,[]}}, {restart_type,permanent}, {shutdown,brutal_kill}, {child_type,worker}] =3DSUPERVISOR REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D Supervisor: {local,couch_server_sup} Context: start_error Reason: shutdown Offender: [{pid,undefined}, {name,couch_primary_services}, {mfa,{couch_server_sup,start_primary_services,[]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] =3DCRASH REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D crasher: initial call: application_master:init/4 pid: <0.32.0> registered_name: [] exception exit: {bad_return, {{couch_app,start, [normal, ["/opt/couchdb-1.0.1/etc/couchdb/default.ini= ", "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]= ]}, {'EXIT', {{badmatch,{error,shutdown}}, [{couch_server_sup,start_server,1}, {application_master,start_it_old,4}]}}}} in function application_master:init/4 ancestors: [<0.31.0>] messages: [{'EXIT',<0.33.0>,normal}] links: [<0.31.0>,<0.7.0>] dictionary: [] trap_exit: true status: running heap_size: 987 stack_size: 24 reductions: 135 neighbours: =3DINFO REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D application: couch exited: {bad_return,{{couch_app,start, [normal, ["/opt/couchdb-1.0.1/etc/couchdb/defa= ult.ini", "/opt/couchdb-1.0.1/etc/couchdb/loca= l.ini"]]}, {'EXIT',{{badmatch,{error,shutdown}}, [{couch_server_sup,start_server,1}, {application_master,start_it_old,4}]}}}= } type: temporary Thansk, Dan =20 -----Original Message----- From: Tim Rupp To: user@couchdb.apache.org Sent: Sun, Aug 29, 2010 10:20 am Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04= install I'm going to take a shot in the dark and guess it's either=20 =20 - incorrect file/folder permissions on couchdb files=20 - older couchdb currently running and using port=20 =20 What's the output of a=20 =20 ps -ef |grep couch=20 =20 That would eliminate the 2nd guess.=20 =20 If you installed couchdb via an ubuntu package, that's what probably put= files in /etc. If you built it from source and everything is stashed in= /opt/couchdb-1.0.1, then I'd imagine there is a local.ini in the etc subd= irectory, or some other subdirectory, of that.=20 =20 I'm assuming that you didn't remove the previous apt package yet either,= or else you have '.' in your path, because ./couchdb -c would be the comm= and I would expect (including the ./) otherwise I'm guessing you're callin= g the ubuntu supplied one which would explain the configuration paths that= are listed.=20 =20 So a couple things=20 =20 - check whether couch is running with ps and grep=20 =20 - find whether or not there is a local.ini in a sub directory of /opt/couc= hdb-1.0.1 and if there is, check to see what the port and bind address are= set to. Also set the log level to debug and check the path to the databas= e files (database_dir and view_index_dir) and make sure the files in those= directories are owned by the couch user.=20 =20 that would eliminate the first guess=20 =20 - whats the output of /opt/couchdb-1.0.1/bin/couchdb -c ? My guess is a di= fferent path from the files in /etc=20 =20 If after permissions and port checks it still doesn't run, run couch with= the debug log level and send the output of relevant log entries in the co= uchdb log file.=20 =20 If it's not specified, you can set the log file in your local.ini=20 =20 ex.=20 =20 [log]=20 level =3D debug=20 file =3D /opt/couchdb-1.0.1/var/log/couchdb/couch.log=20 =20 And if that doesn't turn on any light-bulbs in our heads, the next thing= I'd do is strace the process and see if the output reveals any other clue= s.=20 =20 Topics on this page=20 =20 http://wiki.apache.org/couchdb/Error_messages=20 =20 Seem to suggest permissions though.=20 =20 -Tim=20 =20 On 08/29/2010 11:50 AM, whimsica@aol.com wrote:=20 > init terminating in do_boot",{{badmatch=20 =20 =20 ----------MB_8CD15C561D8E686_94C_1D7A2_webmail-m068.sysops.aol.com--