CATProtocol / cat-token-box

A monorepo for packages implementing CAT protocol
https://catprotocol.org
MIT License
186 stars 127 forks source link

unable connect to database #26

Closed minhduytran closed 1 month ago

minhduytran commented 1 month ago

when i run sudo yarn cli wallet balances, it return error image

orchidtexture commented 1 month ago

what DATABASE_HOST are you assigning at packages/tracker/.env?

minhduytran commented 1 month ago

Hi @orchidtexture ,

i use default setting image

orchidtexture commented 1 month ago

After you have the postgres and fractal node running, instead of running the tracker with docker, try this: cd into the tracker directory. cat/packages/tracker yarn install yarn build IF YOU CHANGE THE CODE AT ALL YOU WILL NEED TO RUN YARN BUILD AGAIN TO APPLY CHANGES yarn run start:prod

It should start syncing

anonymous-sushi commented 1 month ago

postgres container is trash

minhduytran commented 1 month ago

hi @orchidtexture I fixed this issue. The problem came from my VPS blocking port 5432. I unlocked it, and the process ran smoothly.