laravel-echo-server icon indicating copy to clipboard operation
laravel-echo-server copied to clipboard

AWS Redis Cluster not working

Open razibchamp opened this issue 5 years ago • 5 comments

It was running fine on local machine but not working on production as i am using AWS redis cluster there. Although It is showing "✔ Listening for redis events..." .

L A R A V E L E C H O S E R V E R

version 1.6.0

Starting server...

✔ Running at localhost on port 6001 ✔ Listening for http events... ✔ Listening for redis events...

Server ready!

Unhandled rejection ReplyError: MOVED 12302 SOME_IP:6379 at JavascriptRedisParser.returnError (/usr/lib/node_modules/laravel-echo-server/node_modules/ioredis/lib/redis/parser.js:24:25) at JavascriptRedisParser.execute (/usr/lib/node_modules/laravel-echo-server/node_modules/redis-parser/lib/parser.js:572:12) at Socket. (/usr/lib/node_modules/laravel-echo-server/node_modules/ioredis/lib/redis/event_handler.js:107:22) at Socket.emit (events.js:321:20) at addChunk (_stream_readable.js:297:12) at readableAddChunk (_stream_readable.js:273:9) at Socket.Readable.push (_stream_readable.js:214:10) at TCP.onStreamRead (internal/stream_base_commons.js:186:23)

razibchamp avatar Feb 03 '20 04:02 razibchamp

same here any solution?

mohamadchoker avatar May 02 '20 07:05 mohamadchoker

@mohamadchoker are using laravel broadcasting or caching ?

razibchamp avatar May 07 '20 08:05 razibchamp

@razibchamp broadcasting

mohamadchoker avatar May 07 '20 08:05 mohamadchoker

Laravel broadcasting doesn't support redis cluster. I used local redis in EC2 instead of aws redis cluster.

razibchamp avatar May 07 '20 08:05 razibchamp

@razibchamp are we sure about that ? trying to connect with remote redis server with laravel echo server?

srhtylmz19 avatar Nov 29 '20 16:11 srhtylmz19