Git Product home page Git Product logo

Comments (8)

otoolep avatar otoolep commented on June 26, 2024

Can you supply any logs, from the nodes? Each node should be printing a bunch of output on startup.

from rqlite-docker.

sginer avatar sginer commented on June 26, 2024

Docker version

Client:
Version: 18.09.4
API version: 1.39
Go version: go1.10.8
Git commit: d14af54266
Built: Wed Mar 27 18:35:44 2019
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.4
API version: 1.39 (minimum version 1.12)
Go version: go1.10.8
Git commit: d14af54
Built: Wed Mar 27 18:01:48 2019
OS/Arch: linux/amd64
Experimental: false

Logs of master

rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [rqlited] 2019/10/09 14:45:07 rqlited starting, version v4.5.0, commit 8336150318dfb2b1f196f6a4919041b65071f3fd, branch 4.3.0-patch
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [rqlited] 2019/10/09 14:45:07 go1.10, target architecture is amd64, operating system target is linux
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    |             _ _ _
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    |            | (_) |
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    |   _ __ __ _| |_| |_ ___
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    |  | '__/ _  | | | __/ _ \   The lightweight, distributed
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    |  | | | (_| | | | ||  __/   relational database.
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    |  |_|  \__, |_|_|\__\___|
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    |          | |
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    |          |_|
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [store] 2019/10/09 14:45:07 ensuring /rqlite/file/data exists
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [mux] 2019/10/09 14:45:07 mux serving on 127.0.0.1:4002, advertising 127.0.0.1:4002
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [store] 2019/10/09 14:45:07 SQLite in-memory database opened
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [store] 2019/10/09 14:45:07 enabling single-node mode
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [store] 2019/10/09 14:45:07 waiting for up to 2m0s for application of initial logs
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 2019/10/09 14:45:07 [INFO] raft: Node at 127.0.0.1:4002 [Follower] entering Follower state (Leader: "")
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [cluster] 2019/10/09 14:45:07 service listening on 127.0.0.1:4002
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [rqlited] 2019/10/09 14:45:07 no join addresses set
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [rqlited] 2019/10/09 14:45:08 failed to set peer for 127.0.0.1:4002 to rqlite1:4001: no leader available (retrying)
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 2019/10/09 14:45:08 [WARN] raft: Heartbeat timeout from "" reached, starting election
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 2019/10/09 14:45:08 [INFO] raft: Node at 127.0.0.1:4002 [Candidate] entering Candidate state
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 2019/10/09 14:45:08 [DEBUG] raft: Votes needed: 1
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 2019/10/09 14:45:08 [DEBUG] raft: Vote granted from 127.0.0.1:4002. Tally: 1
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 2019/10/09 14:45:08 [INFO] raft: Election won. Tally: 1
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 2019/10/09 14:45:08 [INFO] raft: Node at 127.0.0.1:4002 [Leader] entering Leader state
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | 2019/10/09 14:45:08 [DEBUG] raft: Node 127.0.0.1:4002 updated peer set (2): [127.0.0.1:4002]
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [rqlited] 2019/10/09 14:45:09 set peer for 127.0.0.1:4002 to rqlite1:4001
rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox    | [rqlited] 2019/10/09 14:45:09 failed to start HTTP server: listen tcp 10.0.7.2:4001: bind: cannot assign requested address

Logs of followers

rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | 
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    |             _ _ _
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    |            | (_) |
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    |   _ __ __ _| |_| |_ ___
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    |  | '__/ _  | | | __/ _ \   The lightweight, distributed
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    |  | | | (_| | | | ||  __/   relational database.
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    |  |_|  \__, |_|_|\__\___|
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    |          | |
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    |          |_|
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | 
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [rqlited] 2019/10/10 06:15:26 rqlited starting, version v4.5.0, commit 8336150318dfb2b1f196f6a4919041b65071f3fd, branch 4.3.0-patch
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [rqlited] 2019/10/10 06:15:26 go1.10, target architecture is amd64, operating system target is linux
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [store] 2019/10/10 06:15:26 ensuring /rqlite/file/data exists
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [mux] 2019/10/10 06:15:26 mux serving on 127.0.0.1:4002, advertising 127.0.0.1:4002
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [store] 2019/10/10 06:15:26 SQLite in-memory database opened
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [store] 2019/10/10 06:15:26 waiting for up to 2m0s for application of initial logs
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | 2019/10/10 06:15:26 [INFO] raft: Node at 127.0.0.1:4002 [Follower] entering Follower state (Leader: "")
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [cluster] 2019/10/10 06:15:26 service listening on 127.0.0.1:4002
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [rqlited] 2019/10/10 06:15:26 join addresses are: [http://rqlite1:4001]
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [cluster-join] 2019/10/10 06:15:26 failed to join cluster at [http://rqlite1:4001], sleeping 5s before retry
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | 2019/10/10 06:15:27 [WARN] raft: EnableSingleNode disabled, and no known peers. Aborting election.
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [cluster-join] 2019/10/10 06:15:31 failed to join cluster at [http://rqlite1:4001], sleeping 5s before retry
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [cluster-join] 2019/10/10 06:15:36 failed to join cluster at [http://rqlite1:4001], sleeping 5s before retry
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [cluster-join] 2019/10/10 06:15:41 failed to join cluster at [http://rqlite1:4001], after 3 attempts
rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox    | [rqlited] 2019/10/10 06:15:41 failed to join cluster at [http://rqlite1:4001]: Post http://rqlite1:4001/join: dial tcp 10.0.8.5:4001: connect: connection refused
rqlite_rqlite2.1.6c4x4bmtu00p@ubuntu-VirtualBox    | [rqlited] 2019/10/10 06:15:49 rqlited starting, version v4.5.0, commit 8336150318dfb2b1f196f6a4919041b65071f3fd, branch 4.3.0-patch
rqlite_rqlite2.1.6c4x4bmtu00p@ubuntu-VirtualBox    | [rqlited] 2019/10/10 06:15:49 go1.10, target architecture is amd64, operating system target is linux
rqlite_rqlite2.1.6c4x4bmtu00p@ubuntu-VirtualBox    | [store] 2019/10/10 06:15:49 ensuring /rqlite/file/data exists
rqlite_rqlite2.1.6c4x4bmtu00p@ubuntu-VirtualBox    | [store] 2019/10/10 06:15:49 SQLite in-memory database opened
rqlite_rqlite2.1.6c4x4bmtu00p@ubuntu-VirtualBox    | [mux] 2019/10/10 06:15:49 mux serving on 127.0.0.1:4002, advertising 127.0.0.1:4002

from rqlite-docker.

otoolep avatar otoolep commented on June 26, 2024

Something is wrong with your network setup:

rqlite_rqlite1.1.wz6k678mq9pj@ubuntu-VirtualBox | [rqlited] 2019/10/09 14:45:09 failed to start HTTP server: listen tcp 10.0.7.2:4001: bind: cannot assign requested address

from rqlite-docker.

sginer avatar sginer commented on June 26, 2024

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.

from rqlite-docker.

otoolep avatar otoolep commented on June 26, 2024

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.

from rqlite-docker.

otoolep avatar otoolep commented on June 26, 2024

This is also a sign of problems: rqlite_rqlite2.1.i7x16w8y7hcv@ubuntu-VirtualBox | [cluster-join] 2019/10/10 06:15:26 failed to join cluster at [http://rqlite1:4001], sleeping 5s before retry

from rqlite-docker.

otoolep avatar otoolep commented on June 26, 2024

Perhaps you should mail the rqlite Google Group, someone there may be able to help.

from rqlite-docker.

mikeTWC1984 avatar mikeTWC1984 commented on June 26, 2024

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

from rqlite-docker.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.