Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 43531 invoked from network); 29 Aug 2010 19:47:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Aug 2010 19:47:50 -0000 Received: (qmail 94318 invoked by uid 500); 29 Aug 2010 19:47:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 94254 invoked by uid 500); 29 Aug 2010 19:47:48 -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 94246 invoked by uid 99); 29 Aug 2010 19:47:48 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Aug 2010 19:47:48 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of caphrim007@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Aug 2010 19:47:24 +0000 Received: by yxi11 with SMTP id 11so2543722yxi.11 for ; Sun, 29 Aug 2010 12:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=HD+bTDSzxOwlml6kFXspPL4C83QdAM8frrwAn+tA9Ik=; b=buOKH2UoDJ/c29JrRjiZKgwJzJlxa7IMpf5jDeRsarz6hWpWDC01Efb2x5cSs8eb0H vu4XIcGe070OlC+M1gCSvrN7FPiAU0hlblhGpkq7EtKTPX0BlCsUF2ksY9lD8ME9G6xq LN3ncJM8f2pfvZYLMOGZmoj6VWO0EnB0fbz7E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=IABvCOLIL6Jb00FvlICWfvIo0YxEIHvFKfiaN5XNeVgBlJYg5dt9KemSP3HGDecBaX SMh5i/Exw3WlD+TTB2UbgtH2moPfohdJPzb0CGcNEMnBT177OopgzRFgAb2Y2QShh5sx hV1PMZG+2zcsnNxhp7HgRwUkLw0/Q1B8kEUMk= Received: by 10.150.227.8 with SMTP id z8mr4319289ybg.377.1283111223133; Sun, 29 Aug 2010 12:47:03 -0700 (PDT) Received: from [192.168.1.115] ([71.147.37.167]) by mx.google.com with ESMTPS id h8sm6514929ibk.9.2010.08.29.12.47.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 29 Aug 2010 12:47:02 -0700 (PDT) Message-ID: <4C7AB8A6.8040103@gmail.com> Date: Sun, 29 Aug 2010 14:44:38 -0500 From: Tim Rupp User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install References: <4C7A96E9.3090709@gmail.com> <8CD15C561D1C260-94C-1573E@webmail-m068.sysops.aol.com> In-Reply-To: <8CD15C561D1C260-94C-1573E@webmail-m068.sysops.aol.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org In the config file /opt/couchdb-1.0.1/etc/couchdb/local.ini Can you provide the directory listing of the database_dir directory? Including the hidden files (there may be a .delete directory) ls -la Interested particularly in the permissions of the files. Also, and it may or may not exist, but if there's a file /opt/couchdb-1.0.1/etc/default/couchdb It may have entries in it such as COUCHDB_USER=couchdb COUCHDB_STDOUT_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log COUCHDB_STDERR_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log COUCHDB_RESPAWN_TIMEOUT=5 COUCHDB_OPTIONS= If you have this file, is the COUCHDB_USER value set to the same thing that the permissions of the files and folders in your database_dir are set to? Are you running couch as root, userdan, or couchdb when you are troubleshooting this? -Tim On 08/29/2010 02:13 PM, whimsica@aol.com wrote: > > > > > userdan@ubuntu:~$ ps -ef |grep couch > root 4490 1 0 11:35 ? 00:00:01 gedit /opt/couchdb-1.0.1/etc/couchdb/default.ini > userdan 4596 4533 0 11:47 pts/3 00:00:00 grep --color=auto > > > > on /etc/couchdb the paths are the same as on > /opt/couchdb-1.0.1/etc/ > for the ini files local and default. > > although port and path are ;commented out > > > here is the crash > Apache CouchDB 1.0.1 (LogLevel=info) is starting. > > =CRASH REPORT==== 29-Aug-2010::12:11:36 === > 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: > > =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 === > 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}] > > > =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 === > 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}] > > > =CRASH REPORT==== 29-Aug-2010::12:11:36 === > 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: > > =INFO REPORT==== 29-Aug-2010::12:11:36 === > application: couch > exited: {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}]}}}} > type: temporary > > > Thansk, > > Dan > > > > -----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 > > - incorrect file/folder permissions on couchdb files > - older couchdb currently running and using port > > What's the output of a > > ps -ef |grep couch > > That would eliminate the 2nd guess. > > 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 subdirectory, or some other subdirectory, of that. > > 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 command I would expect (including the ./) otherwise I'm guessing you're calling the ubuntu supplied one which would explain the configuration paths that are listed. > > So a couple things > > - check whether couch is running with ps and grep > > - find whether or not there is a local.ini in a sub directory of /opt/couchdb-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 database files (database_dir and view_index_dir) and make sure the files in those directories are owned by the couch user. > > that would eliminate the first guess > > - whats the output of /opt/couchdb-1.0.1/bin/couchdb -c ? My guess is a different path from the files in /etc > > 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 couchdb log file. > > If it's not specified, you can set the log file in your local.ini > > ex. > > [log] > level = debug > file = /opt/couchdb-1.0.1/var/log/couchdb/couch.log > > 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 clues. > > Topics on this page > > http://wiki.apache.org/couchdb/Error_messages > > Seem to suggest permissions though. > > -Tim > > On 08/29/2010 11:50 AM, whimsica@aol.com wrote: >> init terminating in do_boot",{{badmatch > > > >