Running wasp db migrate-dev gives permission error
Anyone know why i get this error when running
wasp db migrate-dev
wasp verison: 0.13.2
platform: wsl ubuntu 22.044 Replies
Hi @arteko. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The error message you're seeing indicates that the Wasp process doesn't have the necessary permissions to create a directory in the specified location. This could be due to a variety of reasons, such as the user running the Wasp process not having write permissions for the specified directory, or the directory being located on a read-only file system.
One common cause of this issue, especially when using Wasp on Windows Subsystem for Linux (WSL), is that the code is not located on the Linux file system. Wasp is known to have issues when run on the Windows file system from within WSL. To resolve this, you should ensure that your code is located on the Linux file system. You can refer to this guide (https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl) for more details on how to do Wasp development on WSL.
If your code is already on the Linux file system, or moving it there doesn't resolve the issue, then it's likely that there's a problem with the permissions of the user running the Wasp process. You might need to adjust these permissions or run the process as a different user.
If you're still having trouble, you can create an issue on the Wasp GitHub page (https://github.com/wasp-lang/wasp/issues) to get further assistance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @arteko, 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?
Fixed it!
Problem was copy-pasting the extracted zip folder straight to the linux branch folder in explorer so wsl automatically saw it as read only, even if it wasn't
Just doing
wasp new (name)
and copying the files into there works wonders.Wohooo @arteko, you just became a Waspeteer level 1!
Oh interesting! Ideally you woul djust copy paste that extracted zip folder though, I wonder why WSL so them as read only?