CouchDB will not install as a service on Azure Windows VM -
i have installed couchdb on azure windows vm (classic) without problems using installer setup-couchdb-1.6.1_r16b02.exe downloaded http://couchdb.apache.org/
today have uninstalled existing couchdb installation , service intention of installing again scratch. unfortunately, whenever run installer fails create windows service. more info:
- i running installer , command tool administrator
- i have removed existing services using sc command , editing registry (tried both methods)
- i have tried creating service after installing couchdb using installer running command:
erlsrv.exe add "apache couchdb" -workdir "%couch%\bin" -onfail restart_always -args "-sasl errlog_type error -s couch +a 4 +w w" -comment "apache couchdb 1.6.1"
this seems create service (which can see in windows services) attempt start service results in error:
windows not start apache couchdb service on local computer.
error 1067: process terminated unexpectedly.
- i have tried uninstalling couchdb application, restarting server, re-installing couchdb using installer again. no joy. tried running command create service. still no joy.
- when use command
erlsrv list
i can see services i've tried add in past. attempt remove them results in error message:
erosrv: unable remove service (not enough privileges?)
error: handle invalid
(i using handle provided erlsrv list command)
- there no events in events log can find explain why failing
how can couchdb install service correctly?
tl;dr: re-install in directory path no spaces in it, manually create service.
ok @ point in googling today came across this answer gave me clue should install in path without spaces in it. solution to:
- uninstall couchdb application via windows control panel.
- run uninstall.exe in remaining installations of couchdb , delete directories.
- remove existing services using sc command.
- reinstall using installer c:\couchdb (note: no spaces!). select option install service (even though doesn't quite work).
- run command manually create service. note i'm not using %couch% variable doesn't seem exist on system @ point:
erlsrv.exe add "couchdb" -workdir "c:\couchdb\bin" -onfail restart_always -args "-sasl errlog_type error -s couch +a 4 +w w" -comment "couchdb 1.6.1"
this command managed create windows service couchdb started correctly. browsing http://localhost:5984/_utils/ brings me futon ui. , relax!
Comments
Post a Comment