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

Having issues with yarn for dependencies
41 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS5d ago
That's expected
thetaoi
thetaoi5d ago
meaning? it should work even with these errors?
ɃØĦɆᵾS
ɃØĦɆᵾS5d ago
Yes
thetaoi
thetaoi5d ago
okay then will try again
thetaoi
thetaoi5d ago
Now I am getting this error when running the data base.
No description
ɃØĦɆᵾS
ɃØĦɆᵾS5d ago
Do you have Redis database?
thetaoi
thetaoi5d ago
yes in docker
ɃØĦɆᵾS
ɃØĦɆᵾS5d ago
Is it running?
thetaoi
thetaoi5d ago
yes
thetaoi
thetaoi5d ago
No description
thetaoi
thetaoi5d ago
is something missing ?
ɃØĦɆᵾS
ɃØĦɆᵾS5d ago
Uncomment REDIS_HOST and REDIS_PORT in your .env in packages/twenty-server
thetaoi
thetaoi5d ago
okay trying are there anything else i need to uncomment ?
thetaoi
thetaoi5d ago
No description
thetaoi
thetaoi5d ago
Now this?
ɃØĦɆᵾS
ɃØĦɆᵾS5d ago
Nothing important is above this? Like any info about ports or something similar to it?
thetaoi
thetaoi5d 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
ɃØĦɆᵾS5d ago
Looks like file wasn't compiled and it's simply missing
thetaoi
thetaoi5d ago
Do I need to rerun the command
ɃØĦɆᵾS
ɃØĦɆᵾS5d ago
First of all, are you using commands from Local setup for contribution or 1-Click Docker Compose for self-hosting?
thetaoi
thetaoi5d ago
local setup
ɃØĦɆᵾS
ɃØĦɆᵾS5d ago
Is your Docker connected to WSL2?
thetaoi
thetaoi5d 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
ɃØĦɆᵾS5d 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
thetaoi5d ago
I did that everything I did was for mac
thetaoi
thetaoi5d 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
thetaoi5d ago
everything i followed is in mac tab
ɃØĦɆᵾS
ɃØĦɆᵾS5d ago
Yes, this site
thetaoi
thetaoi5d ago
then I followed everything for mac missed none
ɃØĦɆᵾS
ɃØĦɆᵾS5d 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
thetaoi5d ago
thanks @bob . @charles any idea where I might be missing anything or something I need to install?
charles
charles5d ago
@thetaoi could you share your .env (hiding your secrets of course) ?
thetaoi
thetaoi5d ago
server .evnv
thetaoi
thetaoi5d ago
@charles
charles
charles5d ago
It looks good coud you do npx nx run twenty-server:start again and share the logs again?
thetaoi
thetaoi4d 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
charles3d ago
This does not look to be npx nx run twenty-server:start log, it's talking about database:reset 🙂
thetaoi
thetaoi3d ago
yes thats the issue or is this expected ?
thetaoi
thetaoi3d ago
I assumed this is expected and started both server and front end. For front end I am facing the below issue.
thetaoi
thetaoi2d 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