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 0A8E565BA for ; Thu, 4 Aug 2011 19:35:27 +0000 (UTC) Received: (qmail 29242 invoked by uid 500); 4 Aug 2011 19:35:25 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 28996 invoked by uid 500); 4 Aug 2011 19:35:24 -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 28987 invoked by uid 99); 4 Aug 2011 19:35:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 19:35:24 +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 (nike.apache.org: domain of otrwalter@gmail.com designates 209.85.218.52 as permitted sender) Received: from [209.85.218.52] (HELO mail-yi0-f52.google.com) (209.85.218.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 19:35:18 +0000 Received: by yie16 with SMTP id 16so412072yie.11 for ; Thu, 04 Aug 2011 12:34:57 -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:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=fKnwHQJmIUzjk0se1YOqd460JW8jZ5XPm1uXNLYR0Fs=; b=jqO2faJVJxxJEcJdknJZQpxS4pnuLzTrOlWd2Paf/QiQzHDMPsMI/s6KrUOEiP9nwv OBf3PIXjqhEIf8n8ITkhnFIwl6iXuEqrKjiJl1CVG9fj8ZAhoVh+mub+riaCz6mtQcoc UJVJ9dGtp8rXWN7C+7ApKdQmKU+vJ1XaELWTE= Received: by 10.150.144.16 with SMTP id r16mr2446370ybd.325.1312486497107; Thu, 04 Aug 2011 12:34:57 -0700 (PDT) MIME-Version: 1.0 Sender: otrwalter@gmail.com Received: by 10.151.146.9 with HTTP; Thu, 4 Aug 2011 12:34:37 -0700 (PDT) In-Reply-To: References: <-8926586841276223108@unknownmsgid> From: Walter Torres Date: Thu, 4 Aug 2011 20:34:37 +0100 X-Google-Sender-Auth: LpEUiM2OBxDD-jdD0WZpIv619yw Message-ID: Subject: Re: CouchDB as a windows service. To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd310aa6ebe7204a9b31377 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd310aa6ebe7204a9b31377 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Aug 4, 2011 at 6:39 PM, 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. sc.exe create CouchDBServer binPath= "L:\etc\couchdb\erts-5.8.4\bin\erlsrv.exe" DisplayName= "CouchDB Server" > 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". > oh. Must read more. Must read more! ;) > 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. > The GitHub that I pulled the installer from has a non-installer version; meaning it is a simple 7z file. I am using that in my experiments. I really don't know if this is a standalone Erlang. > 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; Almost. BAT file is one stepdown from INSTALLER. But yes one of the positive aspects of this system is a "nuke and pave" solution. My solution is not so much BAT based, but gZip the entire structure and place on network or CD for safe keeping. > you could be hooking up CouchDB to a missile defense system. Oh! You had to say that! Now we have have to kill you! ;) > 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. > My rational for this method: 1) Linux like - as much as possible on a windows box * I am 96% there 2) nuke and pave capability * 100% there 3) deep understanding of system, how it works, how to modify/config it, upgrade it. * 100% there, with what I have. It took me 10 minutes to add SSL to my Apache. Took another 5 for Vhosts. You can't say the same with Xxamp or WAMP installers. On a irrational level 1) hatred of windows "rules" 2) dread of windows failures - not if, but when 3) despise REG KEYS 4) deplore files in WINDOWS dir 5) don't not knowing whee things are (control freak!) I would like to place files in some rational/logical locations in my "linux" tree, add a service, add ENV VAR (if needed) and just begin development. > 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. > Yes, thank you. That I have been doing. Anyway, the info you gave (THANK YOU very much BTW) will keep me busy for a bit of time. No matter how much I think I know, too many times I feel like I know nothing at all. Thank you. Walter --000e0cd310aa6ebe7204a9b31377--