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

I'm pushing to self-hosting (DoltLab error occurred) #102

Open
2331892928 opened this issue Jan 3, 2025 · 3 comments
Open

I'm pushing to self-hosting (DoltLab error occurred) #102

2331892928 opened this issue Jan 3, 2025 · 3 comments
Assignees

Comments

@2331892928
Copy link

After I created it locally with dolt init, I have modified the database Then use the dolt. Add dolt commit -m "" remote add orange http://192.168.5.55:3000/database/testdatabases then use dolt An error occurred in push.
That is, push to self-hosting failure, report an error:
| Uploading... failed to get remote db; The remote: orange 'http://192.168.5.55:3000/database/testdatabases' could not be accessed; Could not access dolt url 'http://192.168.5.55:3000/database/testdatabases' : RPC error: code = Unavailable desc = connection error: desc = "error reading server preface: http2: frame too large"
How to solve it?

@timsehn
Copy link

timsehn commented Jan 3, 2025

The remote port on DoltLab is different than the website port. If you click the clone button on DoltLab it should have the correct url

@timsehn timsehn transferred this issue from dolthub/dolt-workbench Jan 3, 2025
@coffeegoddd
Copy link
Contributor

@2331892928 as @timsehn mentioned the DoltLab gRPC port in the remote addresses you shared is incorrect. It should be 50051, not 3000, so your remote url should be http://192.168.5.55:50051/database/testdatabases instead. Your host does not need to have port 3000 open, and should instead open port 50051.

Also the remote url for your instance should be displayed on the empty database page, like so:
Screenshot 2025-01-03 at 9 29 24 AM

@coffeegoddd coffeegoddd self-assigned this Jan 3, 2025
@timsehn
Copy link

timsehn commented Jan 3, 2025

For instance from the DoltLab demo instance (https://doltlab.dolthub.com/)

image

You'll see the website is running on port 443 (the default https port) but the remote api that push/pull from is running on 50051. That is the default port for DoltLab so I suspect something like:

dolt remote add foo http://192.168.5.55:50051/database/testdatabases
dolt push foo main

Would work.

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