W
Wasp•15mo ago
TN

Issues Starting my WASP Project: Bus error

While trying to start my new WASP Project I successfully set up my database and ready to start my WASP project. I run: wasp start and get this error in return:
[Server] > [email protected] watch
[Server] > nodemon --exec 'npm run build-and-start || exit 1'
[Server]
[Client] > [email protected] start
[Client] > npm run validate-env && vite
[Client]
[Client]
[Client] > [email protected] validate-env
[Client] > node -r dotenv/config ./scripts/validate-env.mjs
[Client]
[Client] :mag: Validating environment variables...
[Client!] Bus error
[Server] > [email protected] watch
[Server] > nodemon --exec 'npm run build-and-start || exit 1'
[Server]
[Client] > [email protected] start
[Client] > npm run validate-env && vite
[Client]
[Client]
[Client] > [email protected] validate-env
[Client] > node -r dotenv/config ./scripts/validate-env.mjs
[Client]
[Client] :mag: Validating environment variables...
[Client!] Bus error
7 Replies
martinsos
martinsos•15mo ago
Oh wow that is weird -> can you give us more info? Your OS, more logs (what was printed after Bus error, or before it?). How did you set up your database, did you run it with wasp start db?
TN
TNOP•15mo ago
I ran it with wasp db migrate-dev following a tutorial by Matthew Berman
--- Successfully completed npm install. ----------------------------------------
--- Setting up database... -----------------------------------------------------
--- Database successfully set up. ----------------------------------------------
--- Your wasp project has successfully compiled. -------------------------------
--- Starting database migration... ---------------------------------------------
bash: line 1: /mnt/f/Applications/Video: No such file or directory

--- [Error] Migrate dev failed: ------------------------------------------------

Migrate (dev) failed with exit code: 127
tn-py@DESKTOP:/mnt/f/Applications/Video Application$
--- Successfully completed npm install. ----------------------------------------
--- Setting up database... -----------------------------------------------------
--- Database successfully set up. ----------------------------------------------
--- Your wasp project has successfully compiled. -------------------------------
--- Starting database migration... ---------------------------------------------
bash: line 1: /mnt/f/Applications/Video: No such file or directory

--- [Error] Migrate dev failed: ------------------------------------------------

Migrate (dev) failed with exit code: 127
tn-py@DESKTOP:/mnt/f/Applications/Video Application$
For some reason I was not able to get past this step for some time and yesterday it worked 💪 But now I can't get past bus error
But then I got this error...
tn-py@DESKTOP-:/mnt/f/Applications/Course_Cove$ wasp start
--- Starting compilation and setup phase. Hold tight... ------------------------
--- Compiling wasp project... --------------------------------------------------
--- Setting up database... -----------------------------------------------------
--- Database successfully set up. ----------------------------------------------
--- Your wasp project has successfully compiled. -------------------------------
--- Listening for file changes... ----------------------------------------------
--- Starting up generated project... -------------------------------------------

[Server] > [email protected] watch
[Server] > nodemon --exec 'npm run build-and-start || exit 1'
[Server]
[Client] > [email protected] start
[Client] > npm run validate-env && vite
[Client]
[Client]
[Client] > [email protected] validate-env
[Client] > node -r dotenv/config ./scripts/validate-env.mjs
[Client]
[Client] :mag: Validating environment variables...
[Client!] Bus error
But then I got this error...
tn-py@DESKTOP-:/mnt/f/Applications/Course_Cove$ wasp start
--- Starting compilation and setup phase. Hold tight... ------------------------
--- Compiling wasp project... --------------------------------------------------
--- Setting up database... -----------------------------------------------------
--- Database successfully set up. ----------------------------------------------
--- Your wasp project has successfully compiled. -------------------------------
--- Listening for file changes... ----------------------------------------------
--- Starting up generated project... -------------------------------------------

[Server] > [email protected] watch
[Server] > nodemon --exec 'npm run build-and-start || exit 1'
[Server]
[Client] > [email protected] start
[Client] > npm run validate-env && vite
[Client]
[Client]
[Client] > [email protected] validate-env
[Client] > node -r dotenv/config ./scripts/validate-env.mjs
[Client]
[Client] :mag: Validating environment variables...
[Client!] Bus error
shayne
shayne•15mo ago
What OS do you have @TN ? Any more info about your setup you can provide will help others debug with you.
TN
TNOP•15mo ago
AMD Ryzen 7 3700X 32GB RAM RTX 2080 First time using Ubuntu running it through WSL
tn-py@DESKTOP:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
tn-py@DESKTOP:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
node -v v18.18.0 nvm -v v0.39.5
MEE6
MEE6•15mo ago
Wohooo @TN, you just became a Waspeteer level 1!
martinsos
martinsos•15mo ago
@TN I am afraid you hit this one first: https://github.com/wasp-lang/wasp/issues/1486 -> so you were getting an error because you had a white space in your project path -> that is a bug on our side that we just learned about yesterday! We will get it fixed soon, but we don't have a fix yet -> it seems you managed to get around it though by changing the name of th project. As for Bus error -> I have to admit I am a bit in the dark here, since there is no information next to it. Any error messages or normal messages after that line? We haven't really had this one before. So from reading online, Bus error is most likely a problem with setup on your side, but it is hard to say what exactly. It might be having issues communicating with disk, or maybe something else is amiss. Maybe this article is useful: https://devicetests.com/fix-failed-to-connect-to-bus-error-ubuntu-20-04-lts-wsl ?
GitHub
wasp-cli command not handling white-space in path while running app...
Description So basically, what happens, is that when we run wasp db migrate-dev, and our app is in a directory which has white-space in its path, database migration fails because it breaks on that ...
Brent Cohen
DeviceTests
How To Fix "Failed to Connect to Bus" Error in Ubuntu 20.04 LTS on ...
Troubleshoot and fix the "Failed to Connect to Bus" error in Ubuntu 20.04 LTS on WSL with our step-by-step guide. Resolve connectivity issues quickly.
TN
TNOP•15mo ago
Great! Thanks for the help 🙂 I'll keep troubleshooting through the Bus error
Want results from more Discord servers?
Add your server