redis-ui: Cannot read property '1' of undefined connecting to redis 3.2.11

Connecting to a redis node (v3.2.11) in a cluster, I get the error Cannot read property '1' of undefined

image

This is my server info:

# Server
redis_version:3.2.11
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:7f7585cc3328f16d
redis_mode:cluster
os:Linux 3.10.0-862.14.4.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.8.5
process_id:953
run_id:3ce298d45e2642ef76c7b9b16efaf890436e8357
tcp_port:6381
uptime_in_seconds:9670777
uptime_in_days:111
hz:10
lru_clock:16149683
executable:/usr/local/bin/redis-server
config_file:/etc/redis/6381.conf

EDIT: more details

here’s the console log took from the server version:

[P3XRS] 2019/06/04 15:12:07.985 [INFO]   [PID: 000203] socket.io connected p1yFiFD61Z0x9UekAAAA
[P3XRS] 2019/06/04 15:12:21.788 [WARN]   [PID: 000203] socket.p3xrs.connectionId undefined
[P3XRS] 2019/06/04 15:12:21.790 [INFO]   [PID: 000203] socket.io disconnected p1yFiFD61Z0x9UekAAAA
[P3XRS] 2019/06/04 15:12:22.076 [INFO]   [PID: 000203] socket.io connected ySV0aR3gj0An-BrlAAAB
[P3XRS] 2019/06/04 15:12:24.939 [WARN]   [PID: 000203] shared disconnectRedisIo try
[P3XRS] 2019/06/04 15:12:24.940 [INFO]   [PID: 000203] socket.io connection-connect added new socket.id ySV0aR3gj0An-BrlAAAB to P3Xid84bfc922b6101000077ad052f9b35a name with production-odcom-dmz-master-6381
[P3XRS] 2019/06/04 15:12:24.989 [INFO]   [PID: 000203] socket.io connection-connect P3Xid84bfc922b6101000077ad052f9b35a production-odcom-dmz-master-6381 connected
[P3XRS] 2019/06/04 15:12:25.063 [WARN]   [PID: 000203] socket.io getStreamKeys dbsize 10520 count 100
[P3XRS] 2019/06/04 15:12:35.568 [INFO]   [PID: 000203] socket.io connection-connect redis was already connected
[P3XRS] 2019/06/04 15:12:35.651 [WARN]   [PID: 000203] socket.io getStreamKeys dbsize 10367 count 100
[P3XRS] 2019/06/04 15:12:39.771 [ERROR]  [PID: 000203] TypeError: Cannot read property '1' of undefined
    at getKeysInfo (/usr/lib/node_modules/p3x-redis-ui/node_modules/p3x-redis-ui-server/src/service/socket.io/shared.js:222:43)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (11 by maintainers)

Most upvoted comments

p3x redis ui uses ioredis, and it does not handle clusters, that is the problem

now seems to support it:

Full-featured. It supports Cluster, Sentinel, Pipelining and of course Lua scripting & Pub/Sub (with the support of binary messages).

https://github.com/luin/ioredis