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

Error calling dolt_clone from a hosted instance #31

Closed
tbantle22 opened this issue Jul 28, 2022 · 2 comments · Fixed by dolthub/dolt#4018
Closed

Error calling dolt_clone from a hosted instance #31

tbantle22 opened this issue Jul 28, 2022 · 2 comments · Fixed by dolthub/dolt#4018
Assignees
Labels
bug Something isn't working

Comments

@tbantle22
Copy link
Collaborator

When I connect to a sql server from hosted and then try to call dolt_clone I get this error.

mysql> use coronavirus;
Database changed
mysql> call dolt_clone("dolthub/corona-virus");
ERROR 1105 (HY000): unable to clone remote database; no remote dialer configured

It's possible the port to clone is not open on the hosted instance

@fulghum
Copy link

fulghum commented Aug 4, 2022

I wasn't able to repro this before, but just figured it out...

When a Dolt sql-server starts up with no databases, you currently see this error after you create a database, use it, and call dolt_clone. However... if you stop the server and restart it, then dolt_clone works as expected. This seems to be something related to how we initialize the database provider and must not be setting the remote dialer.

@fulghum
Copy link

fulghum commented Aug 4, 2022

Found it! The provider's RemoteDialer comes from MultiRepoEnv.RemoteDialProvider, and that code just grabs the remote dialer from the first DoltEnv, otherwise returns nil if there aren't any DoltEnvs. I'll see if we can fake enough of a DoltEnv in that case to make the dialer work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants