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

SSL / HTTPS settings lead to shards being shown, instead of databases. #718

Closed
vvasuki opened this issue Jul 27, 2017 · 5 comments
Closed

Comments

@vvasuki
Copy link

vvasuki commented Jul 27, 2017

The problem (observed in 2.0.0, and going by the chat on slack, unlikely to change in the soon-to-be-released 2.1.0) is described in this stackexchange post and this bitnami thread.

Copying over description from the bitnami post:

When I log into Fauxton using HTTPS, if I go to "Configuration" it says "Config Disabled" at the top. If I log into with port "5984", I can make changes to the configuration. Is there a way to enable Config on the secured side?

I setup CouchDB as a single node, but in the HTTPS side of Fauxton I am getting a list of about 20 shard databases in the all dbs view that look like this: (I'm not listing all of them)
shards/00000000-1fffffff/_global_changes.1492544140 This database failed to load.

The databases listed in the HTTP fauxton vs the HTTPS fauxton are not the same, if I create a DB in one, it does not show up in the other.

My environment: Ubuntu 16, Couchdb 2.0

@wohali
Copy link
Member

wohali commented Jul 27, 2017

Hi there @vvasuki , can you please share with us your local.ini file(s) and any other customizations you've made?

@vvasuki
Copy link
Author

vvasuki commented Jul 27, 2017

@wohali wohali added the fauxton label Aug 1, 2017
@wohali
Copy link
Member

wohali commented Oct 1, 2017

This was a documentation bug, addressed here:

apache/couchdb-documentation@6cd1044

@wohali wohali closed this as completed Oct 1, 2017
@wohali
Copy link
Member

wohali commented Oct 1, 2017

In case it's not clear:

[daemons]
httpsd = {chttpd, start_link, [https]}

is the right setting, and your bind is in the wrong place, it should be:

[chttpd]
bind_address = 0.0.0.0

@Richard-O-Wood
Copy link

I was having a very similar problem until earlier this morning.
I am running V2.1.0 on Windows Server 2012 R2
I am using a WSSO_Proxy server for authentication.
However, I do have an OpenSSL certificate and CA installed and referenced in my local.ini

My Fauxton Databases page was working fine on HTTP (port 5984) but on HTTPS (port 6984) I was getting shards instead of my databases. I read through the explanations from @wohali above, and tried a number of different combinations. Finally got a local.ini file that would work. I thought I would share my file for reference. I changed a few things in the attached file for obfuscation purposes like the IP address company name in the URL and some characters in the hash values.

Hopefully this will help someone else.
Also, if anyone spots something "wrong" in my local.ini, please let me know.

local.ini

nickva pushed a commit to nickva/couchdb that referenced this issue Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants