Skip to content

Instantly share code, notes, and snippets.

@cygnusv
Created May 15, 2019 21:04
Show Gist options
  • Save cygnusv/240dc4f9b12919b3cf202642042f39f5 to your computer and use it in GitHub Desktop.
Save cygnusv/240dc4f9b12919b3cf202642042f39f5 to your computer and use it in GitHub Desktop.
(nucypher-rz58eSz8) david@nuc [23:01:32]:~/NuCypher/dev/nucypher (HEAD detached at upstream/hawksbeard)
└─ $ nucypher --debug ursula run --geth
_____ __ _________ ______
___ | / /___ ___ ____/____ ____________ /______________
__ |/ /_ / / / / __ / / /__ __ \_ __ \ _ \_ ___/
_ /| / / /_/ // /___ _ /_/ /__ /_/ / / / / __/ /
/_/ |_/ \__,_/ \____/ _\__, / _ .___//_/ /_/\___//_/
/____/ /_/
version 0.1.0-alpha.22
Local system needs geth blockchain initialization
,ggg, gg
dP""Y8a 88 ,dPYb,
Yb, `88 88 IP'`Yb
`" 88 88 I8 8I
88 88 I8 8'
88 88 ,gggggg, ,g, gg gg I8 dP ,gggg,gg
88 88 dP""""8I ,8'8, I8 8I I8dP dP" "Y8I
88 88 ,8' 8I ,8' Yb I8, ,8I I8P i8' ,8I
Y8b,____,d88,,dP Y8,,8'_ 8) ,d8b, ,d8b,,d8b,_ ,d8, ,d8b,
"Y888888P"Y88P `Y8P' "YY8P8P8P'"Y88P"`Y88P'"Y88P"Y8888P"`Y8
the Untrusted Re-Encryption Proxy.
STARTING GETH NOW
Using contract registry /home/david/.local/share/nucypher/contract_registry.json
Connecting to file:///home/david/.local/share/nucypher/.ethereum/devnet/geth.ipc
ATTACHED WEB3 PROVIDER file:///home/david/.local/share/nucypher/.ethereum/devnet/geth.ipc
Reading from registrar: filepath /home/david/.local/share/nucypher/contract_registry.json
Initialized new NucypherTokenAgent for 0x245eCC09DF4321C6461de2e6d3867E06369EAAfe with file:///home/david/.local/share/nucypher/.ethereum/devnet/geth.ipc and /home/david/.local/share/nucypher/contract_registry.json
Reading from registrar: filepath /home/david/.local/share/nucypher/contract_registry.json
Reading from registrar: filepath /home/david/.local/share/nucypher/contract_registry.json
Traceback (most recent call last):
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/web3/contract.py", line 1312, in call_contract_function
output_data = decode_abi(output_types, return_data)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/eth_abi/codec.py", line 179, in decode_abi
return decoder(stream)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/eth_abi/decoding.py", line 127, in __call__
return self.decode(stream)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/eth_utils/functional.py", line 46, in inner
return callback(fn(*args, **kwargs))
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/eth_abi/decoding.py", line 173, in decode
yield decoder(stream)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/eth_abi/decoding.py", line 127, in __call__
return self.decode(stream)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/eth_abi/decoding.py", line 198, in decode
raw_data = self.read_data_from_stream(stream)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/eth_abi/decoding.py", line 308, in read_data_from_stream
len(data),
eth_abi.exceptions.InsufficientDataBytes: Tried to read 32 bytes. Only got 0 bytes
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/bin/nucypher", line 11, in <module>
load_entry_point('nucypher', 'console_scripts', 'nucypher')()
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/david/NuCypher/dev/nucypher/nucypher/cli/characters/ursula.py", line 268, in ursula
recompile_contracts=recompile_solidity)
File "/home/david/NuCypher/dev/nucypher/nucypher/cli/config.py", line 84, in connect_to_blockchain
character_configuration.connect_to_contracts()
File "/home/david/NuCypher/dev/nucypher/nucypher/config/node.py", line 341, in connect_to_contracts
self.miner_agent = MinerAgent(blockchain=self.blockchain)
File "/home/david/NuCypher/dev/nucypher/nucypher/blockchain/eth/agents.py", line 61, in __init__
use_proxy_address=self._forward_address)
File "/home/david/NuCypher/dev/nucypher/nucypher/blockchain/eth/interfaces.py", line 457, in get_contract_by_name
proxy_live_target_address = proxy_contract.functions.target().call()
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/web3/contract.py", line 823, in call
**self.kwargs
File "/home/david/.local/share/virtualenvs/nucypher-rz58eSz8/lib/python3.6/site-packages/web3/contract.py", line 1334, in call_contract_function
raise BadFunctionCallOutput(msg) from e
web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function, is contract deployed correctly and chain synced?
Sentry is attempting to send 119 pending error messages
Waiting up to 2.0 seconds
Press Ctrl-C to quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment