-
Notifications
You must be signed in to change notification settings - Fork 4
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
Getting error: The server does not support SSL connections #2
Comments
Hi @reselbob! Could you try commenting or removing the following lines from
Since you have disabled SSL, I think having that extra config is causing some confusion in your client. |
Commenting out that lines you suggest @rafiss helped. Now I get this error:
|
@reselbob ah sorry I didn't notice before. Your docker-compose file is using a very old and unsupported version of CockroachDB. I recommend using v20.2.6. See our support policy here https://www.cockroachlabs.com/docs/releases/release-support-policy |
Could not get the cluster to work under Docker-Compose. The way I got a local multi-cluster to work was to manually create the docker containers as described here: https://www.cockroachlabs.com/docs/stable/start-a-local-cluster-in-docker-linux.html Then, I create the However, I could not create a new user as described here: https://www.cockroachlabs.com/docs/v20.2/build-a-typescript-app-with-cockroachdb.html. I tried to execute, But get the message So, I bypassed creating the user, and set the
Still, I wish I knew how to get the cluster up and running under Docker-Compose. Thanks @rafiss !!! |
@reselbob Glad it's working! Did your docker-compose file still not work after changing it to use v20.2.6? |
The docker-compose did not work with the upgrade. But, now, even under the current settings I am getting an error
Thanks for all the ongoing attention @rafiss Something to keep in mind: I am running on a M1 miniMac, under a preview of Docker. I don't think this should matter. But also, I'll try it all out on a Ubuntu machine. |
Turns out that that one of the issues is indeed the M1 MINIMAC, it seems. I just ran this without a problem on Ubuntu: https://www.cockroachlabs.com/docs/stable/start-a-local-cluster-in-docker-linux.html I am embarrassed @rafiss. |
@reselbob i'd like to draw your attention to some nice docker-compose examples for CRDB. I'm including links to both secure and insecure examples... insecure - https://github.com/cockroachlabs-field/docker-examples/tree/master/example-haproxy notice both leverage a small helper container to simplify the process of doing initialization tasks. see the following service in each compose file. additional information on this helper container can be found here: https://github.com/cockroachlabs-field/cockroachdb-remote-client
|
@reselbob It's not embarrassing at all! The M1 is quite new and we don't have them in the company, so I really do appreciate you testing it out and reporting how it went. |
@ericharmeling Should we add a warning that our Hello World tutorials don't work with insecure clusters? Looks like the mix/match between the insecure Docker image and our instructions that create a new SQL user is part of the problem. |
|
Hi @rafiss and @timveil: I made this Katacoda that demonstrates how to get CockroachDB up and running under Docker-Compose: https://katacoda.com/reselbob/scenarios/cockroachdb Maybe you'll find it useful for others. |
i have same issue this was initially in the ormConfig file. i delete this and issue reselove with local conatiner. |
I think I am doing exactly as you instruct. I am using a CockraochDB cluster created under docker-compose. I can access the cluster via DBVisualizer against localhost. Please allow me to thank you in advance for any help you can provide. If the error is due some bad behavior on my part, please excuse me.
Here is the Docker-compose file.
Here is the
ormconfig.ts
file:Here is the error stack
The text was updated successfully, but these errors were encountered: