T
Twentyβ€’3w 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?
28 Replies
r
rOPβ€’3w 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.β€’3w ago
what is your configration, like os?
r
rOPβ€’3w 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 Mandalβ€’3w ago
getting same issue is it resolved ? if its resolved could you please help me to resolve it
r
rOPβ€’3w ago
no not yet
thomast
thomastβ€’2w ago
Hi @r, do you see any error when you run npx nx start?
r
rOPβ€’2w ago
no errors
r
rOPβ€’2w ago
r
rOPβ€’2w ago
is this how its supposed to look like?
thomast
thomastβ€’2w 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
rOPβ€’2w ago
it does have that, but it has other things after it
No description
r
rOPβ€’2w ago
it ends with worker
No description
thomast
thomastβ€’2w ago
looks working you are still using a VM setup? may come from there
r
rOPβ€’2w ago
i used both wsl and ubuntu vm same result
r
rOPβ€’2w ago
does these mean its working?
No description
r
rOPβ€’2w ago
those are from the docs
No description
r
rOPβ€’2w ago
but frontend at 3001 never worked
No description
thomast
thomastβ€’6d 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
rOPβ€’6d ago
I followed the exact steps in the documentation. Also I just found out what the problem is
r
rOPβ€’6d 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
rOPβ€’6d ago
My wsl also has 8gb of ram, same result
r
rOPβ€’6d ago
Then I tried giving it more resources, 16 gb of ram, and now it works perfectly
No description
r
rOPβ€’6d 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
thomastβ€’6d 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
rOPβ€’3d 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
Andreasβ€’3d ago
Having the same issue I think, htop shows 100% memory usage. Is it really not possible to host on less than 16gb?
r
rOPβ€’2d 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
savatar333β€’13h 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?
Want results from more Discord servers?
Add your server