issue while running the example app on linux

While setting up project following readme file under Run example app.  when run this cabal run wasp-cli db migrate-dev I get this error
...

:x: --- [Error] Can not connect to database: ------------                                           

The database needs to be running in order to execute this command. You can easily start a managed dev database with `wasp start db`.
...

:x: --- [Error] Can not connect to database: ------------                                           

The database needs to be running in order to execute this command. You can easily start a managed dev database with `wasp start db`.
after running cabal run wasp-cli start db db get running. but when again when i run cabal run wasp-cli db migrate-dev this command it gives me this error 
$ cabal run wasp-cli db migrate-dev
Up to date

🐝 --- Compiling wasp project... --------------

🐝 --- Setting up database... ----------------

[Db]      [-] Removed tables
[Db]        - User
[Db]        - SocialLogin
[Db]        - Task
[Db]      
[Db]      [*] Changed the `SocialLogin` table
[Db]        [-] Removed foreign key on columns (userId)
[Db]      
[Db]      [*] Changed the `Task` table
[Db]        [-] Removed foreign key on columns (userId)
✅ --- Database successfully set up. ------------------ 

✅ --- Your wasp project has successfully compiled. ---------------  

🐝 --- Starting database migration... -------------------

zsh:1: no such file or directory: /media/naruto/New                                                                                                                                     
❌ --- [Error] Migrate dev failed: --------------------------                                                                                                                               
Migrate (dev) failed with exit code: 127
$ cabal run wasp-cli db migrate-dev
Up to date

🐝 --- Compiling wasp project... --------------

🐝 --- Setting up database... ----------------

[Db]      [-] Removed tables
[Db]        - User
[Db]        - SocialLogin
[Db]        - Task
[Db]      
[Db]      [*] Changed the `SocialLogin` table
[Db]        [-] Removed foreign key on columns (userId)
[Db]      
[Db]      [*] Changed the `Task` table
[Db]        [-] Removed foreign key on columns (userId)
✅ --- Database successfully set up. ------------------ 

✅ --- Your wasp project has successfully compiled. ---------------  

🐝 --- Starting database migration... -------------------

zsh:1: no such file or directory: /media/naruto/New                                                                                                                                     
❌ --- [Error] Migrate dev failed: --------------------------                                                                                                                               
Migrate (dev) failed with exit code: 127
Don't know where is the issue in project or with docker or something else.  But looking at the file directory path in  the error it is not correct. Path of the Project is 
/media/naruto/New Volume/Open Source Contribution/wasp/waspc/examples/todoApp
/media/naruto/New Volume/Open Source Contribution/wasp/waspc/examples/todoApp
I think the issue is that it is not considering the white space  How do make the project up in running?
7 Replies
fossfighter
fossfighter13mo ago
start db should stay open in background while doing other tasks
Suyog Patil
Suyog Patil13mo ago
Yes it is open
shayne
shayne13mo ago
Agree it is likely the space in the dir name which may not be handled properly, since the error message cuts off there. Can you recreate or move to a dir without a space?
Suyog Patil
Suyog Patil13mo ago
Ok. I will try doing that. But can we make this as a feature to handle paths in future versions? as in the above issue in path New Voulme is the disk partition name. Renaming that will cause me to reinstall all the applications on that disk.
martinsos
martinsos13mo ago
Ok yeah, as @shayne said, this sounds like are not handling that path well, we should make it work for whitespaces in it! Can you open an issue on github for this? A bug report? So basically, what happens, is that when you run wasp db migrate-dev, and your app is in a directory which has whitespace in its path, database migration fails because it breaks on that whitespace. We need to figure out, in Wasp CLI, where are we treating this path in a wrong way.
Suyog Patil
Suyog Patil13mo ago
Ok I will open an issue related to this on GitHub. Thank you.
MEE6
MEE613mo ago
Wohooo @Suyog Patil, you just became a Waspeteer level 1!
Want results from more Discord servers?
Add your server