couchdb icon indicating copy to clipboard operation
couchdb copied to clipboard

Apache CouchDB Windows Service Paused

Open driglou opened this issue 9 years ago • 19 comments

I downloaded CouchDB as I was preparing my PouchDB project. My OS is Windows 10. However when I tried to open Fauxton it said Connection refused, I went to look in my Services and I saw that Apache CouchDB Service is paused. I Stop ir and Start it, however I am getting this. 1

I tried googling all possible solutions, however I did not find what is exactly wrong. As there is no exact error and I do not understand CouchDB exactly the way it works or on what it relies, I can't seem to find solution.

Please let me know if I can provide any more details that would help to identify the issue.

driglou avatar May 07 '17 19:05 driglou

Hi there,

This is a known issue we will address with the next release of CouchDB. For now, you will need to update the permissions of your C:\CouchDB directory (and all children directories) to allow write access to whatever user is running your service.

wohali avatar May 07 '17 20:05 wohali

Thank you for quick response.

I did what you said, however the problem still remains. I added full access the the C:\CouchDB and its childrens, I restarted PC and but the issue still remains as it was. Either I need to do something more or I did not do exactly what you suggested me to do.

2

driglou avatar May 08 '17 11:05 driglou

Try adding the "LOCAL SERVICE" account and give it full control. Users shouldn't have it.

wohali avatar May 08 '17 18:05 wohali

The problem still remains exactly as it was.

Is there anything more I can do?

Also before when I installed CouchDB for the first time few month ago, everything was working perfectly out of the box, it was still v2 at that time I think. How can I make sure to have clean install of it?

driglou avatar May 08 '17 19:05 driglou

I'm also still having this problem after trying the solution above. My install is completely fresh though.

chladnefazole avatar May 12 '17 23:05 chladnefazole

Guys try to start couchdb with the couchDB.batch file in install/couchDB/bin... Start with sysadmin permission. On win 10 system block couchdb with normal start.

FodOskar avatar May 13 '17 15:05 FodOskar

Same problem here, tried everything but couchdb's windows service refuse to start. Any clue when this release that fix this issue is suppose to be released?

tonywarn avatar May 20 '17 20:05 tonywarn

The workaround for now is to use what @FodOskar says and run the couchdb.cmd file as administrator manually. We'll get a fix out for this with the upcoming 2.1 release, which should happen in the next couple of weeks.

wohali avatar May 20 '17 20:05 wohali

it is NSSM related issue, see here

Windows 10 Creators Update

2017-04-26: Users of Windows 10 Creators Update should use prelease build 2.2.4-101 to avoid an issue with services failing to start. If for some reason you cannot use that build you can also set AppNoConsole=1 in the registry, noting that applications which expect a console window may behave unexpectedly.

Thanks to Sebasian Krause for the initial diagnosis.

My temporary solution is run it manually

Start-Process -WorkingDirectory "D:\\Applications\\CouchDB" -FilePath "bin\\couchdb.cmd" -WindowStyle Hidden

ghost avatar Jun 10 '17 20:06 ghost

Thanks for the diagnosis @nueko ! We'll update the version of nssm.exe we use in the next build.

wohali avatar Jun 10 '17 22:06 wohali

also by copying nssm.exe from the pre-release version does work here.

ghost avatar Jun 10 '17 22:06 ghost

run the couchdb.cmd file as administrator manually. does not work for me.

DCMay avatar Jun 14 '17 09:06 DCMay

@dcmay Did you try copying the pre-release version nssm.exe from here over your existing nssm.exe?

wohali avatar Jun 14 '17 15:06 wohali

@wohali I think @DCMay just run the /CouchDB/bin/couchdb.cmd directly. but by doing that the Command Prompt will keep opening

ghost avatar Jun 14 '17 17:06 ghost

for those that have windows 10 creators edition just follow this after install and couchdb will work for you https://stackoverflow.com/questions/44107334/couchdb-fails-to-start-after-applying-windows-10-creators-update

dracuslayer avatar Jul 06 '17 02:07 dracuslayer

🍭 Great

ghost avatar Jul 07 '17 02:07 ghost

This is the same fix that was stated earlier in this thread.

Locking down comments on this for now. We know what the problem is. 2.1 will be released shortly with this fix included.

wohali avatar Jul 07 '17 02:07 wohali

I have a newly built version of the 2.0.0 installer with the replaced NSSM, Erlang 18.3 and OpenSSL 1.0.2l. I am waiting for access to the code signing service to be restored, at which point I'll publish the installer as v2.0.0.2.

wohali avatar Jul 09 '17 06:07 wohali

The code signing service is out of commission for a few weeks, so rather than hold up the release, I'm releasing it unsigned.

Download it here:

https://apache.bintray.com/couchdb/win/2.0.0.2/couchdb-2.0.0.2.msi

wohali avatar Jul 11 '17 02:07 wohali