Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache CouchDB Windows Service Paused #508

Closed
driglou opened this issue May 7, 2017 · 19 comments
Closed

Apache CouchDB Windows Service Paused #508

driglou opened this issue May 7, 2017 · 19 comments
Assignees
Milestone

Comments

@driglou
Copy link

driglou commented May 7, 2017

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.

@wohali
Copy link
Member

wohali commented May 7, 2017

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.

@driglou
Copy link
Author

driglou commented May 8, 2017

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

@wohali
Copy link
Member

wohali commented May 8, 2017

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

@driglou
Copy link
Author

driglou commented May 8, 2017

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?

@chladnefazole
Copy link

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

@FodOskar
Copy link

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.

@tonywarn
Copy link

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?

@wohali
Copy link
Member

wohali commented May 20, 2017

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.

@nueko
Copy link

nueko commented Jun 10, 2017

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

@wohali
Copy link
Member

wohali commented Jun 10, 2017

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

@nueko
Copy link

nueko commented Jun 10, 2017

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

@DCMay
Copy link

DCMay commented Jun 14, 2017

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

@wohali
Copy link
Member

wohali commented Jun 14, 2017

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

@nueko
Copy link

nueko commented Jun 14, 2017

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

@wohali wohali modified the milestone: 2.1.0 Jul 3, 2017
@dracuslayer
Copy link

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

@nueko
Copy link

nueko commented Jul 7, 2017

🍭 Great

@wohali
Copy link
Member

wohali commented Jul 7, 2017

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.

@apache apache locked and limited conversation to collaborators Jul 7, 2017
@wohali wohali self-assigned this Jul 8, 2017
@wohali
Copy link
Member

wohali commented Jul 9, 2017

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
Copy link
Member

wohali commented Jul 11, 2017

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 wohali closed this as completed Jul 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants