T
Twenty3mo ago
Nonso

Error while setting up locally

Hi. I encountered a problem while setting up locally. https://twenty.com/developers/local-setup#step-3:-set-up-a-postgresql-database I'm currently on this step and I ran into this error: Image 1 I assumed it was solvable by using sudo but I still got an error: Image 2 So, I decided to skip this step. I made it to this step before running into another error https://twenty.com/developers/local-setup#step-6:-running-the-project Image 3 Image 4 Image 5 Image 6 Image 7 I’m not sure how to resolve this issue. Could you help?
Twenty - Local Setup
Mostly for contributors or curious developers
No description
No description
No description
No description
No description
No description
No description
25 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
First of all, never use sudo unless you really have to Second, you have to add redis container Port 6379 is default port for Redis Please read this thread, here are all information you probably need https://discord.com/channels/1130383047699738754/1276587741144154193/1276601863218794536
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
Core team is aware of this problem and there's already fix for this but it seems like it's not live for some reason https://github.com/twentyhq/twenty/issues/7031
GitHub
Add necessary information about Redis cache to contributor's guide ...
After introducing changes related to the metadata querying to project (which forces using Redis as cache for optimization), there are no changes reflected in documentation, potentially creating pro...
thomast
thomast3mo ago
@Nonso do you still need help here?
Nonso
NonsoOP3mo ago
Thanks @bob It works now Thanks for asking @thomast . I don't
Nonso
NonsoOP3mo ago
I got this error though.
No description
Nonso
NonsoOP3mo ago
I just reran the command and it's working fine This keeps happening
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
What RAM limit did you set up?
Harsh Singh
Harsh Singh3mo ago
I am getting the same error. It was working fine yesterday. When I write the command to run frontend, the memory usage shoots up from 6gb to 13gb and then it throws the above error. For NODE?
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
I meant WSL That's interesting, @charles any clue why frontend RAM usage have increased so much?
Nonso
NonsoOP3mo ago
I didn't set any Where do I do this? I'm using a 16GB RAM system running Windows 10
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
Advanced settings configuration in WSL
A guide to the wsl.conf and .wslconfig files used for configuring settings when running multiple Linux distributions on Windows Subsystem for Linux.
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
According to wiki, by default WSL can use up to 50% of total RAM so in your case it's 8 If what Harsh wrote is true, then no wonder that you're unable to launch the app I'll check RAM usage later, just to be sure, you're running 0.30 version?
Nonso
NonsoOP3mo ago
No description
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
Sorry, didn't precise, I was asking about Twenty version
Nonso
NonsoOP3mo ago
0.2.1
Harsh Singh
Harsh Singh2mo ago
Hey @bob any update regarding this issue?
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
The only thing I can confirm is fact that project may take up to 10 GB of RAM with everything running (postgres, redis, backend and frontend)
Harsh Singh
Harsh Singh2mo ago
Damn, that's too much 🥲
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Average is 8 GB but I've managed to hit 10 GB somehow Also, I'm on Linux so it may behave differently than on Windows
Harsh Singh
Harsh Singh2mo ago
I'm on Linux too + 2GB OS, 2GB Code editor, 2GB browser And I'm out of RAM 😮‍💨
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Well, that's what happens when React has to render all components, it's something between 6-7 GB of RAM
Harsh Singh
Harsh Singh2mo ago
I have a question regarding the versioning of the project. The current version is 0.2.1 in the package.json file of the project. Here you asked if the project is on 0.30 I'm new to this repo. I don't have much knowledge regarding this. Can you please clarify.
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
GitHub
Release Emails & Phones field types, Workspace Invitations, Date Re...
What's Changed Created a breadcrumb for left nav menu sub items by @lucasbordeau in #6762 Create new steps in workflow editor by @Devessier in #6764 Set statuses on workflows by @thomtrp in #6...
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
I never check project.ts file because someone may forget to update the file (like it's right now, I'm not sure), also it's possible to check it in Settings after logging in to the app
Harsh Singh
Harsh Singh2mo ago
Ohh I got it. Thanks for clarifying
Want results from more Discord servers?
Add your server