T
Twenty3mo ago
thetaoi

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

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