Hello guys, I have been getting a lot of private messages with regard to the error above or anything along the this lines below. so I am adding this Explanation/solution here to help the community:
redis-cache.domain.private:6380 failed … ECONNREFUSED 192.168.16.5:6380]econnrefused-192-168-16-5-6380/33985
- You need to check whether main and redis cache are running on the same port ie port 6379
Run the command below
ps -ef | grep redis
if redis main and redis cache are running on the same port then, the issue is cause by redis
- Stop kobotoolbox using commands below
sudo python3 run.py --stop
-
Replace the
apt-get
calls fromredis/entrypoint.sh
in you kobo-docker/redis/entrypoint.sh
as in the screenshot below, This changes drastically reduces the redis start-up time , hence avoid Enketo loop trying to reconnect
-
Start kobotoolbox using commands below
sudo python3 run.py
Kobotool box should now start without any issue