W
Wasp-langβ€’4mo ago
winphan199

Database not started on setting up the project

I have just worked with Wasp-lang and trying to run the first project. The error occurs when I try to wasp start. It said the database is not started even though it is SQlite DB. Wasp version: 0.13.2 System: MacOS M1
No description
11 Replies
kapa.ai
kapa.aiβ€’4mo ago
Hi @winphan199. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems like you're having trouble starting the database for your Wasp project. Here are a few steps you can follow to troubleshoot this issue: 1. Check your database URL: Make sure you've set the DATABASE_URL correctly in your .env.server file. If you're using SQLite, the URL should look something like sqlite:./dev.db. If the file doesn't exist, create it in the root directory of your Wasp project. source (https://wasp-lang.dev/docs/data-model/backends#connecting-to-a-database) 2. Start the database manually: You can try starting the database manually using the wasp start db command. This command starts a default PostgreSQL dev database for you. Your Wasp app will automatically connect to it. source (https://wasp-lang.dev/docs/general/cli#project-commands) 3. Clean the project: If the above steps don't work, you can try cleaning the project using the wasp clean command. This command removes all generated code and other cached artifacts. If you're using SQLite, it also deletes the SQLite database. source (https://wasp-lang.dev/docs/general/cli#project-commands) If you're still having trouble, it might be a bug with Wasp. You can report it on their Github issues page (https://github.com/wasp-lang/wasp/issues). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @winphan199, 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?
winphan199
winphan199β€’4mo ago
It is till not fixed for me.
miho
mihoβ€’4mo ago
even though it is SQlite DB
The error won't be triggered if the DB is SQlite, so this is quite curious πŸ˜„ How does your Wasp file look like? Did you save the Wasp file after changing the DB type?
winphan199
winphan199β€’4mo ago
I haven't change any setting yet. I just create the new wasp project. Then cd into it and wasp start. I just checked. It seems to be related to permission issue. Do you have any idea how ti fix it. The command run well with sudo
miho
mihoβ€’4mo ago
Which OS are you running? What did you do to fix the issue? Did you install Wasp with sudo or did you create the new app with sudo? cc: @sodic @martinsos
winphan199
winphan199β€’4mo ago
Im using macos m1. I just basically run sudo wasp start. And it works fine
MEE6
MEE6β€’4mo ago
Wohooo @winphan199, you just became a Waspeteer level 1!
winphan199
winphan199β€’4mo ago
But it means everytimes i want to start my wasp app. I have to run it with sudo
miho
mihoβ€’4mo ago
That's weird, could you maybe run wasp uninstall and then install it again? Don't run cURL with sudo
curl -sSL https://get.wasp-lang.dev/installer.sh | sh
curl -sSL https://get.wasp-lang.dev/installer.sh | sh
winphan199
winphan199β€’4mo ago
Hi. I managed to fix the problem by unstall current nodejs and reinstall it using nvm. My previous node was installed through prebuilt installer for macOS.
miho
mihoβ€’4mo ago
Alright! That's good to know for the future πŸ™‚
Want results from more Discord servers?
Add your server
More Posts
error schema.prisma:63Hi Guys, i get the following error when creating a new project in wasp it says schema.primsa is alreHow to change logo in google searchWhen I search for my website on google. The results show the logo for wasp on the left of the link iHow to replace wasp logo as favicon in tabI've deployed my website using wasp deploy fly deploy. In my localhost, I was able to replace the faWhat file contains the styles for the login and signup pageI'm trying to edit the styling of the Auth UI Component because it doesn't fit with the color schemeWhen using GitHub codespaces, how to setup Google Oauth for developmentWhen using GitHub codespaces, how to setup Google OAuth for development/I tried using "wasp ai" like this video https://www.youtube.com/watch?v=0 shows but it doesn't workGenerating plan (slowest step, usually takes 30 to 90 seconds)... Code agent failed with the http erOauth provider flow redirects to localhost:3001 instead of 3000I'm creating a new WASP app from scratch, I've added the Google Provider. My server by default runsGetPaginatedTransactions problem with query with decimalsHello I made simple object entity Transaction {=psl id Int @id Prisma update Update available 4.16.2 -> 5.12.1Can I update prisma in wasp project? What impact it would have? β”‚ Update available 4.16.2 -> 5.12.Is there an easy way to use another Tailwind Component Library or shadcn?I tried setting up daisyui with the existing CSS and it messed up everything. I am wondering if ther