T
Twenty2mo ago
thetaoi

Newbie (in open source) question, how to debug this failures?

Having issues with yarn for dependencies
41 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
That's expected
thetaoi
thetaoiOP2mo ago
meaning? it should work even with these errors?
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Yes
thetaoi
thetaoiOP2mo ago
okay then will try again
thetaoi
thetaoiOP2mo ago
Now I am getting this error when running the data base.
No description
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Do you have Redis database?
thetaoi
thetaoiOP2mo ago
yes in docker
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Is it running?
thetaoi
thetaoiOP2mo ago
yes
thetaoi
thetaoiOP2mo ago
No description
thetaoi
thetaoiOP2mo ago
is something missing ?
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Uncomment REDIS_HOST and REDIS_PORT in your .env in packages/twenty-server
thetaoi
thetaoiOP2mo ago
okay trying are there anything else i need to uncomment ?
thetaoi
thetaoiOP2mo ago
No description
thetaoi
thetaoiOP2mo ago
Now this?
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Nothing important is above this? Like any info about ports or something similar to it?
thetaoi
thetaoiOP2mo ago
node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ^ [Error: ENOENT: no such file or directory, scandir '/Users/owaiseimdad/Desktop/MyWorkings(Offline)/opensourcecontribution/twentyosshackerfest/twenty/packages/twenty-server/dist/assets/engine/core-modules/serverless/drivers/constants/base-typescript-project'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/owaiseimdad/Desktop/MyWorkings(Offline)/opensourcecontribution/twentyosshackerfest/twenty/packages/twenty-server/dist/assets/engine/core-modules/serverless/drivers/constants/base-typescript-project' } Node.js v18.17.1 Warning: command "node dist/src/command/command.js cache:flush" exited with non-zero status code ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— NX Ran target command-no-deps for project twenty-server (15s) With additional flags: cache:flush ✖ 1/1 failed ✔ 0/1 succeeded [0 read from cache] Warning: command "nx command-no-deps -- cache:flush" exited with non-zero status code ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— NX Ran target database:reset for project twenty-server and 2 task(s) they depend on (2m) ✖ 1/3 failed ✔ 2/3 succeeded [2 read from cache]
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Looks like file wasn't compiled and it's simply missing
thetaoi
thetaoiOP2mo ago
Do I need to rerun the command
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
First of all, are you using commands from Local setup for contribution or 1-Click Docker Compose for self-hosting?
thetaoi
thetaoiOP2mo ago
local setup
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Is your Docker connected to WSL2?
thetaoi
thetaoiOP2mo ago
checking, it was when I checked last time oh, no. I am using mac How do I do that on mac I am unable to find it in web @bob
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
On Mac you only host your databases in Docker, codebase must be hosted locally, all instructions how to do it are in docs, all you need is select "Mac" option and follow them
No description
thetaoi
thetaoiOP2mo ago
I did that everything I did was for mac
thetaoi
thetaoiOP2mo ago
I hope this is the site you are talking about https://twenty.com/developers/local-setup
Twenty - Local Setup
Mostly for contributors or curious developers
thetaoi
thetaoiOP2mo ago
everything i followed is in mac tab
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
Yes, this site
thetaoi
thetaoiOP2mo ago
then I followed everything for mac missed none
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
As much as I'd like to help you, I'm not familiar at all with MacOS, all I can suggest is to redo everything and ensure that you're using Node 18, if that will fail, I'm sorry, I'm out of ideas, maybe @charles will help you as he's more familiar with MacOS than I am
thetaoi
thetaoiOP2mo ago
thanks @bob . @charles any idea where I might be missing anything or something I need to install?
charles
charles2mo ago
@thetaoi could you share your .env (hiding your secrets of course) ?
thetaoi
thetaoiOP2mo ago
server .evnv
thetaoi
thetaoiOP2mo ago
thetaoi
thetaoiOP2mo ago
@charles
charles
charles2mo ago
It looks good coud you do npx nx run twenty-server:start again and share the logs again?
thetaoi
thetaoiOP2mo ago
okay But @charles , there are somemany things commented. Do you want me to uncomment them? Same issue again, NX Successfully ran target database:migrate for project twenty-server and 2 tasks it depends on (14s) Nx read the output from the cache instead of running the command for 2 out of 3 tasks.
nx command-no-deps -- cache:flush
nx run twenty-server:command-no-deps cache:flush
node dist/src/command/command.js cache:flush
node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^ [Error: ENOENT: no such file or directory, scandir '/Users/owaiseimdad/Desktop/MyWorkings(Offline)/opensourcecontribution/twentyosshackerfest/twenty/packages/twenty-server/dist/assets/engine/core-modules/serverless/drivers/constants/base-typescript-project'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/owaiseimdad/Desktop/MyWorkings(Offline)/opensourcecontribution/twentyosshackerfest/twenty/packages/twenty-server/dist/assets/engine/core-modules/serverless/drivers/constants/base-typescript-project' } Node.js v20.12.1 Warning: command "node dist/src/command/command.js cache:flush" exited with non-zero status code ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— NX Ran target command-no-deps for project twenty-server (14s) With additional flags: cache:flush ✖ 1/1 failed ✔ 0/1 succeeded [0 read from cache] Warning: command "nx command-no-deps -- cache:flush" exited with non-zero status code ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— NX Ran target database:reset for project twenty-server and 2 task(s) they depend on (2m) ✖ 1/3 failed ✔ 2/3 succeeded [2 read from cache]
charles
charles2mo ago
This does not look to be npx nx run twenty-server:start log, it's talking about database:reset 🙂
thetaoi
thetaoiOP2mo ago
yes thats the issue or is this expected ?
thetaoi
thetaoiOP2mo ago
I assumed this is expected and started both server and front end. For front end I am facing the below issue.
thetaoi
thetaoiOP2mo ago
I tried to debug further but looks like the variable for themes are present but I am still facing the issue @charles @bob server is running fine I guess as I see no errors @professor_snape any inputs here?
Want results from more Discord servers?
Add your server