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