sqld icon indicating copy to clipboard operation
sqld copied to clipboard

`turso dev` breaks for newer sqld versions

Open avinassh opened this issue 2 years ago • 0 comments

To reproduce:

turso dev -p 4001 -f ./root

Above command starts the sqld as expected. But when you stop and start again, it breaks with following error:

turso dev -p 4001 -f ./root

2023-10-12T15:43:18.487661Z  INFO sqld: listening for incoming user HTTP connection on 0.0.0.0:4001
2023-10-12T15:43:18.487954Z  INFO sqld::migration: version < 0.18.0 detected, performing migration
Error: File exists (os error 17)

When I downgraded the sqld version to 0.17.0 it works. I am guessing this is the broken method https://github.com/libsql/sqld/blob/6eafdcc5/sqld/src/migration.rs#L35-L34

avinassh avatar Oct 12 '23 16:10 avinassh