Skip to content

Conversation

@kentcdodds
Copy link
Member

Proactively delete the SQLite database file (db.sqlite) before seeding to prevent EBUSY errors when switching playgrounds.

When switching playgrounds, the db.sqlite file could remain locked by the previous process, causing an 'EBUSY: resource busy or locked' error when the seed script attempts to delete or recreate it. This change ensures the file is deleted early, mitigating the lock.

Co-authored-by: me <me@kentcdodds.com>
@kentcdodds kentcdodds merged commit 1f2a287 into main Jul 18, 2025
5 checks passed
@kentcdodds kentcdodds deleted the cursor/fix-playground-db-sqlite-unlink-error-d0bc branch July 18, 2025 16:43
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

Successfully merging this pull request may close these issues.

3 participants