redis-commander: Unable to connect with socket
If redis server is started with socket, redis-commander cannot connect and fails with RangeError.
Server:
$> redis-server --unixsocket /tmp/redis.sock --port 0
Redis-commander:
$> redis-commander -p 9000 --clear-config --redis-socket /tmp/redis.sock
...
net.js:1064
throw new RangeError('"port" option should be >= 0 and < 65536: ' + port);
^
RangeError: "port" option should be >= 0 and < 65536: NaN
at lookupAndConnect (net.js:1064:13)
at Socket.connect (net.js:1037:5)
at Object.connect (net.js:113:35)
It seems the socket path is not forwarded to the Redis client: https://github.com/NodeRedis/node_redis#rediscreateclient
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 20 (1 by maintainers)
Commits related to this issue
- merge branch redis_socket Fix support for connections with unix socket (#270) Unify connection creation and modify handling of the connectionId — committed to sseide/redis-commander by sseide 5 years ago
- check available hash algorithms and do not use hardcoded 'sha' algorithm anymore for socket connection id, refs #270 — committed to sseide/redis-commander by sseide 5 years ago
Lucky me - no new bug to fix 😃
thanks - latest 10.x node dropped support for ‘sha’ algorithm it seems. Pushed update to select algorithm from list of available ones.
btw - as README states installation via
yarnnot supported - you will run into problems later on. Please usenpmfor installation.