T
Twenty4mo ago
r

can anyone help with local setup

ive successfully installed postgres,redis,etc. and im also able to run the setup commands without any errors . but when i ran npx nx start, it says to go to localhost:3001, but when i went there it says unable to connect. what am i doing wrong?
39 Replies
r
rOP4mo ago
no problems with firewalls, ive tried running my other nodejs project and it works on the browser, also the backend for twenty at 3000 gives cannot get / which means the problem isn't with backend ?
danny.3.
danny.3.3mo ago
what is your configration, like os?
r
rOP3mo ago
i tried it on ubuntu vm, and also wsl on the vm, when i went to the front end it load indefinitely, no errors in borwser console or in terminal and when i tried on wsl, this happens @danny.3.
Nagesh Mandal
Nagesh Mandal3mo ago
getting same issue is it resolved ? if its resolved could you please help me to resolve it
r
rOP3mo ago
no not yet
thomast
thomast3mo ago
Hi @r, do you see any error when you run npx nx start?
r
rOP3mo ago
no errors
r
rOP3mo ago
r
rOP3mo ago
is this how its supposed to look like?
thomast
thomast3mo ago
[0] > nx run twenty-front:start
[0]
[0] ➜ Local: http://localhost:3001/
[0] ➜ Network: use --host to expose
[0] > nx run twenty-front:start
[0]
[0] ➜ Local: http://localhost:3001/
[0] ➜ Network: use --host to expose
` should end with that if your front is running
r
rOP3mo ago
it does have that, but it has other things after it
No description
r
rOP3mo ago
it ends with worker
No description
thomast
thomast3mo ago
looks working you are still using a VM setup? may come from there
r
rOP3mo ago
i used both wsl and ubuntu vm same result
r
rOP3mo ago
does these mean its working?
No description
r
rOP3mo ago
those are from the docs
No description
r
rOP3mo ago
but frontend at 3001 never worked
No description
thomast
thomast3mo ago
I wonder if that could come from the VM setup. Do we agree wsl is not in a vm ? Could you provide all steps you followed in wsl?
r
rOP3mo ago
I followed the exact steps in the documentation. Also I just found out what the problem is
r
rOP3mo ago
This is on an ubuntu vm (8GB,2cpu), as you can see it's using almost all of the ram and this one never worked even though I waited for like an hour
No description
r
rOP3mo ago
My wsl also has 8gb of ram, same result
r
rOP3mo ago
Then I tried giving it more resources, 16 gb of ram, and now it works perfectly
No description
r
rOP3mo ago
Turns out it wasn't having enough resources this whole time 🙂 Does it also take around 6-7 gb to run on your machine?
thomast
thomast3mo ago
front alone takes 6-7 gb yes you can set VITE_DISABLE_TYPESCRIPT_CHECKER VITE_DISABLE_ESLINT_CHECKER in your env, that would drop to ~3gb server is not that huge, neither the worker (you may not need it, depending on what you wanna test locally)
r
rOP3mo ago
I tried this but it never went down to 3gb, but still less memory usage Thanks a lot though Maybe it's good to have this in documentation as there were no errors at all about the memory issue
Andreas
Andreas3mo ago
Having the same issue I think, htop shows 100% memory usage. Is it really not possible to host on less than 16gb?
r
rOP3mo ago
You can use the 1 click docker compose script to host, uses way less resources but if you plan to do local setup for development im not too sure the lowest I got so far was around 5gb memory usage
savatar333
savatar3333mo ago
I had similar issue, I tried to increase wsl ram to 12gb but still not able to work. At the it eats up all the available memory. If any one got it working locally?
mozez
mozez2mo ago
i gut the same problem someone have a solution ???
mozez
mozez2mo ago
No description
krishna
krishna2mo ago
ohh same
r
rOP2mo ago
got any errors in the console? @mozez
mozez
mozez2mo ago
No description
krishna
krishna2mo ago
this is what i get
No description
Zou
Zou2mo ago
have you tried using wsl?
nade
nade2mo ago
Are you running it as root?
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Twenty can't run on Windows natively, so if someone wants to try it without switching to Linux/MacOS, they have to use WSL (which is clearly stated in docs), also, Twenty doesn't need root permissions to run
mozez
mozez2mo ago
its on wsl but not working
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Could you explain in detail what do you mean by not working? It's too vague to understand what exactly is the problem

Did you find this page helpful?