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 704926BAE for ; Thu, 4 Aug 2011 17:49:22 +0000 (UTC) Received: (qmail 5035 invoked by uid 500); 4 Aug 2011 17:49:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4987 invoked by uid 500); 4 Aug 2011 17:49:20 -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 4979 invoked by uid 99); 4 Aug 2011 17:49:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 17:49:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dennis.lee.redfield@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 17:49:15 +0000 Received: by qyk31 with SMTP id 31so521305qyk.11 for ; Thu, 04 Aug 2011 10:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6zK9mHerNpRMBWP4ZGxFjRkdwQM42ac7KvyNK4UoUlE=; b=m7pWiV37xshl+n6F5KzaMnFKZetgry2dQ0NNA+LZDGUTHClfakfVzNkb+CJ6LGCa70 2RynVlcio9zQ9v0GvhYGXaSOrMo4plJ6g5vtghQFH5dcVD6fMUWZ6oZF+ix7pjGnaj3d W2pc9TazTHJXF6Fl96vVI/KiHJclTOFcKV/7Q= MIME-Version: 1.0 Received: by 10.229.50.71 with SMTP id y7mr893510qcf.180.1312480134794; Thu, 04 Aug 2011 10:48:54 -0700 (PDT) Received: by 10.229.28.141 with HTTP; Thu, 4 Aug 2011 10:48:54 -0700 (PDT) In-Reply-To: References: <-8926586841276223108@unknownmsgid> Date: Thu, 4 Aug 2011 13:48:54 -0400 Message-ID: Subject: Re: CouchDB as a windows service. From: Dennis Redfield To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=0016363ba2c6358c6404a9b19807 --0016363ba2c6358c6404a9b19807 Content-Type: text/plain; charset=ISO-8859-1 nuke and pave? On Thursday, August 4, 2011, Keith Gable wrote: > On Thu, Aug 4, 2011 at 10:31 AM, Walter Torres wrote: > >> When I installed "erlsrv.exe" as a SERVICE, windows created the >> SERVICE REG KEYS. It appears in the SERVICES control and it allows me >> to attempt to start it. >> > > Did *you* create the service, or did you copy and paste the code the > installer uses? I think this may be the issue if the former. erlsrv.exe is > used to start/stop/install/remove Erlang services from what I can tell. You > wouldn't want to add it yourself as a service to start; you'd want to use it > in cmd.exe to add a service and then start whatever it put in there. > > Here's the config file for the installer (which I think is InnoSetup): > https://github.com/dch/couchdb/blob/trunk/etc/windows/couchdb.iss.tpl > > You should have installed the service by running erlsrv.exe with these > parameters (I filled in the variables from the ISS file, so change as > needed): > add "CouchDB" -workdir "X:\CouchDB\bin" -onfail restart_always -args "-sasl > errlog_type error -s couch +A 4 +W w" -comment "CouchDB 1.x.x" > > Then you can either net start CouchDB, or the installer does erlsrv.exe > start "CouchDB". > > I checked out the source for the Windows fork and grepped it for both "hkey" > and "hk", and nothing Windows-specific came out. I don't think that CouchDB > is your problem here. I think it's that Erlang is refusing to start because > it is not installed properly (and it may well depend on some sort of > registry entries). There might be a standalone version of Erlang that you > can extract to a folder and use, and then once that worked, you could use > that to install CouchDB as a service and run it. > > It sounds to me like you're trying to make a version of CouchDB that is > batch file installable and survives a nuke and pave. But that's a guess; you > could be hooking up CouchDB to a missile defense system. In any event, help > us help you - try to explain why you can't use the installer in silent mode > and why you can't use registry entries. > > P.S. In Windows, when you remove a service, you'll have to reboot to fully > be rid of its security descriptors and whatnot. Definitely don't try > removing/adding the service without restarting or you may be compounding the > problem by having incorrect SDs. > -- Trust No One --0016363ba2c6358c6404a9b19807--