-
Notifications
You must be signed in to change notification settings - Fork 11
Rqlited does not start in docker swarm mode #9
Comments
Can you supply any logs, from the nodes? Each node should be printing a bunch of output on startup. |
Docker version Client: Server: Docker Engine - Community Logs of master
Logs of followers
|
Something is wrong with your network setup:
|
I'm agree with you. Is raft use a spécific protocol or need a specific network configuration (like multicast or other). Have you ever test rqlite in a swarm environnement ? When I use it on a single node with docker compose all work fine. |
I have not tested it in a Swarm environment. An rqlite node opens up two TCP ports -- one for internode Raft communication, and the other for the HTTP server. I suggest that either that address/port is in use, or is not even visible to the rqlite node. |
This is also a sign of problems: |
Perhaps you should mail the rqlite Google Group, someone there may be able to help. |
After struggling for a while I got it to work using official image: version: '3.8'
services:
rqlite1:
hostname: 'RQX{{.Task.Slot}}'
image: rqlite/rqlite
command: [ "-join=RQX1:4002,RQX2:4002,RQX3:4002", "-bootstrap-expect=3" ]
deploy:
replicas: 3
ports:
- "4001:4001"
# - "4002:4002"
networks:
- main
networks:
main:
external: true |
Rqlited service does not start in docker service.
When I use the docker definition of the 4.5.0 version with my own docker-entrypoint.sh with this content
and when I launch it with this compose file whith the cmd
docker stack deploy -c docker-compose.yml rqlite
rqlite is unable to elect leader and to start !
The text was updated successfully, but these errors were encountered: