Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 316 invoked from network); 19 Apr 2010 13:53:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 13:53:49 -0000 Received: (qmail 43151 invoked by uid 500); 19 Apr 2010 13:53:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 43116 invoked by uid 500); 19 Apr 2010 13:53:47 -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 43108 invoked by uid 99); 19 Apr 2010 13:53:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 13:53:46 +0000 X-ASF-Spam-Status: No, hits=-1.2 required=10.0 tests=AWL,FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.kocoloski@gmail.com designates 74.125.82.52 as permitted sender) Received: from [74.125.82.52] (HELO mail-ww0-f52.google.com) (74.125.82.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 13:53:40 +0000 Received: by wwd20 with SMTP id 20so1380706wwd.11 for ; Mon, 19 Apr 2010 06:53:19 -0700 (PDT) Received: by 10.216.90.208 with SMTP id e58mr7317505wef.57.1271685198813; Mon, 19 Apr 2010 06:53:18 -0700 (PDT) Received: from [10.1.10.164] (c-66-31-20-188.hsd1.ma.comcast.net [66.31.20.188]) by mx.google.com with ESMTPS id t27sm48915174wbc.11.2010.04.19.06.53.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Apr 2010 06:53:15 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: crashes leaving .turd_couchdb behind & then fails to start up [CouchDB 0.11.0 compiled from MacPorts on OS X 10.6 64bit kernel mode] From: Adam Kocoloski In-Reply-To: Date: Mon, 19 Apr 2010 09:53:18 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1078) Hi Dave, these lines are the giveaway: >>>> {{case_clause, >>>> {error,{1,erl_parse,["syntax error before: = ","')'"]}}}, >>>> [{couch_httpd,make_arity_1_fun,1}, couch_httpd:make_arity_1_fun/1 is only executed when parsing the .ini = file, and the error itself points to a syntax error during parsing. = Cheers, Adam On Apr 19, 2010, at 7:45 AM, Dave Cottlehuber wrote: > SOLVED - pure incompetence (ouch). >=20 > in trying to fix this pb I re-ran port install couchdb. This then > wrote a fresh version of local.ini which corrected my original error. > I have a ) instead of a } in local.ini. Only excuse is in my vi font > these look the same..... especially round 2am. >=20 > which bit of the below shows more experienced people that this is > failing during reading of config files rather than later on? >=20 >>>> {<0.84.0>,supervisor_report, >>>> [{supervisor,{local,couch_secondary_services}}, >>>> {errorContext,start_error}, >>>> {reason, >>>> {'EXIT', >>>> {{case_clause, >>>> {error,{1,erl_parse,["syntax error before: = ","')'"]}}}, >>>> [{couch_httpd,make_arity_1_fun,1}, >>>> {couch_httpd,'-start_link/0-fun-0-',1}, >>>> {lists,map,2}, >>>> {lists,map,2}, >>>> {couch_httpd,start_link,0}, >>>> {supervisor,do_start_child,2}, >>>> {supervisor,start_children,3}, >>>> {supervisor,init_children,2}]}}}, >=20 >>>> I've been couch surfing for about 2 weeks so far & this is quite = out >>>> of my depth to handle. After this error I can't get CouchDB to = start >>>> up successfully - no idea what caused this - sometime between = stopping >>>> for the night & starting again in the morning. >>>>=20 >>>> I since removed all DB data, restarted, and reloaded data from >>>> couchapps and all seems to be fine. As I've not lost production = data, >>>> no crisis here - relax.... >>>>=20 >>>> This is running on a shared Mac OS X 10.6 in 64bit mode, with = 0.11.0 >>>> compiled & installed via MacPorts as server into launchd. >>>>=20 >>>> I've a 1.2m tgz available with all the bits if somebody sees value = in >>>> progressing this further. Just let me know how I can help. >>>>=20 >>>> [Fri, 16 Apr 2010 12:58:37 GMT] [info] [<0.14051.11>] 127.0.0.1 - - >>>> 'GET' /easel/_design/easel 200 >>>>=20 >>>> [Fri, 16 Apr 2010 12:58:37 GMT] [info] [<0.14051.11>] 127.0.0.1 - - >>>> 'PUT' /easel/_design/easel 201 >>>>=20 >>>> [Fri, 16 Apr 2010 17:12:46 GMT] [error] [<0.84.0>] = {error_report,<0.30.0>, >>>> {<0.84.0>,supervisor_report, >>>> [{supervisor,{local,couch_secondary_services}}, >>>> {errorContext,start_error}, >>>> {reason, >>>> {'EXIT', >>>> {{case_clause, >>>> {error,{1,erl_parse,["syntax error before: = ","')'"]}}}, >>>> [{couch_httpd,make_arity_1_fun,1}, >>>> {couch_httpd,'-start_link/0-fun-0-',1}, >>>> {lists,map,2}, >>>> {lists,map,2}, >>>> {couch_httpd,start_link,0}, >>>> {supervisor,do_start_child,2}, >>>> {supervisor,start_children,3}, >>>> {supervisor,init_children,2}]}}}, >>>> {offender, >>>> [{pid,undefined}, >>>> {name,httpd}, >>>> {mfa,{couch_httpd,start_link,[]}}, >>>> {restart_type,permanent}, >>>> {shutdown,brutal_kill}, >>>> {child_type,worker}]}]}} >>>>=20 >>>> [Fri, 16 Apr 2010 17:12:46 GMT] [error] [<0.76.0>] = {error_report,<0.30.0>, >>>> {<0.76.0>,supervisor_report, >>>> [{supervisor,{local,couch_server_sup}}, >>>> {errorContext,start_error}, >>>> {reason,shutdown}, >>>> {offender, >>>> [{pid,undefined}, >>>> {name,couch_secondary_services}, >>>> {mfa,{couch_server_sup,start_secondary_services,[]}}, >>>> {restart_type,permanent}, >>>> {shutdown,infinity}, >>>> {child_type,supervisor}]}]}} >>>>=20 >>>> [Sat, 17 Apr 2010 13:31:44 GMT] [error] [<0.84.0>] = {error_report,<0.30.0>, >>>> {<0.84.0>,supervisor_report, >>>> [{supervisor,{local,couch_secondary_services}}, >>>> {errorContext,start_error}, >>>> {reason, >>>> {'EXIT', >>>> {{case_clause, >>>> {error,{1,erl_parse,["syntax error before: = ","')'"]}}}, >>>> [{couch_httpd,make_arity_1_fun,1}, >>>> {couch_httpd,'-start_link/0-fun-0-',1}, >>>> {lists,map,2}, >>>> {lists,map,2}, >>>> {couch_httpd,start_link,0}, >>>> {supervisor,do_start_child,2}, >>>> {supervisor,start_children,3}, >>>> {supervisor,init_children,2}]}}}, >>>> {offender, >>>> [{pid,undefined}, >>>> {name,httpd}, >>>> {mfa,{couch_httpd,start_link,[]}}, >>>> {restart_type,permanent}, >>>> {shutdown,brutal_kill}, >>>> {child_type,worker}]}]}} >>>>=20 >>>>=20 >>>> = http://easel.s3.amazonaws.com/dev/couchdb_crash_on_startup_MacOSX10.6_64bi= t_built_from_macports_0.11.0_syntax_error.tar.gz >>>>=20 >>>> drwxr-xr-x 0 couchdb couchdb 0 13 Apr 23:06 var/lib/couchdb/ >>>> drwxr-xr-x 0 couchdb couchdb 0 12 Apr 00:37 >>>> var/lib/couchdb/.sofa_design/ >>>> -rw-r--r-- 0 root couchdb 0 11 Apr 10:46 >>>> var/lib/couchdb/.turd_couchdb >>>> -rw-r--r-- 0 couchdb couchdb 65625 15 Apr 21:04 >>>> var/lib/couchdb/couchtasks.couch >>>> -rw-r--r-- 0 couchdb couchdb 1392729 17 Apr 00:58 >>>> var/lib/couchdb/easel.couch >>>> -rw-r--r-- 0 couchdb couchdb 102489 12 Apr 00:36 >>>> var/lib/couchdb/sofa.couch >>>> -rw-r--r-- 0 couchdb couchdb 24665 13 Apr 20:34 >>>> var/lib/couchdb/testapp.couch >>>> -rw-r--r-- 0 couchdb couchdb 4192 12 Apr 00:37 >>>> var/lib/couchdb/.sofa_design/9442ba48354c26c91d4f5a770df8c5dc.view >>>> drwxr-xr-x 0 couchdb couchdb 0 11 Apr 13:49 var/log/couchdb/ >>>> -rw-r--r-- 0 root couchdb 0 11 Apr 10:46 >>>> var/log/couchdb/.turd_couchdb >>>> -rw-r--r-- 0 couchdb couchdb 81334 18 Apr 01:31 >>>> var/log/couchdb/couch.log >>>> drwxr-xr-x 0 root admin 0 17 Apr 00:53 etc/couchdb/ >>>> -rw-r--r-- 0 root admin 4659 11 Apr 10:46 = etc/couchdb/default.ini >>>> -rw-r--r-- 0 root admin 1434 17 Apr 00:53 = etc/couchdb/local.ini >>>>=20 >>>=20 >>>=20 >>>=20 >>> -- >>> Filipe David Manana, >>> fdmanana@gmail.com >>>=20 >>> "Reasonable men adapt themselves to the world. >>> Unreasonable men adapt the world to themselves. >>> That's why all progress depends on unreasonable men." >>>=20 >>=20