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

could not use with couchbase:// scheme on custom port #349

Open
ingenthr opened this issue Jul 18, 2024 · 0 comments
Open

could not use with couchbase:// scheme on custom port #349

ingenthr opened this issue Jul 18, 2024 · 0 comments

Comments

@ingenthr
Copy link
Contributor

cbdinocluster sets up alternate ports (running in docker) and I set up my config to use the supplied connstr. Unfortunately, it didn't work.

➜  couchbase-shell git:(main) ✗ target/debug/cbsh
[WARN] 2024-07-18 12:44:00.659 Using PLAIN authentication for cluster mbp, credentials will sent in plaintext - configure tls to disable this warning
[ERROR] 2024-07-18 12:44:00.659 Couchbase scheme and non-default port detected, http scheme must be used with custom port (management port)

Unfortunately, this is validated at startup, so I couldn't use shell at all even though other configs were valid. Maybe we should validate them at the time of loading a particular environment?

I removed the validation, and that let me start the process. A later failure happened when doing an upsert:

Failed to load cluster config: │ ... │
│ │ │ │ │ error sending request for url (http │ │
│ │ │ │ │ ://192.168.106.3:30433/pools/defaul │ │
│ │ │ │ │ t/b/acm)

So it looks like we need some enhancement to support doing enough bootstrap to get config or get HTTP for retrieving config.

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

1 participant