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

Network error: Corrupted message received. Please check your worker and meta connection environment variables. #8414

Closed
Pranayagaram1 opened this issue Jul 1, 2024 · 2 comments
Assignees
Labels
cube store Issues relating to Cube Store question The issue is a question. Please use Stack Overflow for questions.

Comments

@Pranayagaram1
Copy link

Pranayagaram1 commented Jul 1, 2024

Hi All,

Below is my Docker Compose file, I am trying to run route and worker containers on the Server.

The router can't connect to Worker Containers.

Error: Network error: Corrupted message received. Please check your worker and meta connection environment variables.

version: "2.2"
services:
  cubestore_router:
    container_name: cubestore_router
    restart: always
    image: cubejs/cubestore:latest
    environment:
      - CUBESTORE_SERVER_NAME=cubestore_router
      - CUBESTORE_META_PORT=9999
      - CUBESTORE_WORKERS=cubestore_worker_1:9001,cubestore_worker_2:9002
      - CUBESTORE_S3_BUCKET=pf-XXXXXXX-uat
      - CUBESTORE_S3_REGION=us-east-2
      - CUBESTORE_AWS_ACCESS_KEY_ID=AKIXXXXXXXXXXXXXXLXT
      - CUBESTORE_AWS_SECRET_ACCESS_KEY=oc4EgE9XXXXXXXXXXXXXXXXXXXXXXXXXXXvz2J
    ports:
      - "9999:9999"

  cubestore_worker_1:
    container_name: cubestore_worker_1
    restart: always
    image: cubejs/cubestore:latest
    environment:
      - CUBESTORE_SERVER_NAME=cubestore_worker_1
      - CUBESTORE_WORKER_PORT=9001
      - CUBESTORE_META_ADDR=cubestore_router:9999
      - CUBESTORE_WORKERS=cubestore_worker_1:9001,cubestore_worker_2:9002
      - CUBESTORE_S3_BUCKET=pf-XXXXXXX-uat
      - CUBESTORE_S3_REGION=us-east-2
      - CUBESTORE_AWS_ACCESS_KEY_ID=AKIXXXXXXXXXXXXXXLXT
      - CUBESTORE_AWS_SECRET_ACCESS_KEY=oc4EgE9XXXXXXXXXXXXXXXXXXXXXXXXXXXvz2J
    depends_on:
      - cubestore_router
    ports:
      - "9001:9001"

  cubestore_worker_2:
    container_name: cubestore_worker_2
    restart: always
    image: cubejs/cubestore:latest
    environment:
      - CUBESTORE_SERVER_NAME=cubestore_worker_2
      - CUBESTORE_WORKER_PORT=9002
      - CUBESTORE_META_ADDR=cubestore_router:9999
      - CUBESTORE_WORKERS=cubestore_worker_1:9001,cubestore_worker_2:9002
      - CUBESTORE_S3_BUCKET=pf-XXXXXXX-uat
      - CUBESTORE_S3_REGION=us-east-2
      - CUBESTORE_AWS_ACCESS_KEY_ID=AKIXXXXXXXXXXXXXXXXXXF6LXT
      - CUBESTORE_AWS_SECRET_ACCESS_KEY=ocXXXXXXXXXXXXXXXXXXXXXXXXXXXXok
    depends_on:
      - cubestore_router
    ports:
      - "9002:9002"
@Pranayagaram1 Pranayagaram1 added the question The issue is a question. Please use Stack Overflow for questions. label Jul 1, 2024
@igorlukanin
Copy link
Member

HI @Pranayagaram1 👋

I would recommend to compare your setup to the example in the docs: https://cube.dev/docs/product/deployment/core

My suspicions are around CUBESTORE_SERVER_NAME for your Cube Store nodes. Could you please try adding ports to it, similarly to the example in the docs?

@igorlukanin igorlukanin added the cube store Issues relating to Cube Store label Jul 4, 2024
@igorlukanin igorlukanin self-assigned this Jul 4, 2024
@rahulrajpal2911
Copy link

Hi @igorlukanin
Yes, there was a configuration mismatch. We used the official docker compose file yesterday and it worked like charm.
Thank you for responding promptly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cube store Issues relating to Cube Store question The issue is a question. Please use Stack Overflow for questions.
Projects
None yet
Development

No branches or pull requests

3 participants