I have redis instance running in region ‘Singapore’ and also a node web service running in same region under ‘Starter’ plan.
Even though the server logs says ‘Redis connection established!’ I get this ECONNREFUSED 127.0.0.1:6379 in the logs. Why I am I getting this?
my web service runs at https://warm-mailer.onrender.com
The 127.0.0.1 there means that you have application code that is trying to use Redis on the localhost address and not using a separate Redis resource. You would need to review your application code to determine the cause of that.
If I intentionally change the REDIS_SERVICE_NAME variable for hostname to this ‘redis://’, the service is trying to connect to both ‘redis://’ and '127.0.0.1. Please check the logs below:
yes I understand. I just want to show you if I change the redis hostname, the service is trying to connect to both 127.0.0.1 and the wrong hostname I provided. I have reverted to the correct Redis hostname already and now the logs show Error: connect ECONNREFUSED 127.0.0.1:6379