bristolcrypto/SPDZ-2

Program terminates with file_error exception

Closed this issue · 1 comments

Server is started from one terminal

./Server.x 2 5000  
ServerSocket is bound on port 4999
Waiting for player 0
Terminated

Tutorial is started from another terminal

Scripts/run-online.sh tutorial
Player-Online.x: no process found
mkdir: cannot create directory ‘logs’: File exists
Running /home/frag/Documents/SPDZ-2/Scripts/../Server.x 2 15318
trying with player 0
Running /home/frag/Documents/SPDZ-2/Scripts/../Player-Online.x 0 tutorial -lgp 128 -lg2 0 -m empty -pn 15318 -h localhost
Running /home/frag/Documents/SPDZ-2/Scripts/../Player-Online.x 1 tutorial -lgp 128 -lg2 0 -m empty -pn 15318 -h localhost
ServerSocket is bound on port 15317
Waiting for player 0
Connected to player Sent 0 to localhost:15317
0
Waiting for player 1
Connected to player 1
Player 0 started.
My Name = 127.0.0.1
Player 0 sent (IP for info only) 127.0.0.1:15318
Client IP address: 127.0.0.1
Player 1 started.
My number = Player 1 sent (IP for info only) 127.0.0.1:15319
Client IP address: 127.0.0.1
0
2 players
Player 0 is running on machine 127.0.0.1
Player 1 is running on machine 127.0.0.1
ServerSocket is bound on port 15318
loading params from: Player-Data/2-128-128/Params-Data
Purging preprocessed data because something is wrong
Setting up Data_Files in: Player-Data/2-128-128/
done
Removing Player-Data/2-128-128/Triples-2-P0
Removing Player-Data/2-128-128/Triples-p-P0
Removing Player-Data/2-128-128/Squares-2-P0
Removing Player-Data/2-128-128/Squares-p-P0
Removing Player-Data/2-128-128/Bits-2-P0
Removing Player-Data/2-128-128/Bits-p-P0
Removing Player-Data/2-128-128/Inverses-2-P0
Removing Player-Data/2-128-128/Inverses-p-P0
Removing Player-Data/2-128-128/BitTriples-2-P0
Removing Player-Data/2-128-128/BitGF2NTriples-2-P0
Removing Player-Data/2-128-128/Inputs-2-P0-0
Removing Player-Data/2-128-128/Inputs-p-P0-0
Removing Player-Data/2-128-128/Inputs-2-P0-1
Removing Player-Data/2-128-128/Inputs-p-P0-1
terminate called after throwing an instance of 'file_error'
  what():  File Error : Player-Data/2-128-128/Params-Data
/home/frag/Documents/SPDZ-2/Scripts/run-common.sh: line 4: 27099 Aborted                 (core dumped) $prefix $SPDZROOT/$bin $last_player $params > $SPDZROOT/logs/$last_player 2>&1

Same error occurs if server and two players are started the standard way

Have you run Scripts/setup-online.sh?