Am having issues starting database

pls check the picture
No description
50 Replies
miho
miho8mo ago
Hey 👋 which operating system are you using? How did you install Wasp? Does running just wasp works for you? You can give us the operating system details by running uname -a
Minister
Minister8mo ago
ok i will do that now but am using windowns i download wsl
MEE6
MEE68mo ago
Wohooo @Minister, you just became a Waspeteer level 1!
Minister
Minister8mo ago
No description
Minister
Minister8mo ago
this is the version
miho
miho8mo ago
Which version of Linux did you install, Ubuntu? Which version? 😄 Can you also run: ldd --version to see which version of glibc you have Also one quick think you can try, try install Wasp again by running curl -sSL https://get.wasp-lang.dev/installer.sh | sh and see if it maybe fixes the issue 🤞
Minister
Minister8mo ago
ok
Minister
Minister8mo ago
No description
Minister
Minister8mo ago
am using UBUNTU 18.04.6 LTS
miho
miho8mo ago
Oh okay, I think you should be using at least Ubuntu 20.04 since Wasp's binary requires a newer version of GLIBC (you can try upgrading GLIBC on your Ubuntu, but it might break some other stuff for you). So the best thing for you would be to setup WSL2 with a newer Ubuntu version, one extra reason would be that Ubuntu 18 is 2 years old
Minister
Minister8mo ago
after using the command you send
Minister
Minister8mo ago
No description
Minister
Minister8mo ago
I have updated to the upgraded version but am still having some issues
Minister
Minister8mo ago
No description
miho
miho8mo ago
Did you install node? Which version do you have installed?
Minister
Minister8mo ago
I install the latest version but is like it will only work on 18.12.0
miho
miho8mo ago
Yes, it will only work with node 18, in the next release we will remove that limitation
Minister
Minister8mo ago
pls did you have any command to install the older version, I can only find for RedHat which makes it difficult to install
miho
miho8mo ago
Open the blue box in the install instructions and install nvm https://wasp-lang.dev/docs/quick-start#requirements
Quick Start | Wasp
Installation
Minister
Minister8mo ago
great i finally get it working
MEE6
MEE68mo ago
Wohooo @Minister, you just became a Waspeteer level 2!
Minister
Minister8mo ago
this is the issue am now having with the password and username I can't login with even if i creat username and password on the DB
Minister
Minister8mo ago
No description
miho
miho8mo ago
You have to make the role and lastActive optional since on signup a User is created and those fields are missing because Wasp can't add them
Minister
Minister8mo ago
did you have a document for this
miho
miho8mo ago
It's just the way Prisma and required fields work 🙂 if you have a required field, it's required when creating a new User
Minister
Minister8mo ago
i did this
No description
Minister
Minister8mo ago
still not working
miho
miho8mo ago
I don't understand what does the screenshot mean? What did you do?
Minister
Minister8mo ago
can we have like a zoom call so i can explain better
miho
miho8mo ago
1. Change the two fields to optional 2. Migrate the DB once more 3. Try it one more time Let's first try this
Minister
Minister8mo ago
the snap is from prisma
miho
miho8mo ago
Did you try doing the steps I recommended above? 😃
Minister
Minister8mo ago
yes still not working
miho
miho8mo ago
Can you share your migrations with me? Also try running wasp clean and then wasp start one more time
Minister
Minister8mo ago
ook
Minister
Minister8mo ago
No description
MEE6
MEE68mo ago
Wohooo @Minister, you just became a Waspeteer level 3!
Minister
Minister8mo ago
No description
Minister
Minister8mo ago
hello
miho
miho8mo ago
1. Based on the migration, it seems to me that you didn't make the two fields optional and I would advise to try it 😄 2. The network error, I would ask you for the logs in the terminal 3. The Dashboard.jsx error is pretty clear, does the file exist?
Minister
Minister8mo ago
Please try and make it optional for me so I can navigate and just try it
miho
miho8mo ago
You have to modify the Wasp file 😄 and change the field in the User model From String to String?
Minister
Minister8mo ago
ok i will give it a try now still not working I think is better we have a Google meet call pls
miho
miho8mo ago
Please send the Wasp file here, so I can see did you do the proper change? 🙂 Until we exhaust all the steps, let's try to figure it out here in chat, it's easier for us to manage support requests this way
Minister
Minister8mo ago
Hello can you check the file pls
miho
miho8mo ago
Please read the intro to Wasp at least, I see that you are having trouble with the entities concepts. https://wasp-lang.dev/docs/tutorial/entities In your .wasp file, the User entitiy has some fields that are required and don't have a default value e.g.
entity User {=psl
id Int @id @default(autoincrement())
username String @unique
password String
role String
status Boolean @default(false)
lastActive DateTime
documents Document[]
messages Message[]
vaccinations Vaccination[]
certificates Certificate[]
psl=}
entity User {=psl
id Int @id @default(autoincrement())
username String @unique
password String
role String
status Boolean @default(false)
lastActive DateTime
documents Document[]
messages Message[]
vaccinations Vaccination[]
certificates Certificate[]
psl=}
-> role is a String which should be either a String? or have a default value with @default -> lastActive is a DateTime and it should be a DateTime? or have a default value with @default After you modify the User entity, run wasp db migrate-dev it should work
4. Database Entities | Wasp
Entities are one of the most important concepts in Wasp and are how you define what gets stored in the database.