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

Running program in docker container:Fatal error in communication #1543

Open
zhou-pz opened this issue Dec 1, 2024 · 1 comment
Open

Running program in docker container:Fatal error in communication #1543

zhou-pz opened this issue Dec 1, 2024 · 1 comment

Comments

@zhou-pz
Copy link

zhou-pz commented Dec 1, 2024

root@33bb4a48d419:/usr/src/MP-SPDZ# Scripts/ring.sh tutorial
Running /usr/src/MP-SPDZ/Scripts/../replicated-ring-party.x 0 tutorial -pn 10438 -h localhost
Running /usr/src/MP-SPDZ/Scripts/../replicated-ring-party.x 1 tutorial -pn 10438 -h localhost
Running /usr/src/MP-SPDZ/Scripts/../replicated-ring-party.x 2 tutorial -pn 10438 -h localhost
Using statistical security parameter 40
Trying to run 64-bit computation
Fatal error at tutorial-0:2 (INPUTMIXED): not enough inputs in Player-Data/Input-P0-0
=== Party 1
Using statistical security parameter 40
Trying to run 64-bit computation
Fatal error at tutorial-0:2 (INPUTMIXED): not enough inputs in Player-Data/Input-P1-0
=== Party 2
Trying to run 64-bit computation
Fatal error in communication: read_some: stream truncated [asio.ssl.stream:1]
This is probably because party 0 encountered a problem.
@mkskeller
Copy link
Member

It looks you haven't added inputs:

echo 1 2 3 4 > Player-Data/Input-P0-0
echo 1 2 3 4 > Player-Data/Input-P1-0

See also https://github.com/data61/MP-SPDZ/?tab=readme-ov-file#tldr-binary-distribution-on-linux-or-source-distribution-on-macos

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