Skip to content

Instantly share code, notes, and snippets.

@LefterisJP
Created April 26, 2019 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LefterisJP/fc8d252a1b30b582571725fc5c4689aa to your computer and use it in GitHub Desktop.
Save LefterisJP/fc8d252a1b30b582571725fc5c4689aa to your computer and use it in GitHub Desktop.
process_exited_with_error
_____ ERROR at setup of test_api_payments_with_secret_and_hash[udp-None-2] _____
blockchain_p2p_ports = [44477]
blockchain_private_keys = [b'N\x03\\\xc7\xc5S1\xe2\xf5\xf6\x12;EB\xc4\xe2#\xd4s\xe9\xc5\xe1:\x81\xb7\xee\xd3\xa0\x82P8\xf5']
blockchain_rpc_ports = [40942], blockchain_type = 'geth'
blockchain_extra_config = {}
deploy_key = b'\x9a\x8f\x95\xff\x9a\x8b\x8f\xfa]\x01\x1a\xdb\xd5P+\x7f\xfb\xb3\xab\x14f\xb2\xce#2\x83\x8a\xf1\xc9d\xf2\xe3'
private_keys = [b'\x8f\xc3\x0f\xd7\xbc\x03\x15\x85 \x9a\x03\xee`z\xf3\xa8\x1b\xdc\x9a_4\x00\xe6\xfa>\x08\xcd\xf3\xc0\xb2\x05\xfc', b'\xff\xf7_uw\xb6U\xa4\x80\x0f\xcaV\x17\xba\xce\xef|\x8f\xf6=&\xa5l#\xf5\xda}\xfcz5\xf5W']
random_marker = 'e1c7de6edf81affcaba9f98cb'
request = <SubRequest 'web3' for <Function test_api_payments_with_secret_and_hash[udp-None-2]>>
tmpdir = local('/tmp/pytest-of-circleci/pytest-0/test_api_payments_with_secret_0')
chain_id = 337
@pytest.fixture
def web3(
blockchain_p2p_ports,
blockchain_private_keys,
blockchain_rpc_ports,
blockchain_type,
blockchain_extra_config,
deploy_key,
private_keys,
random_marker,
request,
tmpdir,
chain_id,
):
""" Starts a private chain with accounts funded. """
# include the deploy key in the list of funded accounts
keys_to_fund = set(private_keys)
keys_to_fund.add(deploy_key)
keys_to_fund = sorted(keys_to_fund)
if blockchain_type not in {client.value for client in EthClient}:
raise ValueError(f'unknown blockchain_type {blockchain_type}')
host = '127.0.0.1'
rpc_port = blockchain_rpc_ports[0]
endpoint = f'http://{host}:{rpc_port}'
web3 = Web3(HTTPProvider(endpoint))
assert len(blockchain_private_keys) == len(blockchain_rpc_ports)
assert len(blockchain_private_keys) == len(blockchain_p2p_ports)
eth_nodes = [
EthNodeDescription(
private_key=key,
rpc_port=rpc,
p2p_port=p2p,
miner=(pos == 0),
extra_config=blockchain_extra_config,
blockchain_type=blockchain_type,
)
for pos, (key, rpc, p2p) in enumerate(
zip(
blockchain_private_keys,
blockchain_rpc_ports,
blockchain_p2p_ports,
),
)
]
accounts_to_fund = [
privatekey_to_address(key)
for key in keys_to_fund
]
base_datadir = str(tmpdir)
if _ETH_LOGDIR:
base_logdir = os.path.join(_ETH_LOGDIR, blockchain_type, request.node.name)
else:
base_logdir = os.path.join(base_datadir, 'logs')
genesis_description = GenesisDescription(
prefunded_accounts=accounts_to_fund,
chain_id=chain_id,
random_marker=random_marker,
)
eth_node_runner = run_private_blockchain(
web3=web3,
eth_nodes=eth_nodes,
base_datadir=base_datadir,
log_dir=base_logdir,
verbosity='info',
genesis_description=genesis_description,
)
> with eth_node_runner:
raiden/tests/integration/fixtures/blockchain.py:108:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/lib/python3.7/contextlib.py:112: in __enter__
return next(self.gen)
raiden/tests/utils/eth_node.py:586: in run_private_blockchain
with runner as executors:
/usr/local/lib/python3.7/contextlib.py:112: in __enter__
return next(self.gen)
raiden/tests/utils/eth_node.py:501: in eth_run_nodes
stack.enter_context(executor)
/usr/local/lib/python3.7/contextlib.py:426: in enter_context
result = _cm_type.__enter__(cm)
../venv-3.7-LINUX/lib/python3.7/site-packages/mirakuru/base.py:136: in __enter__
return self.start()
raiden/utils/http.py:121: in start
self.wait_for(self.check_subprocess)
../venv-3.7-LINUX/lib/python3.7/site-packages/mirakuru/base.py:357: in wait_for
if wait_for():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <raiden.utils.http.JSONRPCExecutor: "geth --nod..." 0x7f25e69d5a58>
def check_subprocess(self):
"""
Make sure the process didn't exit with an error and run the checks.
:rtype: bool
:return: the actual check status
:raise ProcessExitedWithError: when the main process exits with
an error
"""
exit_code = self.process.poll()
if exit_code is not None and exit_code != 0:
# The main process exited with an error. Clean up the children
# if any.
self._kill_all_kids(self._sig_kill)
self._clear_process()
> raise ProcessExitedWithError(self, exit_code)
E mirakuru.exceptions.ProcessExitedWithError: The process invoked by the <raiden.utils.http.JSONRPCExecutor: "geth --nodekeyhex 4e035cc7c55331e2f5f6123b4542c4e223d473e9c5e13a81b7eed3a0825038f5 --port 44477 --rpcport 40942 --bootnodes enode://d276e4156c55ed794042381763b97ba9debcc3c56f28c4e198097c7bca78759dcf7a94d004484662a14d960c9334829e6192d654ac4d304e33664cf13d34a63f@127.0.0.1:44477 --unlock 0x01506fBaC966FD9B80Af30F453D65Fa210c0b264 --password /tmp/pytest-of-circleci/pytest-0/test_api_payments_with_secret_0/pw --nodiscover --rpc --rpcapi eth,net,web3,personal,txpool --rpcaddr 127.0.0.1 --networkid 337 --verbosity 3 --datadir /tmp/pytest-of-circleci/pytest-0/test_api_payments_with_secret_0/4e035cc7 --mine"> executor has exited with a non-zero code: 1.
../venv-3.7-LINUX/lib/python3.7/site-packages/mirakuru/base.py:458: ProcessExitedWithError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment