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
25 Replies
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
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...
@Nonso do you still need help here?
Thanks @bob It works now
Thanks for asking @thomast . I don't
I got this error though.
I just reran the command and it's working fine
This keeps happening
What RAM limit did you set up?
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?
I meant WSL
That's interesting, @charles any clue why frontend RAM usage have increased so much?
I didn't set any
Where do I do this?
I'm using a 16GB RAM system running Windows 10
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.
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?
Sorry, didn't precise, I was asking about Twenty version
0.2.1
Hey @bob any update regarding this issue?
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)
Damn, that's too much 🥲
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
I'm on Linux too
+ 2GB OS, 2GB Code editor, 2GB browser
And I'm out of RAM 😮💨
Well, that's what happens when React has to render all components, it's something between 6-7 GB of RAM
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.
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...
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
Ohh I got it. Thanks for clarifying