shrihari-prakash / liquid

✨ Seamless and highly customizable authentication and user management server for any project. ✨
https://liquid.shrihariprakasam.in
MIT License
96 stars 8 forks source link

Failed to connect to redis during setup #39

Open gravyplaya opened 3 months ago

gravyplaya commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: Trying to install and run in both a docker container from the Dockerfile and via npm gives the same error trying to connect to redis during startup. ERROR (150): Error connecting to Redis ({"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":6379}).

Expected behavior liquid should run

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

shrihari-prakash commented 3 months ago

Hello @gravyplaya ,

It is hard to tell without knowing your complete setup. How are you running your Redis instance? On docker as well? If yes, did you expose port 6379 from the container?

Redis and MongoDB are important requirements for Liquid to function as intended. Alternatively, you can also try the quick start guide which has a docker-compose example with the required dependencies.

gravyplaya commented 3 months ago

I was actually trying to set it up on render.com using Docker.

shrihari-prakash commented 3 months ago

I was actually trying to set it up on render.com using Docker.

@gravyplaya in that case, if you do not want to use Redis or you are just trying to evaluate Liquid, you can disable the use of Redis by setting the environment variable CAN_USE_CACHE to false (Not recommended for production). You will still need a MongoDB instance though which you can configure in the environment variable MONGO_DB_CONNECTION_STRING.