From user-return-21206-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Jun 12 15:50:11 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 0E1829F0B for ; Tue, 12 Jun 2012 15:50:11 +0000 (UTC) Received: (qmail 39644 invoked by uid 500); 12 Jun 2012 15:50:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 39607 invoked by uid 500); 12 Jun 2012 15:50: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 39599 invoked by uid 99); 12 Jun 2012 15:50:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 15:50:09 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of doug.shea@nokia.com designates 147.243.1.47 as permitted sender) Received: from [147.243.1.47] (HELO mgw-sa01.nokia.com) (147.243.1.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 15:50:02 +0000 Received: from imailfargo.navteq.com ([10.228.255.13]) by mgw-sa01.nokia.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5CFnbMr009297 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Jun 2012 18:49:39 +0300 Received: from hq-ex-ht02.ad.navteq.com (hq-ex-ht02.ad.navteq.com [10.8.222.172]) by imailfargo.navteq.com (8.13.6/8.13.6) with ESMTP id q5CFnbqW016383 for ; Tue, 12 Jun 2012 10:49:37 -0500 Received: from hq-ex-mb01.ad.navteq.com ([fe80::444c:f5dd:4846:a365]) by hq-ex-ht02.ad.navteq.com ([fe80::24f6:ca50:734d:df6e%13]) with mapi; Tue, 12 Jun 2012 10:49:37 -0500 From: "Shea Doug (Nokia-LC/Chicago)" To: "user@couchdb.apache.org" Date: Tue, 12 Jun 2012 10:49:35 -0500 Subject: Start-up error Thread-Topic: Start-up error Thread-Index: Ac1IsLxArud8n9qsR6e5s8kN5FEsdQ== Message-ID: <8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21@hq-ex-mb01.ad.navteq.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/mixed; boundary="_004_8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21hqexmb01adnav_" MIME-Version: 1.0 X-Nokia-AV: Clean --_004_8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21hqexmb01adnav_ Content-Type: multipart/alternative; boundary="_000_8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21hqexmb01adnav_" --_000_8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21hqexmb01adnav_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hey folks. I'm setting up my first CouchDB instance for an internal project= , and am running into an error on start-up. I was wondering if anybody coul= d help. In short, I'm trying to run CouchDB like we run Apache. We have Apache inst= alled in a shared, unwritable filesystem. To run an instance, one copies th= e apachectl file and the default configuration file, edits apachectl to poi= nt to the config file copy, then edits the config file to point to local lo= g directories and perform other custom configurations. When 'apachectl star= t' is run, it uses the binaries from the shared area 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.i= ni < PID_FILE=3D/tools/couchdb/1.2.0/Linux_x86_64/var/run/couchdb/couchdb.pid --- > 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 at = local paths (and turn on debugging): > diff /tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/local.ini etc/local.in= i 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 to = be as I configured it. I'll only include the things that reflect changes th= at I've 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/defa= ult.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,st= art,[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',{{badmat= ch,{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. Can anybody exp= lain what they cryptic error might mean? :) Thanks! [cid:image001.png@01CCF6F0.549497B0] Doug Shea Lead Engineer doug.shea@nokia.com www.nokia.com ________________________________ The information contained in this communication may be CONFIDENTIAL and is = intended only for the use of the recipient(s) named above. If you are not t= he intended recipient, you are hereby notified that any dissemination, dist= ribution, or copying of this communication, or any of its contents, is stri= ctly prohibited. If you have received this communication in error, please n= otify the sender and delete/destroy the original message and any copy of it= from your computer or paper files. --_000_8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21hqexmb01adnav_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hey folks. I’m setting up my first CouchDB instance for an inter= nal project, and am running into an error on start-up. I was wondering if a= nybody could help.
 
In short, I’m trying to run CouchDB like we run Apache. We have = Apache installed in a shared, unwritable filesystem. To run an instance, on= e copies the apachectl file and the default configuration file, edits apach= ectl to point to the config file copy, then edits the config file to point to local log directories and perform ot= her custom configurations. When ‘apachectl start’ is run, it us= es the binaries from the shared area and the custom config, and runs great.=
 
To mimic this, I copied bin/couchdb to a local area as well as etc/loc= al.*. I edited bin/couchdb to point to local files where necessary:
 
> diff /tools/c= ouchdb/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_FIL= E=3D/tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/local.ini
< PID_FILE=3D/tool= s/couchdb/1.2.0/Linux_x86_64/var/run/couchdb/couchdb.pid
---
> LOCAL_CONFIG_DIR= =3D/webserver/couchdb/etc/local.d
> LOCAL_CONFIG_FIL= E=3D/webserver/couchdb/etc/local.ini
> PID_FILE=3D/webs= erver/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/et= c/local.ini
 
My etc/local.ini file is also changed minimally, mainly to point thing= s at 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 seem= s to be as I configured it. I’ll only include the things that reflect= changes that I’ve made; let me know if you want to see the entire ou= tput.
 
> bin/couchdb
Apache CouchDB 1.2.0 = (LogLevel=3Ddebug) is start= ing.
Configuration Setting= s ["/tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/default.ini",
   &nb= sp;            =         "/webserver/couchdb/etc/local.ini"]:
  [couchdb] database_dir=3D"/webserver/couchd= b/db"
  [couchdb] view_index_dir=3D"/webserver/couc= hdb/db"
  [httpd] bind_address=3D"*"
  [log] file=3D"/webserver/logs/couchdb/couch= .log"
  [log] level=3D"debug"
{"init terminati= ng in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal= ,["/tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/default.ini",&qu= ot;/tools/couchdb/1.2.0/Linux_x86_64/etc/couchdb/local.ini"]]},{'EXIT'= ,{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{applicati= on_master,start_it_old,4}]}}}}}},[{couch,start,0},{init,start_it,1},{init,s= tart_em,1}]}}
 
Crash dump was writte= n to: erl_crash.dump
init terminating in d= o_boot ()
 
All the other debug outputs are the same as the values found in defaul= t.ini, so it appears that my local.ini is being seen and parsed. Can anybod= y explain what they cryptic error might mean? :) Thanks!
 
Doug Shea
Lead Engineer
 

  ___________= _____________________  
The info= rmation contained in this communication may be CONFIDENTIAL and is intended= only for the use of the recipient(s) named above. If you are not the inten= ded recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or = any of its contents, is strictly prohibited. If you have received this comm= unication in error, please notify the sender and delete/destroy the origina= l message and any copy of it from your computer or paper files.
--_000_8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21hqexmb01adnav_-- --_004_8CABEE30E04C3645BEC11C4CB8F5BE671D02CC7E21hqexmb01adnav_--