Broke wasp db studio after migrating from Wasp 0.11 to 0.13
Hi π
Wasp db studio seems to break after migrating from Wasp 0.11 to 0.13. I've followed the guide as outlined in the documentation, so I've first upgraded to 0.12 and afterwards to 0.13.
However, when I now try to run
wasp db studio
I'm getting following error:
Any idea on how to resolve this?
7 Replies
Hi @WWWillems. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry to hear that you're experiencing issues with
wasp db studio
after migrating from Wasp 0.11 to 0.13.
Based on the error message you provided, it seems like there's an issue with renaming a file in your cache directory. This might be due to a bug in Prisma Studio, which is used by Wasp for the db studio
command.
There have been similar issues reported on the Wasp GitHub page, where Prisma Studio was unable to find the required engine binary, causing it to fail (source (https://github.com/wasp-lang/wasp/issues/228)). However, this was reported to be a bug in Prisma and was fixed in a newer version.
Here are a few steps you can try to resolve this issue:
1. Clear the cache: The error message indicates a problem with a file in your cache directory. Try clearing the cache and then run the command again.
2. Update Prisma: Make sure you're using the latest version of Prisma. You can update Prisma by running npm i --save-dev prisma
and npm i @prisma/client
in your terminal (source (https://github.com/wasp-lang/wasp/issues/356)).
3. Reinstall Wasp: If the issue persists, try reinstalling Wasp to ensure you have the latest version and all dependencies are correctly installed.
If none of these steps resolve your issue, I would recommend reporting this as a new issue on the Wasp GitHub page (https://github.com/wasp-lang/wasp/issues). Include the error message and any other relevant details to help the Wasp team diagnose the problem.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @WWWillems, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?Hmz looks like I was able to resolve it by deleting the
checkpoint-nodejs
folder from ~/Library/Caches
Hm that is weird! Checkpoint is Prisma's telemetry system, so this is sometihng on the Prisma side. Glad that you solved it! If you will have more issues with it in the future, you can turn off Prisma's telemetry by setting a certain env var, something like "CHECKPOINT_something" I can't remember exactly at the moment but you can find it in their docs.
I'm also seeing this on the same version of wasp, manually deleting cache solves issue
Wohooo @CamBlackwood, you just became a Waspeteer level 3!
Hm that is annoying than, seems everybody has it! @CamBlackwood was it for you also the case that you migrated from older to newer version of Wasp? After you delete that cache, does the issue ever appear again?
Btw I did a bit of digging, so the quick solution is to set
CHECKPOINT_DISABLE=1
env var in your bashrc or something. I will see that we add this to next Wasp release, and once Wasp upgrades to Prisma 5, I am assuming the problem will go away anyway.Haven't done any migrations I don't think, and it's intermittent, similar to the OP - maybe every 3-4 times?