T
Twenty4mo ago
Kash_04

Issue setting up the project in local

After following the official documentation, when running npx nx start twenty-server, I am getting the error for which I have attached the screenshot. Also, when running npx nx start twenty-front, I am seeing the error of unable to reach backend. I have also done In packages/twenty-front/.env uncomment VITE_DISABLE_TYPESCRIPT_CHECKER=true and VITE_DISABLE_ESLINT_CHECKER=true.
No description
31 Replies
Prastoin
Prastoin4mo ago
Hello @Kash_04 what are your hardware specifications ?
Kash_04
Kash_04OP4mo ago
16 GB RAM, 512 GB SSD, HP HP Pavilion Laptop 15-eg2xxx, Intel i7 12th gen
Prastoin
Prastoin4mo ago
Should be largely enough to run Twenty Are you encountering the issue on main ?
Kash_04
Kash_04OP4mo ago
Yes. I am encountering it on main. Have been reading the chats and documentation but whatever was suggested, I tried and still it isn't working
Prastoin
Prastoin4mo ago
Are you on windows or a unix system ? Are you using a vm by any chance ?
Kash_04
Kash_04OP4mo ago
I am on unix system and not using any vm. Also, the postgres and redis setup has been done on my local machine and not any docker containers
Prastoin
Prastoin4mo ago
Would need more information on what you've done in order to achieve to this Have you correclty installed all deps ?
Kash_04
Kash_04OP4mo ago
Followed the guidelines as given in the docs.
Prastoin
Prastoin4mo ago
Can't guess what's not working on your local setup
Kash_04
Kash_04OP4mo ago
so what additional info can I provide you with?
Prastoin
Prastoin4mo ago
From your screenshot its' not possible to determine what twenty-front start sub command leaded to the JS OOM Please share logs of:
yarn
npx nx build twenty-front
npx nx start twenty-front
yarn
npx nx build twenty-front
npx nx start twenty-front
Kash_04
Kash_04OP4mo ago
these are my yarn logs
No description
No description
No description
No description
No description
Kash_04
Kash_04OP4mo ago
npx nx build twenty-front There are many file names along with their sizes. I haven't included all those screenshots.
No description
No description
No description
No description
Kash_04
Kash_04OP4mo ago
npx nx start twenty-front logs
No description
Kash_04
Kash_04OP4mo ago
@prastoin I have shared the logs.
Prastoin
Prastoin4mo ago
Sorry I was sleeping, during night Looking at you screenshots everything looks fine ✅ Is the wront ooming after few minutes ? because here it looks fine
Kash_04
Kash_04OP4mo ago
Sorry, wasn't aware of the time difference. Will keep that in mind from now on. While starting the frontend, I am getting the error of unable to connect with backend after a few minutes.
Prastoin
Prastoin4mo ago
That's all right no worries
While starting the frontend, I am getting the error of unable to connect with backend after a few minutes.
This means that only your backend is not working, I assume this the one having the oom issues ?
Kash_04
Kash_04OP4mo ago
yeah
Prastoin
Prastoin4mo ago
Could you please try building your backend on its own first using
npx nx build twenty-server
npx nx build twenty-server
So we can determine at what step it gets crazy
Kash_04
Kash_04OP4mo ago
There is no error while building the backend.
Kash_04
Kash_04OP4mo ago
No description
Prastoin
Prastoin4mo ago
The server shouldn't be greedy in ram Does it keep OOMing even if you don't hit it ?
Kash_04
Kash_04OP4mo ago
Sorry for replying late. But after npx nx start twenty-server, without even hitting it, after a few minutes of running the command, I get this error.
No description
Prastoin
Prastoin4mo ago
Could you please review your cpu memory on live while bootstraping the app to see if for some reason the server just explodes in cpu usage ?
Kash_04
Kash_04OP4mo ago
@Prastoin could you please guide me on how do i check this?
0stealth
0stealth4mo ago
facing the same issue on wsl2, allocated 12 gb of RAM
Prastoin
Prastoin4mo ago
Hello guys unfortunately it's going to be quite though to debug this remotely on your pcs, one thing we could still to do on our side is try debugging the local env on a wsl instances as you guys do What you can do is track/record your task manager activity usage per program while building or trying to start the app trying to determine what's making the oom error exactly
SummerLovin
SummerLovin4mo ago
I am getting the same error on wls I have 32GB Memory
Prastoin
Prastoin4mo ago
@charles seems like we have an oom issue for contributors working on wsl might wanna create an issue
zou
zou4mo ago
Hi, I had the same issue before and I fixed it with export NODE_OPTIONS=--max_old_space_size=4096

Did you find this page helpful?