Skip to content

Instantly share code, notes, and snippets.

@bofm
Created August 29, 2018 12:29
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/85d9c6f9940f15cdedc94fdeec0c1076 to your computer and use it in GitHub Desktop.
Save bofm/85d9c6f9940f15cdedc94fdeec0c1076 to your computer and use it in GitHub Desktop.
Tarantool upgrate problem

How to reproduce?

$ docker network create n1

first instance

$ docker run --rm -it --name t1 --net n1  -e TARANTOOL_REPLICATION=t1:3301,t2:3301 progaudi/tarantool:1.10.1-135-g193ef4150
Creating configuration file: /etc/tarantool/config.yml
Config:
---
pid_file: /var/run/tarantool/tarantool.pid
wal_dir: /var/lib/tarantool
listen: 3301
replication:
- t1:3301
- t2:3301
vinyl_dir: /var/lib/tarantool
memtx_dir: /var/lib/tarantool
...

2018-08-29 12:22:05.088 [1] main/101/tarantool-entrypoint.lua C> Tarantool 1.10.1-135-g193ef4150
2018-08-29 12:22:05.089 [1] main/101/tarantool-entrypoint.lua C> log level 5
2018-08-29 12:22:05.089 [1] main/101/tarantool-entrypoint.lua I> mapping 268435456 bytes for memtx tuple arena...
2018-08-29 12:22:05.089 [1] main/101/tarantool-entrypoint.lua I> mapping 134217728 bytes for vinyl tuple arena...
2018-08-29 12:22:05.090 [1] iproto/101/main I> binary: bound to 0.0.0.0:3301
2018-08-29 12:22:05.092 [1] main/105/applier/t1:3301 I> remote master is 1.10.1 at 172.18.0.2:3301
2018-08-29 12:22:05.098 [1] main/106/applier/t2:3301 I> can't connect to master
2018-08-29 12:22:05.098 [1] main/106/applier/t2:3301 coio_task.c:416 !> SystemError getaddrinfo: Name does not resolve: I/O error
2018-08-29 12:22:05.098 [1] main/106/applier/t2:3301 I> will retry every 1.00 second
2018-08-29 12:22:07.566 [1] main/106/applier/t2:3301 I> remote master is 1.10.1 at 172.18.0.3:3301
2018-08-29 12:22:07.566 [1] iproto iproto.cc:1171 E> ER_UNKNOWN_REQUEST_TYPE: Unknown request type 68
2018-08-29 12:22:07.567 [1] main/101/tarantool-entrypoint.lua I> initializing an empty data directory
2018-08-29 12:22:07.568 [1] snapshot/101/main I> saving snapshot `/var/lib/tarantool/00000000000000000000.snap.inprogress'
2018-08-29 12:22:07.573 [1] snapshot/101/main I> done
2018-08-29 12:22:07.574 [1] main/101/tarantool-entrypoint.lua I> ready to accept requests
2018-08-29 12:22:07.574 [1] main/110/checkpoint_daemon I> started
2018-08-29 12:22:07.574 [1] main/110/checkpoint_daemon I> scheduled the next snapshot at Wed Aug 29 13:41:03 2018
2018-08-29 12:22:07.575 [1] main/101/tarantool-entrypoint.lua I> Initializing database
2018-08-29 12:22:07.575 [1] main/101/tarantool-entrypoint.lua tarantool-entrypoint.lua:119 W>
****************************************************
WARNING: 'guest' is chosen as primary user.
         Since it is not allowed to set a password for
         guest user, your instance will be accessible
         by anyone having direct access to the Tarantool
         port.
         If you wanted to create an authenticated user,
         specify "-e TARANTOOL_USER_NAME=username" and
         pick a user name other than "guest".
****************************************************
2018-08-29 12:22:07.575 [1] main/101/tarantool-entrypoint.lua I> Granting admin privileges to user 'guest'
2018-08-29 12:22:07.576 [1] main/115/console/unix/:/var/run/tarantoo I> started
tarantool>

Second instance

$ docker run --rm -it --name t2 --net n1 -e TARANTOOL_REPLICATION=t1:3301,t2:3301 progaudi/tarantool:1.10.1-330-gc0102b738
Creating configuration file: /etc/tarantool/config.yml
Config:
---
pid_file: /var/run/tarantool/tarantool.pid
wal_dir: /var/lib/tarantool
listen: 3301
replication:
- t1:3301
- t2:3301
vinyl_dir: /var/lib/tarantool
memtx_dir: /var/lib/tarantool
...

2018-08-29 12:22:07.563 [1] main/101/tarantool-entrypoint.lua C> Tarantool 1.10.1-330-gc0102b738
2018-08-29 12:22:07.564 [1] main/101/tarantool-entrypoint.lua C> log level 5
2018-08-29 12:22:07.564 [1] main/101/tarantool-entrypoint.lua I> mapping 268435456 bytes for memtx tuple arena...
2018-08-29 12:22:07.564 [1] main/101/tarantool-entrypoint.lua I> mapping 134217728 bytes for vinyl tuple arena...
2018-08-29 12:22:07.565 [1] iproto/101/main I> binary: bound to 0.0.0.0:3301
2018-08-29 12:22:07.566 [1] main/105/applier/t1:3301 I> remote master is 1.10.1 at 172.18.0.2:3301
2018-08-29 12:22:07.569 [1] main/105/applier/t1:3301 I> can't connect to master
2018-08-29 12:22:07.569 [1] main/105/applier/t1:3301 xrow.c:891 E> ER_UNKNOWN_REQUEST_TYPE: Unknown request type 68
2018-08-29 12:22:07.569 [1] main/101/tarantool-entrypoint.lua C> failed to connect to 2 out of 2 replicas
2018-08-29 12:22:07.570 [1] main/101/tarantool-entrypoint.lua replication.cc:653 E> ER_CFG: Incorrect value for option 'replication': failed to connect to one or more replicas
2018-08-29 12:22:07.570 [1] main/101/tarantool-entrypoint.lua F> can't initialize storage: Incorrect value for option 'replication': failed to connect to one or more replicas
@kokizzu
Copy link

kokizzu commented Jan 29, 2021

any solution for this?

@bofm
Copy link
Author

bofm commented Jan 29, 2021

Update probably

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