Skip to content
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

Failed to connect to redis during setup #39

Open
gravyplaya opened this issue Aug 7, 2024 · 3 comments
Open

Failed to connect to redis during setup #39

gravyplaya opened this issue Aug 7, 2024 · 3 comments

Comments

@gravyplaya
Copy link

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):

  • OS: Mac OS X
  • Arc Browser
@shrihari-prakash
Copy link
Owner

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
Copy link
Author

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

@shrihari-prakash
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants