-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't run the cache-server locally (Redis database connection error) #342
Comments
Hi @syedmuhammaddanish , I believe that you will need to run docker to have the redis, postgres and nats dependencies available. You can do this using the |
Hi, If you could provide the configurations, that would be great. Thanks for the prompt response 👍 |
Sure, here is an example docker-compose file that I think should work (possibly with some tweaking) I've just commented out the app (so I run that directly using node) and then communicate with the services exposed via docker. Let me know if this works for you!
|
Hi @jrhender , Thank you for providing the configurations. I can now run the service dependencies in the docker container. However, when I run the app using npm run start:dev, I get the same redis error. I tried a lot to debug by searching online but I don't know where exactly the problem is. The thing I am sure is the app cannot communicate with the Docker container. Here is the error. Moreover, instead of running app and service dependencies separately, I tried to run the combined docker-compose file (app and service dependencies in docker) and during docker:build, I got these weird errors. Do you have any idea about it. At step 7, it fails. |
I suspect that you need update your
Does this help you out? |
Hi, Thank you so much. It worked. Here are the .env and docker-compose file if someone wants to run the services dependencies in docker compose and start application in node. .env
and docker-compose.yml file
|
However, I think there is still some configuration problems as I am getting error with port 80 now. Can you please check it as I think it is the configuration problem I guess
|
Hi @syedmuhammaddanish , sorry for the delay, I will take a look tmrw |
@syedmuhammaddanish I'm a bit stumped. I think that this error is because our authentication component embedded into the server is misconfigured. The relevant line in the |
Hi, I have not put 80 anywhere in my configurations and I have pasted configuration above in this thread. I am also confused what is happening. Everything goes fine until it sends the authentication request to localhost:80, instead of localhost/${NESTJS_PORT}/v1. I think its not a good idea to run app and service dependencies individually. I am trying to run everything from docker by following the installation guidelines but I am still receiving errors. Can you kindly try to deploy the dev version of docker-compose yourself and see if it works fine. Because i tried everything. Even I tried ubuntu 16, 18 and 20 but no success. :( |
@syedmuhammaddanish Yes, of course, we will try the |
Thank you for your support. I am looking forward. |
@syedmuhammaddanish We're working on an update here https://github.com/energywebfoundation/ssi-hub/pull/367/files |
Thank you @jrhender . |
Hi @syedmuhammaddanish , #367 is merged. Could you try again when you have time please? |
You would need to use the latest code from the |
Hi, I tried running the project. Yesterday, it worked fine and i could see a cache-server running on localhost:3000. However, unfortunately, I had to re-install the cache server again. But this time, I am constantly getting this error and I don't really know why. The dependencies error has been resolved already as i was facing before. Can you please have a look at this
|
Just for your information, I tried changing ubuntu versions too but no success |
@jrhender Sorry my bad, I just tried changing node version from 16 to 14.19.1 and it worked. Getting this output.. |
Hi, I am trying to run the iam-cache-server locally (without docker), and everything runs smoothly until I get the error "Unable to connect to the database. Retrying (1), Connection terminated due to connection timeout".
Also this error is shown in the end.
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'redis'
Can you please help in out in resolving the issue. Thank you.
The text was updated successfully, but these errors were encountered: