couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Redfield <dennis.lee.redfi...@gmail.com>
Subject Re: CouchDB as a windows service.
Date Thu, 04 Aug 2011 17:48:54 GMT
 nuke and pave?

On Thursday, August 4, 2011, Keith Gable <ziggy@ignition-project.com> wrote:
> On Thu, Aug 4, 2011 at 10:31 AM, Walter Torres <otrwalter@gmail.com>
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message