WaspW
Wasp17mo ago
43 replies
alex

Unable to start db in saas template because of permission error in WSL

Whenever I do wasp new I can successfully create a new app and start the db successfully (when it defaults to sql) but when I do the saas template and it defaults to postgres, I have tried many ways to fix this and I still get this error:

wasp-bin: /home/alex/wasptest/app/main.wasp: openFile: permission denied (Permission denied)

I was at first getting this error below. I then enabled sockets per the docs instructions, and the error message changed to the above, regarding the openFile command.

wasp-bin: Network.Socket.bind: permission denied (Permission denied)

I am using WSL, if that matters. I receive this error when I run the commands in order of the docs instructions.

I tried this with and without pgadmin running, and I also tried this with and without a db url in my env file. I am unsure what else to try, or if I need to give permissions to wasp in my WSL CLI.

any suggestions?
Was this page helpful?