[GH-ISSUE #326] WebUI: 500 (Internal Server Error): dial tcp 127.0.0.1:6379: connect: connection refused #96

Open
opened 2026-03-02 05:18:42 +03:00 by kerem · 2 comments
Owner

Originally created by @noloman on GitHub (May 6, 2024).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/326

Hi,

I'm trying to run the WebUI with Docker Compose like this:

  cache:
    platform: linux/amd64
    image: redis:7.2.4-alpine
    container_name: "remoti-backend-cache"
    restart: always
    ports:
      - '6379:6379'
    command: redis-server --save 20 1 --loglevel warning --requirepass manutest
    volumes:
      - cache:/data
    networks:
      - fullstack

  tasks-web-ui:
    platform: linux/amd64
    container_name: "remoti-tasks-web-ui"
    image: hibiken/asynqmon:latest
    command: ["docker run --rm \
      --name asynqmon \
      --network fullstack \
      -p 8080:8080 \
      hibiken/asynqmon \
      --redis-addr=cache:6379 \
      --redis-password=mytestpassword"]
    ports:
      - "8080:8080"
    networks:
      - fullstack

However when I go to localhost:8080 I'm seeing:

Could not retrieve queues live data — See the logs for details

Then when I open the browser developer tools:

XHRGET
http://localhost:8080/api/queues
[HTTP/1.1 500 Internal Server Error 78ms]

XHRGET
http://localhost:8080/api/queue_stats
[HTTP/1.1 500 Internal Server Error 113ms]

listQueuesAsync: 500 (Internal Server Error): dial tcp 127.0.0.1:6379: connect: connection refused
[queuesActions.ts:112:14](http://localhost:8080/static/js/actions/queuesActions.ts)
listQueueStatsAsync:  500 (Internal Server Error): dial tcp 127.0.0.1:6379: connect: connection refused

Thanks a lot in advance!

Originally created by @noloman on GitHub (May 6, 2024). Original GitHub issue: https://github.com/hibiken/asynqmon/issues/326 Hi, I'm trying to run the WebUI with Docker Compose like this: ``` cache: platform: linux/amd64 image: redis:7.2.4-alpine container_name: "remoti-backend-cache" restart: always ports: - '6379:6379' command: redis-server --save 20 1 --loglevel warning --requirepass manutest volumes: - cache:/data networks: - fullstack tasks-web-ui: platform: linux/amd64 container_name: "remoti-tasks-web-ui" image: hibiken/asynqmon:latest command: ["docker run --rm \ --name asynqmon \ --network fullstack \ -p 8080:8080 \ hibiken/asynqmon \ --redis-addr=cache:6379 \ --redis-password=mytestpassword"] ports: - "8080:8080" networks: - fullstack ``` However when I go to `localhost:8080` I'm seeing: ```Error Could not retrieve queues live data — See the logs for details ``` Then when I open the browser developer tools: ``` XHRGET http://localhost:8080/api/queues [HTTP/1.1 500 Internal Server Error 78ms] XHRGET http://localhost:8080/api/queue_stats [HTTP/1.1 500 Internal Server Error 113ms] listQueuesAsync: 500 (Internal Server Error): dial tcp 127.0.0.1:6379: connect: connection refused [queuesActions.ts:112:14](http://localhost:8080/static/js/actions/queuesActions.ts) listQueueStatsAsync: 500 (Internal Server Error): dial tcp 127.0.0.1:6379: connect: connection refused ``` Thanks a lot in advance!
Author
Owner

@MadanaGopalD commented on GitHub (Jun 18, 2024):

I am facing the same issue, Did u get any fix?

<!-- gh-comment-id:2175447483 --> @MadanaGopalD commented on GitHub (Jun 18, 2024): I am facing the same issue, Did u get any fix?
Author
Owner

@RaidOuahioune commented on GitHub (Jun 27, 2024):

i have the same issue . u can see that the ip address you are trying to connect to is ur localhost address and not the ip address of the redis container inside the network . I solved this issue by using a static ip address for my redis container , instead of relying on docker host resolution . Something like this
image

<!-- gh-comment-id:2194573437 --> @RaidOuahioune commented on GitHub (Jun 27, 2024): i have the same issue . u can see that the ip address you are trying to connect to is ur localhost address and not the ip address of the redis container inside the network . I solved this issue by using a static ip address for my redis container , instead of relying on docker host resolution . Something like this ![image](https://github.com/hibiken/asynqmon/assets/86990434/d8c148cb-c3ff-4215-9921-d9a6cc35ce22)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynqmon#96
No description provided.