W
Wasp•14mo ago
Minister

Am having issues starting database

pls check the picture
No description
50 Replies
miho
miho•14mo 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
MinisterOP•14mo ago
ok i will do that now but am using windowns i download wsl
MEE6
MEE6•14mo ago
Wohooo @Minister, you just became a Waspeteer level 1!
Minister
MinisterOP•14mo ago
No description
Minister
MinisterOP•14mo ago
this is the version
miho
miho•14mo 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
MinisterOP•14mo ago
ok
Minister
MinisterOP•14mo ago
No description
Minister
MinisterOP•14mo ago
am using UBUNTU 18.04.6 LTS
miho
miho•14mo 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
MinisterOP•14mo ago
after using the command you send
Minister
MinisterOP•14mo ago
No description
Minister
MinisterOP•14mo ago
I have updated to the upgraded version but am still having some issues
Minister
MinisterOP•14mo ago
No description
miho
miho•14mo ago
Did you install node? Which version do you have installed?
Minister
MinisterOP•14mo ago
I install the latest version but is like it will only work on 18.12.0
miho
miho•14mo ago
Yes, it will only work with node 18, in the next release we will remove that limitation
Minister
MinisterOP•14mo 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
miho•14mo 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
MinisterOP•14mo ago
great i finally get it working
MEE6
MEE6•14mo ago
Wohooo @Minister, you just became a Waspeteer level 2!
Minister
MinisterOP•14mo 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
MinisterOP•14mo ago
No description
miho
miho•14mo 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
MinisterOP•14mo ago
did you have a document for this
miho
miho•14mo 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
MinisterOP•14mo ago
i did this
No description
Minister
MinisterOP•14mo ago
still not working
miho
miho•14mo ago
I don't understand what does the screenshot mean? What did you do?
Minister
MinisterOP•14mo ago
can we have like a zoom call so i can explain better
miho
miho•14mo 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
MinisterOP•14mo ago
the snap is from prisma
miho
miho•14mo ago
Did you try doing the steps I recommended above? 😃
Minister
MinisterOP•14mo ago
yes still not working
miho
miho•14mo ago
Can you share your migrations with me? Also try running wasp clean and then wasp start one more time
Minister
MinisterOP•14mo ago
ook
Minister
MinisterOP•14mo ago
Minister
MinisterOP•14mo ago
No description
MEE6
MEE6•14mo ago
Wohooo @Minister, you just became a Waspeteer level 3!
Minister
MinisterOP•14mo ago
No description
Minister
MinisterOP•14mo ago
hello
miho
miho•14mo 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
MinisterOP•14mo ago
Please try and make it optional for me so I can navigate and just try it
Minister
MinisterOP•14mo ago
miho
miho•14mo ago
You have to modify the Wasp file 😄 and change the field in the User model From String to String?
Minister
MinisterOP•14mo ago
ok i will give it a try now still not working I think is better we have a Google meet call pls
miho
miho•14mo 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
MinisterOP•14mo ago
Minister
MinisterOP•14mo ago
Hello can you check the file pls
miho
miho•14mo 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.
Want results from more Discord servers?
Add your server