Closed
Description
When using the migration module, after the start of the container, calling REST API method /migrations/up causes 500 error.
Migrations module version is 0.4.1-1.
Server logs:
tarantool-cartridge-starter.router | 2021-07-28 17:34:34.810 [72] main/171/http/172.17.0.1:49958 I> Migrations to be applied: ["0001_init_keyspace.lua"]
tarantool-cartridge-starter.router | 2021-07-28 17:34:34.810 [72] main/171/http/172.17.0.1:49958 I> Preparing to run migrations on localhost:3301
tarantool-cartridge-starter.router | 2021-07-28 17:34:34.810 [72] main/171/http/172.17.0.1:49958 I> Preparing to run migrations on localhost:3302
tarantool-cartridge-starter.router | 2021-07-28 17:34:34.810 [72] main/171/http/172.17.0.1:49958 I> Preparing to run migrations on localhost:3304
tarantool-cartridge-starter.router | 2021-07-28 17:34:34.821 [72] main/171/http/172.17.0.1:49958 I> Migrations applied on all storages, changing clusterwide configuration...
tarantool-cartridge-starter.router | 2021-07-28 17:34:34.821 [72] main/171/http/172.17.0.1:49958 migrator.lua:107 E> {"class_name":"AtomicCallError","str":"AtomicCallError: cartridge.patch_clusterwide is already running","stack":"stack traceback:\n\t\/app\/.rocks\/share\/tarantool\/cartridge\/twophase.lua:603: in function 'config_patch_clusterwide'\n\t\/app\/.rocks\/share\/tarantool\/migrator.lua:105: in function 'up'\n\t\/app\/.rocks\/share\/tarantool\/migrator.lua:120: in function 'sub'\n\t\/app\/.rocks\/share\/tarantool\/http\/server.lua:658: in function <\/app\/.rocks\/share\/tarantool\/http\/server.lua:636>\n\t[C]: in function 'pcall'\n\t\/app\/.rocks\/share\/tarantool\/http\/server.lua:736: in function 'process_client'\n\t\/app\/.rocks\/share\/tarantool\/http\/server.lua:1199: in function <\/app\/.rocks\/share\/tarantool\/http\/server.lua:1198>\n\t[C]: in function 'pcall'\n\tbuiltin\/socket.lua:1081: in function <builtin\/socket.lua:1079>","err":"cartridge.patch_clusterwide is already running"}
tarantool-cartridge-starter.router | 2021-07-28 17:34:34.821 [72] main/171/http/172.17.0.1:49958 server.lua:745 E> unhandled error: AtomicCallError: cartridge.patch_clusterwide is already running
tarantool-cartridge-starter.router | stack traceback:
tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/cartridge/twophase.lua:603: in function 'config_patch_clusterwide'
tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/migrator.lua:105: in function 'up'
tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/migrator.lua:120: in function 'sub'
tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:658: in function </app/.rocks/share/tarantool/http/server.lua:636>
tarantool-cartridge-starter.router | [C]: in function 'pcall'
tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:736: in function 'process_client'
tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:1199: in function </app/.rocks/share/tarantool/http/server.lua:1198>
tarantool-cartridge-starter.router | [C]: in function 'pcall'
tarantool-cartridge-starter.router | builtin/socket.lua:1081: in function <builtin/socket.lua:1079>
tarantool-cartridge-starter.router | stack traceback:
tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:743: in function 'process_client'
tarantool-cartridge-starter.router | /app/.rocks/share/tarantool/http/server.lua:1199: in function </app/.rocks/share/tarantool/http/server.lua:1198>
tarantool-cartridge-starter.router | [C]: in function 'pcall'
tarantool-cartridge-starter.router | builtin/socket.lua:1081: in function <builtin/socket.lua:1079>
tarantool-cartridge-starter.router | request:
tarantool-cartridge-starter.router | POST /migrations/up? HTTP/1.1
tarantool-cartridge-starter.router | Host: localhost:49334
tarantool-cartridge-starter.router | Connection: keep-alive
tarantool-cartridge-starter.router | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
tarantool-cartridge-starter.router | User-agent: Java/1.8.0_292