Skip to content

Instantly share code, notes, and snippets.

@edulix
Created November 19, 2014 23:56
Show Gist options
  • Select an option

  • Save edulix/6ad11cf339a9534dcf25 to your computer and use it in GitHub Desktop.

Select an option

Save edulix/6ad11cf339a9534dcf25 to your computer and use it in GitHub Desktop.
# eotest full --peers wadobo-auth3 --vcount 10
> Starting server on port 8000
using the following authorities:
1. wadobo-auth1 (this is us, acting as orchestra director)
2. wadobo-auth3
> Creating election 141644115781
> <Response [202]>
> HTTP received /key_done (2687)
192.168.0.2 - - [20/Nov/2014 00:52:50] "POST /key_done HTTP/1.1" 200 -
> Election created 11.8075728416 sec
> Saving pk to pk141644115781
> Encrypting votes (votes.json, pk = pk141644115781, 10)..
> HTTP received /key_done (2687)
192.168.0.2 - - [20/Nov/2014 00:52:50] "POST /key_done HTTP/1.1" 200 -
module.js:340
throw err;
^
Error: Cannot find module '/srv/eotest/data/encrypt.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
> Received Nodejs output (0 chars)
Traceback (most recent call last):
File "/usr/bin/eotest.py", line 454, in <module>
main(sys.argv[1:])
File "/usr/bin/eotest.py", line 449, in main
eval(command + "(args)")
File "<string>", line 1, in <module>
File "/usr/bin/eotest.py", line 419, in full
encrypt(args)
File "/usr/bin/eotest.py", line 382, in encrypt
parsed = json.loads(output)
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
root@wadobo-auth1:~# vim /srv/eotest/data/encrypt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment