Suyog Patil
Suyog Patil
WWasp-lang
Created by Suyog Patil on 10/8/2023 in #🙋questions
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?
8 replies