Skip to content

Instantly share code, notes, and snippets.

@bofm
Created July 31, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bofm/acef0013bfae1bd3fa126af697aa4463 to your computer and use it in GitHub Desktop.
Save bofm/acef0013bfae1bd3fa126af697aa4463 to your computer and use it in GitHub Desktop.
tarantool bootstrap fail
version: '3.7'
services:
t1:
image: tarantool/tarantool:1.10.2
ports:
- '3301:3301'
entrypoint: ''
hostname: t1
command:
- tarantool
- '-e'
- |
--box.cfg{}
--box.once('guest', box.schema.user.grant, 'guest', 'super')
box.cfg{
listen='0.0.0.0:3301',
replication={'t1:3301', 't2:3301'}
}
box.once('guest', box.schema.user.grant, 'guest', 'super')
box.once('test', function()
box.schema.space.create('test'):create_index('pk')
end)
t2:
image: tarantool/tarantool:1.10.2
entrypoint: ''
hostname: t2
ports:
- '3302:3301'
command:
- tarantool
- '-e'
- |
box.cfg{
listen='0.0.0.0:3301',
replication={'t1:3301', 't2:3301'}
}
t1_1 | 2019-07-31 14:55:08.800 [1] main/101/interactive C> Tarantool 1.10.2-0-gc0d8063b6
t1_1 | 2019-07-31 14:55:08.800 [1] main/101/interactive C> log level 5
t1_1 | 2019-07-31 14:55:08.801 [1] main/101/interactive I> mapping 268435456 bytes for memtx tuple arena...
t1_1 | 2019-07-31 14:55:08.801 [1] main/101/interactive I> mapping 134217728 bytes for vinyl tuple arena...
t1_1 | 2019-07-31 14:55:08.802 [1] iproto/101/main I> binary: bound to 0.0.0.0:3301
t1_1 | 2019-07-31 14:55:08.802 [1] main/101/interactive I> connecting to 2 replicas
t1_1 | 2019-07-31 14:55:08.803 [1] main/105/applier/t1:3301 I> remote master is 1.10.2 at 172.22.0.3:3301
t1_1 | 2019-07-31 14:55:08.811 [1] main/106/applier/t2:3301 I> remote master is 1.10.2 at 172.22.0.2:3301
t1_1 | 2019-07-31 14:55:08.812 [1] main/101/interactive I> connected to 2 replicas
t1_1 | 2019-07-31 14:55:08.812 [1] main/101/interactive I> bootstrapping replica from 37e5ed72-a4b6-49f5-89a6-195d7456a192 at 172.22.0.2:3301
t1_1 | 2019-07-31 14:55:08.819 [1] main/106/applier/t2:3301 I> can't join/subscribe
t1_1 | 2019-07-31 14:55:08.819 [1] main/106/applier/t2:3301 xrow.c:894 E> ER_LOADING: Instance bootstrap hasn't finished yet
t1_1 | 2019-07-31 14:55:08.819 [1] main/106/applier/t2:3301 I> will retry every 1.00 second
t1_1 | 2019-07-31 14:55:09.815 [1] main/106/applier/t2:3301 I> can't join/subscribe
t1_1 | 2019-07-31 14:55:09.815 [1] main/106/applier/t2:3301 xrow.c:894 E> ER_ACCESS_DENIED: Read access to universe '' is denied for user 'guest'
t1_1 | 2019-07-31 14:55:09.815 [1] main/106/applier/t2:3301 I> will retry every 1.00 second
t2_1 | 2019-07-31 14:55:08.797 [1] main/101/interactive C> Tarantool 1.10.2-0-gc0d8063b6
t2_1 | 2019-07-31 14:55:08.797 [1] main/101/interactive C> log level 5
t2_1 | 2019-07-31 14:55:08.797 [1] main/101/interactive I> mapping 268435456 bytes for memtx tuple arena...
t2_1 | 2019-07-31 14:55:08.797 [1] main/101/interactive I> mapping 134217728 bytes for vinyl tuple arena...
t2_1 | 2019-07-31 14:55:08.798 [1] iproto/101/main I> binary: bound to 0.0.0.0:3301
t2_1 | 2019-07-31 14:55:08.799 [1] main/101/interactive I> connecting to 2 replicas
t2_1 | 2019-07-31 14:55:08.800 [1] main/106/applier/t2:3301 I> remote master is 1.10.2 at 172.22.0.2:3301
t2_1 | 2019-07-31 14:55:08.811 [1] main/105/applier/t1:3301 I> can't connect to master
t2_1 | 2019-07-31 14:55:08.811 [1] main/105/applier/t1:3301 coio.cc:106 !> SystemError connect, called on fd 9, aka 172.22.0.2:33546: Connection refused
t2_1 | 2019-07-31 14:55:08.811 [1] main/105/applier/t1:3301 I> will retry every 1.00 second
t2_1 | 2019-07-31 14:55:09.803 [1] main/105/applier/t1:3301 I> remote master is 1.10.2 at 172.22.0.3:3301
t2_1 | 2019-07-31 14:55:09.804 [1] main/101/interactive I> connected to 2 replicas
t2_1 | 2019-07-31 14:55:09.804 [1] main/101/interactive I> initializing an empty data directory
t2_1 | 2019-07-31 14:55:09.807 [1] snapshot/101/main I> saving snapshot `./00000000000000000000.snap.inprogress'
t2_1 | 2019-07-31 14:55:09.811 [1] snapshot/101/main I> done
t2_1 | 2019-07-31 14:55:09.812 [1] main/101/interactive I> ready to accept requests
t2_1 | 2019-07-31 14:55:09.812 [1] main/109/checkpoint_daemon I> started
t2_1 | 2019-07-31 14:55:09.812 [1] main/109/checkpoint_daemon I> scheduled the next snapshot at Wed Jul 31 16:52:59 2019
t2_1 | 2019-07-31 14:55:09.813 [1] main/105/applier/t1:3301 I> can't join/subscribe
t2_1 | 2019-07-31 14:55:09.813 [1] main/105/applier/t1:3301 xrow.c:894 E> ER_LOADING: Instance bootstrap hasn't finished yet
t2_1 | 2019-07-31 14:55:09.813 [1] main/105/applier/t1:3301 I> will retry every 1.00 second
t2_1 | 2019-07-31 14:55:09.813 [1] main C> entering the event loop
@bofm
Copy link
Author

bofm commented Jul 31, 2019

How to run

docker-compose kill && docker-compose rm -fv && docker-compose up

@bofm
Copy link
Author

bofm commented Jul 31, 2019

curl -L https://gist.github.com/bofm/acef0013bfae1bd3fa126af697aa4463/archive/911e11821275b74355a25afd8e54282f8fc538ee.zip -o test.zip && unzip test.zip && cd ace* && docker-compose up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment