redis-stack / redis-stack-docs

6 stars 55 forks source link

Run redis-stack on Docker&MacOS, fail to load RedisInsight page by http://localhost:8001 #21

Closed CzyerChen closed 2 years ago

CzyerChen commented 2 years ago

System Version:

1. MacOS Catalina 10.15.2
2. redis-stack latest
3. Chrome 99.0.4844.84
4. FireFox 69.0.3 (64 位)
5. Safari

I just follow the guide to run redis-stack on Docker&MacOS, here is my actions:

  1. docker pull images
a@b:~$ docker pull redis/redis-stack
Using default tag: latest
latest: Pulling from redis/redis-stack
4d32b49e2995: Pull complete 
59db42264c42: Pull complete 
6823dc0c7365: Pull complete 
adc416e0b552: Pull complete 
972811a9db55: Pull complete 
d84df654fab1: Pull complete 
4c53537c30f9: Pull complete 
a731a195d4fb: Pull complete 
475d8d5bf1a2: Pull complete 
f242ebf98bc6: Pull complete 
64827bf73809: Pull complete 
1a1591a03a07: Pull complete 
91a9bd50d46e: Pull complete 
44fd7da8c8ca: Pull complete 
b568ddb1639f: Pull complete 
Digest: sha256:27666e8e1b632cc02bfb926bf9cbbda650aed2b818444c58613379167e12369e
Status: Downloaded newer image for redis/redis-stack:latest

2.docker run

docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest

check pod status

a@b:~$ docker ps -a
CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS                       PORTS                                            NAMES
f4e4c99042d8        redis/redis-stack:latest   "/entrypoint.sh"         3 seconds ago       Up 2 seconds                 0.0.0.0:6379->6379/tcp, 0.0.0.0:8001->8001/tcp   redis-stack

check logs

9:C 30 Mar 2022 10:47:43.125 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
9:C 30 Mar 2022 10:47:43.125 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=9, just started
9:C 30 Mar 2022 10:47:43.125 # Configuration loaded
9:M 30 Mar 2022 10:47:43.126 * monotonic clock: POSIX clock_gettime
9:M 30 Mar 2022 10:47:43.126 * Running mode=standalone, port=6379.
9:M 30 Mar 2022 10:47:43.126 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
9:M 30 Mar 2022 10:47:43.126 # Server initialized
9:M 30 Mar 2022 10:47:43.127 * <search> Redis version found by RedisSearch : 6.2.6 - oss
9:M 30 Mar 2022 10:47:43.127 * <search> RediSearch version 2.2.10 (Git=HEAD-3d0701f6)
9:M 30 Mar 2022 10:47:43.127 * <search> Low level api version 1 initialized successfully
9:M 30 Mar 2022 10:47:43.127 * <search> concurrent writes: OFF, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, max number of search results:  10000, search pool size: 20, index pool size: 8, 
9:M 30 Mar 2022 10:47:43.127 * <search> Initialized thread pool!
9:M 30 Mar 2022 10:47:43.127 * <search> Enabled diskless replication
9:M 30 Mar 2022 10:47:43.127 * Module 'search' loaded from /opt/redis-stack/lib/redisearch.so
9:M 30 Mar 2022 10:47:43.129 * <graph> Starting up RedisGraph version 2.8.9.
9:M 30 Mar 2022 10:47:43.129 * <graph> Thread pool created, using 4 threads.
9:M 30 Mar 2022 10:47:43.129 * <graph> Maximum number of OpenMP threads set to 4
9:M 30 Mar 2022 10:47:43.129 * Module 'graph' loaded from /opt/redis-stack/lib/redisgraph.so
9:M 30 Mar 2022 10:47:43.130 * <timeseries> RedisTimeSeries version 10609, git_sha=f36e5a703dc9a2487880087a34f6cb0e56d9a459
9:M 30 Mar 2022 10:47:43.131 * <timeseries> Redis version found by RedisTimeSeries : 6.2.6 - oss
9:M 30 Mar 2022 10:47:43.131 * <timeseries> loaded default CHUNK_SIZE_BYTES policy: 4096
9:M 30 Mar 2022 10:47:43.131 * <timeseries> loaded server DUPLICATE_POLICY: block
9:M 30 Mar 2022 10:47:43.131 * <timeseries> Setting default series ENCODING to: compressed
9:M 30 Mar 2022 10:47:43.131 * <timeseries> Detected redis oss
9:M 30 Mar 2022 10:47:43.131 * <timeseries> Enabled diskless replication
9:M 30 Mar 2022 10:47:43.131 * Module 'timeseries' loaded from /opt/redis-stack/lib/redistimeseries.so
9:M 30 Mar 2022 10:47:43.131 * <ReJSON> version: 20007 git sha: e51b585 branch: HEAD
9:M 30 Mar 2022 10:47:43.131 * <ReJSON> Exported RedisJSON_V1 API
9:M 30 Mar 2022 10:47:43.131 * <ReJSON> Enabled diskless replication
9:M 30 Mar 2022 10:47:43.131 * <ReJSON> Created new data type 'ReJSON-RL'
9:M 30 Mar 2022 10:47:43.131 * Module 'ReJSON' loaded from /opt/redis-stack/lib/rejson.so
9:M 30 Mar 2022 10:47:43.131 * <search> Acquired RedisJSON_V1 API
9:M 30 Mar 2022 10:47:43.131 * <graph> Acquired RedisJSON_V1 API
9:M 30 Mar 2022 10:47:43.131 * Module 'bf' loaded from /opt/redis-stack/lib/redisbloom.so
9:M 30 Mar 2022 10:47:43.131 * Ready to accept connections

Then print http://localhost:8001/ in Chrome FireFox Safari not work all, just loading without error. Check system port, that listening

a@b:~$ lsof -i:8001
COMMAND     PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
com.docke 21351 chenzy   23u  IPv4 0xdd9f84403ab6e32f      0t0  TCP *:vcom-tunnel (LISTEN)
com.docke 21351 chenzy   24u  IPv6 0xdd9f8440410b4d77      0t0  TCP localhost:vcom-tunnel (LISTEN)

Even changing the port has no effect. Anything wrong with me?

chayim commented 2 years ago

Hi @CzyerChen unfortunately I can't reproduce this. I've tried on Linux, and on Mac OSX (M1, running monterey). The only thing I found (useful) online was that VCOM is a Virtual Matrix Intercom. Any chance you run a VCOM device and it's listening on port 8081 for something?

CzyerChen commented 2 years ago

ok, Thanks! I will try some other ways to set up again, then give the feedback.