apl-cornell / fabric

Distributed persistent programming language with secure information flow types
http://www.cs.cornell.edu/projects/fabric/
Other
28 stars 4 forks source link

Voting example at tmagrino/fabric-voting fails to initialize voting state #42

Closed anyachopra97 closed 5 years ago

anyachopra97 commented 5 years ago

After starting the election store and a district store, I tried to run "bin/init-voting-state 1" and got the error message attached.

Screen Shot 2019-07-22 at 9 40 00 AM
tmagrino commented 5 years ago

Hi @anyachopra97, it looks like you didn't start the district in another terminal before running the initialization script? I just confirmed that I get this error message when I only start the election server and it goes away if I restart everything (clearing out var) and start district1 before running the initialization script.

tmagrino commented 5 years ago

Actually, after talking to @anyachopra97 in person, this seems to be another instance of a funny thing with recent OS X versions not resolving 127.0.0.2 or other local addresses correctly. Changing the node configurations to 127.0.0.1 fixed things. I'll commit an update to that repo with the change, just to avoid future confusion.