Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peer closed error while setuping replicasets #2180

Closed
tristoshestoi opened this issue Jan 26, 2024 · 4 comments
Closed

Peer closed error while setuping replicasets #2180

tristoshestoi opened this issue Jan 26, 2024 · 4 comments

Comments

@tristoshestoi
Copy link

tristoshestoi commented Jan 26, 2024

image
Tarantool version 2.10.5, while trying to setup replicasets i get the error from the screenshot, the init.yml, replicasets.yml and instances.yml files are the default files generated by cartridge create. The OS is openSuse leap 15.4. The only relevant logs ive found are these:

2024-01-26T18:36:31.225023+03:00 localhost testapp.router[5244]: main/110/console/unix/: twophase.lua:507 W> Committed patch_clusterwide at localhost:3302
2024-01-26T18:36:31.225047+03:00 localhost testapp.router[5244]: main/110/console/unix/: twophase.lua:507 W> Committed patch_clusterwide at localhost:3303
2024-01-26T18:36:31.225074+03:00 localhost testapp.router[5244]: main/110/console/unix/: twophase.lua:652 W> Clusterwide config updated successfully
2024-01-26T18:36:31.226403+03:00 localhost testapp.router[5244]: main/110/console/unix/: twophase.lua:576 W> Updating config clusterwide...
2024-01-26T18:36:31.226441+03:00 localhost testapp.router[5244]: main/110/console/unix/: twophase.lua:452 W> (2PC) patch_clusterwide upload phase...
2024-01-26T18:36:31.228083+03:00 localhost testapp.s1-replica[5242]: main/111/remote_control/127.0.0.1:54882 I> Peer closed when read packet size
2024-01-26T18:36:31.228302+03:00 localhost testapp.router[5244]: main/110/console/unix/: upload.lua:229 E> Error uploading files to localhost:3303:#012NetboxCallError: "localhost:3303": Peer closed#012stack traceback:#012#011/home/rootuser/testapp/.rocks/share/tarantool/errors.lua:482: in function 'netbox_wait_async'#012#011...otuser/testapp/.rocks/share/tarantool/cartridge/pool.lua:267: in function 'map_call'#012#011...user/testapp/.rocks/share/tarantool/cartridge/upload.lua:215: in function 'upload'#012#011...er/testapp/.rocks/share/tarantool/cartridge/twophase.lua:454: in function 'twophase_commit'#012#011...er/testapp/.rocks/share/tarantool/cartridge/twophase.lua:642: in function <...er/testapp/.rocks/share/tarantool/cartridge/twophase.lua:568>#012#011[C]: in function 'xpcall'#012#011/home/rootuser/testapp/.rocks/share/tarantool/errors.lua:145: in function 'pcall'#012#011...er/testapp/.rocks/share/tarantool/cartridge/twophase.lua:668: in function 'patch_clusterwide'#012#011...ocks/share/tarantool/cartridge/lua-api/edit-topology.lua:368: in function 'admin_edit_topology'#012#011[string "local function func(...) local cartridge = re..."]:1: in function <[string "local function func(...) local cartridge = re..."]:1>#012#011[string "local function func(...) local cartridge = re..."]:1: in main chunk#012#011[C]: in function 'pcall'#012#011builtin/box/console.lua:412: in function 'eval'#012#011builtin/box/console.lua:723: in function 'repl'#012#011builtin/box/console.lua:895: in function <builtin/box/console.lua:881>#012#011[C]: in function 'pcall'#012#011builtin/socket.lua:1084: in function <builtin/socket.lua:1082>
2024-01-26T18:36:31.228971+03:00 localhost testapp.s1-replica[5242]: main/111/remote_control/127.0.0.1:54882 utils.c:489 E> LuajitError: builtin/socket.lua:88: attempt to use closed socket
2024-01-26T18:36:31.229619+03:00 localhost testapp.router[5244]: main/110/console/unix/: twophase.lua:655 E> Clusterwide config update failed```

After prompting the setup command the second time, everything goes fine.
P.S. Tarantool and Cartridge were built from source

@yngvar-antonsson
Copy link
Collaborator

cartridge start returns before all instances are ready to work. My first assumption is that you tried cartridge replicasets setup before all instances were up and running.
Is this error reproducible or have you received it just once?

@tristoshestoi
Copy link
Author

cartridge start returns before all instances are ready to work. My first assumption is that you tried cartridge replicasets setup before all instances were up and running. Is this error reproducible or have you received it just once?

it is reproducable, also, it seems to not matter how long i wait for instances to start up, it always works on the second usage of the command.

@yngvar-antonsson
Copy link
Collaborator

Still no idea about this issue. @tristoshestoi any updates? Have you tried newer versions of tarantool and cartridge?

@yngvar-antonsson
Copy link
Collaborator

Closed for now. Feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants