Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 15789 invoked from network); 29 Aug 2010 23:46:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Aug 2010 23:46:50 -0000 Received: (qmail 7596 invoked by uid 500); 29 Aug 2010 23:46:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 7547 invoked by uid 500); 29 Aug 2010 23:46:49 -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 7539 invoked by uid 99); 29 Aug 2010 23:46:48 -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 23:46:48 +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 64.12.207.163 as permitted sender) Received: from [64.12.207.163] (HELO imr-mb02.mx.aol.com) (64.12.207.163) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Aug 2010 23:46:39 +0000 Received: from imo-da02.mx.aol.com (imo-da02.mx.aol.com [205.188.169.200]) by imr-mb02.mx.aol.com (8.14.1/8.14.1) with ESMTP id o7TNk5xs003463 for ; Sun, 29 Aug 2010 19:46:05 -0400 Received: from Whimsica@aol.com by imo-da02.mx.aol.com (mail_out_v42.9.) id o.e6c.69362fb (37116) for ; Sun, 29 Aug 2010 19:46:01 -0400 (EDT) Received: from smtprly-ma03.mx.aol.com (smtprly-ma03.mx.aol.com [64.12.207.142]) by cia-ma01.mx.aol.com (v129.4) with ESMTP id MAILCIAMA012-5c5a4c7af13429a; Sun, 29 Aug 2010 19:46:01 -0400 Received: from webmail-d044 (webmail-d044.sim.aol.com [205.188.181.82]) by smtprly-ma03.mx.aol.com (v129.4) with ESMTP id MAILSMTPRLYMA038-5c5a4c7af13429a; Sun, 29 Aug 2010 19:45:56 -0400 References: <4C7A96E9.3090709@gmail.com> <8CD15C561D1C260-94C-1573E@webmail-m068.sysops.aol.com> <4C7AB8A6.8040103@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 19:45:55 -0400 X-AOL-IP: 75.31.41.117 In-Reply-To: <4C7AB8A6.8040103@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_8CD15EB755EDF15_12E8_24BCD_webmail-d044.sysops.aol.com" X-Mailer: AOL Webmail 32447-STANDARD Received: from 75.31.41.117 by webmail-d044.sysops.aol.com (205.188.181.82) with HTTP (WebMailUI); Sun, 29 Aug 2010 19:45:55 -0400 Message-Id: <8CD15EB7557BAF5-12E8-1A08D@webmail-d044.sysops.aol.com> X-AOL-SENDER: Whimsica@aol.com X-Old-Spam-Flag: NO ----------MB_8CD15EB755EDF15_12E8_24BCD_webmail-d044.sysops.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" I got couchdb to work...weirdly...with some help from the irc guys and pu= rge remove the old one. But I still have to go to the directory and type sudo ./couchdb start to= get it to start and it won't startup with the server. So still some permission or director= y issues. As to your questions. I'm userdan not root opt...init script # Sourced by init script for configuration. COUCHDB_USER=3Dcouchdb COUCHDB_STDOUT_FILE=3D/dev/null COUCHDB_STDERR_FILE=3D/dev/null COUCHDB_RESPAWN_TIMEOUT=3D5 COUCHDB_OPTIONS=3D =20 I can ls -la a directory but don't know where the database directory is. from bin/directory it is this. drwxrwxrwx 2 root root 4096 2010-08-29 00:48 . drwxrwxrwx 7 root root 4096 2010-08-29 00:27 .. -rwxrwxrwx 1 root root 9896 2010-08-29 00:27 couchdb -rwxrwxrwx 1 root root 2417 2010-08-29 00:27 couchjs lrwxrwxrwx 1 root root 26 2010-08-29 00:27 dialyzer -> ../lib/erlang/b= in/dialyzer lrwxrwxrwx 1 root root 22 2010-08-29 00:27 epmd -> ../lib/erlang/bin/e= pmd -rwxrwxrwx 1 root root 877 2010-08-29 00:27 erl lrwxrwxrwx 1 root root 22 2010-08-29 00:27 erlc -> ../lib/erlang/bin/e= rlc -rw-rw-rw- 1 root root 329902 2010-08-29 12:01 erl_crash.dump lrwxrwxrwx 1 root root 25 2010-08-29 00:27 escript -> ../lib/erlang/bi= n/escript -rwxrwxrwx 1 root root 1980 2010-08-17 06:28 js-config -rwxrwxrwx 1 root root 1264 2010-08-17 05:24 postinstall lrwxrwxrwx 1 root root 25 2010-08-29 00:27 run_erl -> ../lib/erlang/bi= n/run_erl lrwxrwxrwx 1 root root 24 2010-08-29 00:27 to_erl -> ../lib/erlang/bin= /to_erl lrwxrwxrwx 1 root root 23 2010-08-29 00:27 typer -> ../lib/erlang/bin/= typer Thanks for helping me troubleshoot by the way, Making progress. Dan =20 =20 -----Original Message----- From: Tim Rupp To: user@couchdb.apache.org Sent: Sun, Aug 29, 2010 12:44 pm Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04= install In the config file=20 =20 /opt/couchdb-1.0.1/etc/couchdb/local.ini=20 =20 Can you provide the directory listing of the database_dir directory? Inclu= ding the hidden files (there may be a .delete directory)=20 =20 ls -la=20 =20 Interested particularly in the permissions of the files.=20 =20 Also, and it may or may not exist, but if there's a file=20 =20 /opt/couchdb-1.0.1/etc/default/couchdb=20 =20 It may have entries in it such as=20 =20 COUCHDB_USER=3Dcouchdb=20 COUCHDB_STDOUT_FILE=3D/opt/couchdb-1.0.1/var/log/couchdb/couch.log=20 COUCHDB_STDERR_FILE=3D/opt/couchdb-1.0.1/var/log/couchdb/couch.log=20 COUCHDB_RESPAWN_TIMEOUT=3D5=20 COUCHDB_OPTIONS=3D=20 =20 If you have this file, is the COUCHDB_USER value set to the same thing tha= t the permissions of the files and folders in your database_dir are set to= ?=20 =20 Are you running couch as root, userdan, or couchdb when you are troublesho= oting this?=20 =20 -Tim=20 =20 On 08/29/2010 02:13 PM, whimsica@aol.com wrote:=20 >=20 >=20 >=20 >=20 > userdan@ubuntu:~$ ps -ef |grep couch=20 > root 4490 1 0 11:35 ? 00:00:01 gedit /opt/couchdb-1.0.1= /etc/couchdb/default.ini=20 > userdan 4596 4533 0 11:47 pts/3 00:00:00 grep --color=3Dauto=20 >=20 >=20 >=20 > on /etc/couchdb the paths are the same as on=20 > /opt/couchdb-1.0.1/etc/=20 > for the ini files local and default.=20 >=20 > although port and path are ;commented out=20 >=20 >=20 > here is the crash=20 > Apache CouchDB 1.0.1 (LogLevel=3Dinfo) is starting.=20 >=20 > =3DCRASH REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D=20 > crasher:=20 > initial call: couch_event_sup:init/1=20 > pid:<0.80.0>=20 > registered_name: []=20 > exception exit: {{badmatch,=20 > {'EXIT',=20 > {{badmatch,{error,eacces}},=20 > [{couch_log,init,1},=20 > {gen_event,server_add_handler,4},=20 > {gen_event,handle_msg,5},=20 > {proc_lib,init_p_do_apply,3}]}}},=20 > [{couch_event_sup,init,1},=20 > {gen_server,init_it,6},=20 > {proc_lib,init_p_do_apply,3}]}=20 > in function gen_server:init_it/6=20 > ancestors: [couch_primary_services,couch_server_sup,<0.33.0>]=20 > messages: []=20 > links: [<0.79.0>,<0.6.0>]=20 > dictionary: []=20 > trap_exit: false=20 > status: running=20 > heap_size: 377=20 > stack_size: 24=20 > reductions: 117=20 > neighbours:=20 >=20 > =3DSUPERVISOR REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D=20 > Supervisor: {local,couch_primary_services}=20 > Context: start_error=20 > Reason: {{badmatch,{'EXIT',{{badmatch,{error,eacces}},=20 > [{couch_log,init,1},=20 > {gen_event,server_add_handler,4},= =20 > {gen_event,handle_msg,5},=20 > {proc_lib,init_p_do_apply,3}]}}},= =20 > [{couch_event_sup,init,1},=20 > {gen_server,init_it,6},=20 > {proc_lib,init_p_do_apply,3}]}=20 > Offender: [{pid,undefined},=20 > {name,couch_log},=20 > {mfa,{couch_log,start_link,[]}},=20 > {restart_type,permanent},=20 > {shutdown,brutal_kill},=20 > {child_type,worker}]=20 >=20 >=20 > =3DSUPERVISOR REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D=20 > Supervisor: {local,couch_server_sup}=20 > Context: start_error=20 > Reason: shutdown=20 > Offender: [{pid,undefined},=20 > {name,couch_primary_services},=20 > {mfa,{couch_server_sup,start_primary_services,[]}},= =20 > {restart_type,permanent},=20 > {shutdown,infinity},=20 > {child_type,supervisor}]=20 >=20 >=20 > =3DCRASH REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D=20 > crasher:=20 > initial call: application_master:init/4=20 > pid:<0.32.0>=20 > registered_name: []=20 > exception exit: {bad_return,=20 > {{couch_app,start,=20 > [normal,=20 > ["/opt/couchdb-1.0.1/etc/couchdb/default.= ini",=20 > "/opt/couchdb-1.0.1/etc/couchdb/local.in= i"]]},=20 > {'EXIT',=20 > {{badmatch,{error,shutdown}},=20 > [{couch_server_sup,start_server,1},=20 > {application_master,start_it_old,4}]}}}}= =20 > in function application_master:init/4=20 > ancestors: [<0.31.0>]=20 > messages: [{'EXIT',<0.33.0>,normal}]=20 > links: [<0.31.0>,<0.7.0>]=20 > dictionary: []=20 > trap_exit: true=20 > status: running=20 > heap_size: 987=20 > stack_size: 24=20 > reductions: 135=20 > neighbours:=20 >=20 > =3DINFO REPORT=3D=3D=3D=3D 29-Aug-2010::12:11:36 =3D=3D=3D=20 > application: couch=20 > exited: {bad_return,{{couch_app,start,=20 > [normal,=20 > ["/opt/couchdb-1.0.1/etc/couchdb/d= efault.ini",=20 > "/opt/couchdb-1.0.1/etc/couchdb/l= ocal.ini"]]},=20 > {'EXIT',{{badmatch,{error,shutdown}},=20 > [{couch_server_sup,start_server,1},= =20 > {application_master,start_it_old,4}]= }}}}=20 > type: temporary=20 >=20 >=20 > Thansk,=20 >=20 > Dan=20 >=20 >=20 >=20 > -----Original Message-----=20 > From: Tim Rupp=20 > To: user@couchdb.apache.org=20 > Sent: Sun, Aug 29, 2010 10:20 am=20 > Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.0= 4 install=20 >=20 >=20 > 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/co= uchdb-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 dat= abase 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= different path from the files in /etc=20 >=20 > If after permissions and port checks it still doesn't run, run couch wit= h the debug log level and send the output of relevant log entries in the= couchdb 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 >=20 >=20 =20 ----------MB_8CD15EB755EDF15_12E8_24BCD_webmail-d044.sysops.aol.com--