Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI: 500 (Internal Server Error): dial tcp 127.0.0.1:6379: connect: connection refused #326

Open
noloman opened this issue May 6, 2024 · 2 comments

Comments

@noloman
Copy link

noloman commented May 6, 2024

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!

@MadanaGopalD
Copy link

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

@RaidOuahioune
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants