From user-return-21207-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Jun 12 15:59:18 2012 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AEAEA9FA3 for ; Tue, 12 Jun 2012 15:59:18 +0000 (UTC) Received: (qmail 70061 invoked by uid 500); 12 Jun 2012 15:59:17 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 70025 invoked by uid 500); 12 Jun 2012 15:59:17 -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 70015 invoked by uid 99); 12 Jun 2012 15:59:17 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 15:59:17 +0000 Received: from localhost (HELO mail-gg0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 15:59:16 +0000 Received: by ggnf1 with SMTP id f1so3894765ggn.11 for ; Tue, 12 Jun 2012 08:59:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.157.138 with SMTP id wm10mr8700262igb.65.1339516755764; Tue, 12 Jun 2012 08:59:15 -0700 (PDT) Received: by 10.42.106.199 with HTTP; Tue, 12 Jun 2012 08:59:15 -0700 (PDT) In-Reply-To: <8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21@hq-ex-mb01.ad.navteq.com> References: <8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21@hq-ex-mb01.ad.navteq.com> Date: Tue, 12 Jun 2012 16:59:15 +0100 Message-ID: Subject: Re: Start-up error From: Robert Newson To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=e89a8f23593365e6c604c2488c24 --e89a8f23593365e6c604c2488c24 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable "*" is not correct. To bind to all interfaces use 0.0.0.0 B. On 12 June 2012 16:49, Shea Doug (Nokia-LC/Chicago) wr= ote: > Hey folks. I=92m setting up my first CouchDB instance for an internal > project, and am running into an error on start-up. I was wondering if > anybody could help. > > In short, I=92m trying to run CouchDB like we run Apache. We have Apache > installed in a shared, unwritable filesystem. To run an instance, one > copies the apachectl file and the default configuration file, edits > apachectl to point to the config file copy, then edits the config file to > point to local log directories and perform other custom configurations. > When =91apachectl start=92 is run, it uses the binaries from the shared a= rea > and the custom config, and runs great. > > To mimic this, I copied bin/couchdb to a local area as well as > etc/local.*. I edited bin/couchdb to point to local files where necessary= : > > > *diff /tools/couchdb/1.2.0/Linux_x86_64/bin/couchdb bin/couchdb* > 25c25 > < HEART_COMMAND=3D"/tools/couchdb/1.2.0/Linux_x86_64/bin/couchdb -k" > --- > > HEART_COMMAND=3D"$0 -k" > 28,30c28,30 > < LOCAL_CONFIG_DIR=3D/tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/local.= d > < LOCAL_CONFIG_FILE=3D/tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/local= .ini > < PID_FILE=3D/tools/couchdb/1.2.0/Linux_x86_64/var/run/couchdb/couchdb.pi= d > --- > > LOCAL_CONFIG_DIR=3D/webserver/couchdb/etc/local.d > > LOCAL_CONFIG_FILE=3D/webserver/couchdb/etc/local.ini > > PID_FILE=3D/webserver/couchdb/couchdb.pid > > Using the -c startup option, this appears to be fine: > > > *bin/couchdb -c* > /tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/default.ini > /webserver/couchdb/etc/local.ini > > My etc/local.ini file is also changed minimally, mainly to point things a= t > local paths (and turn on debugging): > > > diff /tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/local.ini > etc/local.ini > 7a8,9 > > database_dir =3D /webserver/couchdb/db > > view_index_dir =3D /webserver/couchdb/db > 12c14 > < ;bind_address =3D 127.0.0.1 > --- > > bind_address =3D * > 38c40,41 > < ;level =3D debug > --- > > file =3D /webserver/logs/couchdb/couch.log > > level =3D debug > > Startup at this point dumps a lot of debug output, and everything seems t= o > be as I configured it. I=92ll only include the things that reflect change= s > that I=92ve made; let me know if you want to see the entire output. > > > *bin/couchdb* > Apache CouchDB 1.2.0 (LogLevel=3Ddebug) is starting. > Configuration Settings > ["/tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/default.ini", > "/webserver/couchdb/etc/local.ini"]: > [couchdb] database_dir=3D"/webserver/couchdb/db" > [couchdb] view_index_dir=3D"/webserver/couchdb/db" > [httpd] bind_address=3D"*" > [log] file=3D"/webserver/logs/couchdb/couch.log" > [log] level=3D"debug" > {"init terminating in > do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/tools= /couchdb/1.2.0/Linux_x86_64/etc/couchdb/default.ini","/tools/couchdb/1.2.0/= Linux_x86_64/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}}= ,[{couch_server_sup,start_server,1},{application_master,start_it_old,4}]}}}= }}},[{couch,start,0},{init,start_it,1},{init,start_em,1}]}} > > Crash dump was written to: erl_crash.dump > init terminating in do_boot () > > All the other debug outputs are the same as the values found in > default.ini, so it appears that my local.ini is being seen and parsed. Ca= n > anybody explain what they cryptic error might mean? :) Thanks! > > *Doug Shea* > Lead Engineer > *doug.shea@nokia.com* > *www.nokia.com* > > > * ________________________________ * > The information contained in this communication may be CONFIDENTIAL and i= s > intended only for the use of the recipient(s) named above. If you are not > the intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, i= s > strictly prohibited. If you have received this communication in error, > please notify the sender and delete/destroy the original message and any > copy of it from your computer or paper files. > --e89a8f23593365e6c604c2488c24--