tursodatabase / turso-docs

Turso reference documentation
https://docs.turso.tech
MIT License
11 stars 48 forks source link

Issue on create database from dump #230

Open jordiyapz opened 1 month ago

jordiyapz commented 1 month ago

Path: /api-reference/databases/create

Goal: To create database from existing dump

I've uploaded the dump successfully, which is quite big (around ~600MB). I've got the dump_url, so I proceeded to create the database with the seed configuration:

{
  //...
  "seed": {
    "type": "dump",
    "name": "<prev-db-dump-name>",
    "url": "<dump_url>",
  }
}

At first it thrown error 500: Internal server error.

Then it said Bad Request 400:

{"code":"create_database_generic_error","error":"Namespace `b59830c4-10c4-4093-9bef-a34b20e8efbb` already exists"}
notrab commented 2 weeks ago

Hey @jordiyapz, apologies for the delay. For support, it's always best to use Discord.

@athoscouto did we recently resolve some issues with larger uploads? @jordiyapz more details about your database is always good, including account name/db name.

jordiyapz commented 2 weeks ago

Oh, okay. So my database was inside a group located in Singapore. My account is "yapdiesel". That failed database was erased by me since it was unusable

notrab commented 2 weeks ago

@jordiyapz since the database was erased, is this still an issue?

jordiyapz commented 2 weeks ago

Oh, yes, because for the future, the ability to upload existing database (even thought it is big) might be crucial for customer. This is a use case for someone who seek to host his existing Sqlite DB. I'm currently finding other workaround but I found it might be such a great feature to migrate by just simply upload existing DB and continue the journey.


From: Jamie Barton @.> Sent: Tuesday, September 3, 2024 3:44 PM To: tursodatabase/turso-docs @.> Cc: Jordi Yaputra @.>; Mention @.> Subject: Re: [tursodatabase/turso-docs] Issue on create database from dump (Issue #230)

@jordiyapzhttps://github.com/jordiyapz since the database was erased, is this still an issue?

— Reply to this email directly, view it on GitHubhttps://github.com/tursodatabase/turso-docs/issues/230#issuecomment-2325940699, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKGYR2KDBGPUF7OQR4IB4KLZUVZF7AVCNFSM6AAAAABMVQCR7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRVHE2DANRZHE. You are receiving this because you were mentioned.Message ID: @.***>