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

Update leader election failed. error="context deadline exceeded": Deployment Using the ArangoDB Starter in Docker #20914

Open
yehyaumar opened this issue May 10, 2024 · 0 comments

Comments

@yehyaumar
Copy link

yehyaumar commented May 10, 2024

My Environment

  • ArangoDB Version: 3.12.0.2
  • Deployment Mode: Cluster
  • Deployment Strategy: ArangoDB Starter in Docker
  • Configuration:
  • Infrastructure: AWS
  • Operating System: Ubuntu 20.04
  • Total RAM in your machine: 8GB
  • Disks in use:
  • Used Package: Docker - official Docker library

Component, Query & Data

Affected feature: Using the ArangoDB Starter in Docker

Steps to reproduce

  1. Created 3 AWS EC2 t2.micro instances
  2. Followed the steps from here: Deployment Using the ArangoDB Starter inDocker
  3. Using security group, I'm allowing Inbound rules Custom TCP for 8528, 8529, 8530 and 8531 ports

Problem:
"Added new peer" log appears properly after joining from other instances but after some time it fails with following error "Update leader election failed. error="context deadline exceeded""

Screenshot 2024-05-10 at 3 01 55 PM

There are the cmds I'm executing on each instance:

On instanse A:

export IP=172.31.##.#5
docker volume create arangodb1
docker run -it --name=adb1 --rm -p 8528:8528 \
    -v arangodb1:/data \
    -v /var/run/docker.sock:/var/run/docker.sock \
    arangodb/arangodb-starter \
    --starter.address=$IP

On Instance B:

export IP=172.31.##.#4
docker volume create arangodb2
docker run -it --name=adb2 --rm -p 8528:8528 \
    -v arangodb2:/data \
    -v /var/run/docker.sock:/var/run/docker.sock \
    arangodb/arangodb-starter \
    --starter.address=$IP \
    --starter.join 172.31.##.#5

On Instance C:

export IP=172.31.##.##2
docker volume create arangodb3
docker run -it --name=adb3 --rm -p 8528:8528 \
    -v arangodb3:/data \
    -v /var/run/docker.sock:/var/run/docker.sock \
    arangodb/arangodb-starter \
    --starter.address=$IP \
    --starter.join 172.31.##.#5

Note: # in IP address pertains to a number.

Expected result:

The cluster should work without problems

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

1 participant