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

Replication test fails, Error: could not resolve https://any:5984/verifytestdb/ #4656

Open
till opened this issue Jun 29, 2023 · 4 comments
Open

Comments

@till
Copy link

till commented Jun 29, 2023

Description

Was trying to run the verify installation steps, and noticed a failure in the replication test:

Error: could not resolve https://any:5984/verifytestdb/

Steps to Reproduce

  • start a CouchDB docker container
  • go on fauxton
  • verify installation

Expected Behaviour

No errors

Your Environment

  • CouchDB version used: 3.3.2
  • Browser name and version: any
  • Operating system and version: Docker/OSX

Additional Context

I haven't seen the any:5984 notation before. It should be 0.0.0.0:5984 to work across devices. AFAIR, even Windows supports that these days.

@big-r81
Copy link
Contributor

big-r81 commented Jun 29, 2023

Hi,

I think something might wrong with your setup. Please check your config, I didn’t saw this „any“ before…

@till
Copy link
Author

till commented Jun 30, 2023

@big-r81 I see any in many places:

start_link(Name, Options) ->
BindAddress =
case config:get("httpd", "bind_address", "any") of
"any" -> any;
Else -> Else
end,
ok = validate_bind_address(BindAddress),

(Search the code base for bind_address.)

I don't know enough Erlang to find out what any maps to. But it seems like a type?

I used some env vars when I started the container (COUCHDB_USERNAME, NODENAME, etc.) and I put one .ini file into it myself. Otherwise, it's all stock.

;/opt/couchdb/etc/local.d/setup.ini
[couchdb]
single_node=true

The (official) Docker image also creates a 10-docker-default.ini:

; CouchDB Configuration Settings

; Custom settings should be made in this file. They will override settings
; in default.ini, but unlike changes made to default.ini, this file won't be
; overwritten on server upgrade.

[chttpd]
bind_address = any

More any. :)

@big-r81
Copy link
Contributor

big-r81 commented Jul 2, 2023

Mhhh, thats strange. Does 0.0.0.0 work?

@pgj
Copy link
Contributor

pgj commented Jul 5, 2023

I don't know enough Erlang to find out what any maps to. But it seems like a type?

The third parameter of the config:get/3 function is the default value when no value could be found for the key under the section (identified by the first and second parameters). That is, any in this context, the default value of bind_address in the http section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants