data61 / MP-SPDZ

Versatile framework for multi-party computation
Other
952 stars 279 forks source link

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

Open zhou-pz opened 23 hours ago

zhou-pz commented 23 hours ago
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 commented 12 hours ago

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