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 5667C6C6C for ; Thu, 4 Aug 2011 17:54:00 +0000 (UTC) Received: (qmail 14405 invoked by uid 500); 4 Aug 2011 17:53:58 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 14344 invoked by uid 500); 4 Aug 2011 17:53:58 -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 14336 invoked by uid 99); 4 Aug 2011 17:53:57 -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:53:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ziggythehamster@gmail.com designates 209.85.161.52 as permitted sender) Received: from [209.85.161.52] (HELO mail-fx0-f52.google.com) (209.85.161.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 17:53:53 +0000 Received: by fxd18 with SMTP id 18so3369180fxd.11 for ; Thu, 04 Aug 2011 10:53:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=0HZmPWkZ6vySU/bD86JfMHO2pjyrRXteb0Z0Lj2x7A0=; b=hEC192FWJAksTnxNQCXO/mgpf+xz1WTKddopAbrK15N/Sqm+nV0e3M/j1eHfgNGj+/ fcd4HTUsfrw88rkYOrhKjfzmcqecsAdYAFyi3vbIaYosqwk4kwudeB88isKoexAzmV9Y HiH7LhT9P2eOdPecsqNZSrvd4VC0TbW28yq7A= MIME-Version: 1.0 Received: by 10.223.22.8 with SMTP id l8mr1525192fab.105.1312480411736; Thu, 04 Aug 2011 10:53:31 -0700 (PDT) Sender: ziggythehamster@gmail.com Received: by 10.223.161.129 with HTTP; Thu, 4 Aug 2011 10:53:31 -0700 (PDT) Received: by 10.223.161.129 with HTTP; Thu, 4 Aug 2011 10:53:31 -0700 (PDT) In-Reply-To: References: <-8926586841276223108@unknownmsgid> Date: Thu, 4 Aug 2011 12:53:31 -0500 X-Google-Sender-Auth: kJHOces-0dw6b-dZy-heWv56X5A Message-ID: Subject: Re: CouchDB as a windows service. From: Keith Gable To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0015173fe6c2b75c1304a9b1a8e5 --0015173fe6c2b75c1304a9b1a8e5 Content-Type: text/plain; charset=ISO-8859-1 Euphemism for format and reinstall. :) On Aug 4, 2011 12:49 PM, "Dennis Redfield" wrote: > 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 --0015173fe6c2b75c1304a9b1a8e5--