-
Notifications
You must be signed in to change notification settings - Fork 93
Testing Avalon Proxy model with Besu 404 Client Error: Not Found for url: http://rpc.node1.avalon.local:8555 #541
Comments
If you are behind a proxy, you might need to set the proxy inside docker containers as well. One way to do this would be to update ~/.docker/config.json. Refer - https://docs.docker.com/network/proxy/#configure-the-docker-client |
@rranjan3 Besides, i have the following confuse.
|
The instructions for running Besu are the same for HW mode or SIM mode.
The instructions for installing Avalon in HW mode or SIM mode are
1. Install prerequisites (including Intel SGX) https://github.com/hyperledger/avalon/blob/master/PREREQUISITES.md
2. Install Avalon (including setting SGX_MODE=HW ) https://github.com/hyperledger/avalon/blob/master/BUILD.md
You know you are in Intel SGX Hardware Mode (SGX_MODE=HW) when you see messages similar to this in the Avalon Enclave Manager output at startup:
INFO avalon_enclave_manager.ias_client] IAS settings:
INFO avalon_enclave_manager.ias_client] SPID: BA5FDA588BE8A63B230955D38FA6B675
INFO avalon_enclave_manager.ias_client] IAS ApiKey: 8730f36c63ad49528dd3e7cf318997ed
Dan
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#541 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AH26UROYLCSAVZEYJCA7Q2LRYBOSXANCNFSM4OAQD76Q>.
|
Adding to what @danintel suggested.
|
@danintel Hi Dan, your advice taught me a lot. Thank you very much. sgx sdk/psw: https://github.com/intel/linux-sgx master branch(
[17:58:12 ERROR main] No workers found |
@justalittlenoob It must be a race condition we need to fix. The HW mode would take more time for bootupby when the blockchain connector would have started. This would lead to a situation where the connector does not find a worker in the KV storage and hence nothing gets synced up in the proxy blockchain. Try the command below with a sleep induced (for now) in the blockchain connector container at -
If you have the images already built, you could ignore the trialing |
@rranjan3 After running
|
I am trying to test proxy model with besu according to this doc. There is an error when i try to run
./eth_generic_client.py -b ethereum --workload_id "echo-result" -o --in_data "Hello"
inavalon-shell
container. Any advice would be appreciated.Here are some information may be helpful.
vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
http_proxy=http://abc-proxy.abc.com:914
https_proxy=http://abc-proxy.abc.com:914
ftp_proxy=http://abc-proxy.abc.com:914
no_proxy=10.96.0.0/12,10.67.117.0/24,10.244.0.0/16,127.0.0.1,localhost,node1.avalon.local,rpc.node1.avalon.local,node2.avalon.local, rpc.node2.avalon.local
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d3556bde412c avalon-blockchain-connector-eth-dev "bash -c '\n avalon_…" 23 minutes ago Up 23 minutes avalon-blockchain-connector-eth
e4c0dfc4387c avalon-shell-dev "bash -c 'tail -f /d…" 24 minutes ago Up 24 minutes avalon-shell
cc6238a6b6e2 avalon-enclave-manager-dev "bash -c '\n enclave…" 24 minutes ago Up 24 minutes 5555/tcp avalon-enclave-manager
f406125301fe avalon-listener-dev "bash -c '\n avalon_…" 24 minutes ago Up 24 minutes 1947/tcp, 5555/tcp avalon-listener
893ed7ebb9b0 avalon-lmdb-dev "bash -c '\n kv_stor…" 24 minutes ago Up 24 minutes 9090/tcp avalon-lmdb
eb8890062d4d truffle-envt:latest "docker-entrypoint.s…" 59 minutes ago Exited (0) 56 minutes ago truffle-envt-besu-setup
628cfd271c56 pegasyseng/ethsigner:0.4.0 "/opt/ethsigner/bin/…" 59 minutes ago Up 59 minutes 8545/tcp, 0.0.0.0:23001->8555/tcp besu_rpc.node2.avalon.local_1
c765e9e6c2c2 hyperledger/besu:1.4.3 "besu --data-path=/v…" 59 minutes ago Up 59 minutes 8547/tcp, 30303/tcp, 0.0.0.0:23011->8545/tcp, 0.0.0.0:23002->8546/tcp besu_node2.avalon.local_1
9681e68d4374 pegasyseng/ethsigner:0.4.0 "/opt/ethsigner/bin/…" 59 minutes ago Up 59 minutes 8545/tcp, 0.0.0.0:22001->8555/tcp besu_rpc.node1.avalon.local_1
1df85be814df hyperledger/besu:1.4.3 "besu --data-path=/v…" 59 minutes ago Up 59 minutes 8547/tcp, 30303/tcp, 0.0.0.0:22011->8545/tcp, 0.0.0.0:22002->8546/tcp besu_node1.avalon.local_1
/project/avalon/examples/apps/generic_client# ./eth_generic_client.py -b ethereum --workload_id "echo-result" -o --in_data "Hello"
[18:58:34 INFO main] ******* Hyperledger Avalon Generic client *******
[18:58:34 INFO solcx] Using solc version v0.5.15
[18:58:37 WARNING STDERR] Traceback (most recent call last):
[18:58:37 WARNING STDERR] File "./eth_generic_client.py", line 577, in
[18:58:37 WARNING STDERR] Main()
[18:58:37 WARNING STDERR] File "./eth_generic_client.py", line 477, in Main
[18:58:37 WARNING STDERR] worker_id, config)
[18:58:37 WARNING STDERR] File "./eth_generic_client.py", line 337, in _get_first_active_worker
[18:58:37 WARNING STDERR] jrpc_req_id
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/avalon_sdk/connector/blockchains/ethereum/ethereum_worker_registry.py", line 101, in worker_lookup
[18:58:37 WARNING STDERR] worker_type.value, org_id, application_id).call()
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/contract.py", line 959, in call
[18:58:37 WARNING STDERR] **self.kwargs
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/contract.py", line 1493, in call_contract_function
[18:58:37 WARNING STDERR] return_data = web3.eth.call(call_transaction, block_identifier=block_id)
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/eth_utils/functional.py", line 45, in inner
[18:58:37 WARNING STDERR] return callback(fn(*args, **kwargs))
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/eth.py", line 430, in call
[18:58:37 WARNING STDERR] [transaction, block_identifier],
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/manager.py", line 149, in request_blocking
[18:58:37 WARNING STDERR] response = self._make_request(method, params)
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/manager.py", line 128, in _make_request
[18:58:37 WARNING STDERR] return request_func(method, params)
[18:58:37 WARNING STDERR] File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/middleware/formatting.py", line 75, in apply_formatters
[18:58:37 WARNING STDERR] response = make_request(method, params)
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/middleware/gas_price_strategy.py", line 34, in middleware
[18:58:37 WARNING STDERR] return make_request(method, params)
[18:58:37 WARNING STDERR] File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/middleware/formatting.py", line 73, in apply_formatters
[18:58:37 WARNING STDERR] response = make_request(method, formatted_params)
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/middleware/attrdict.py", line 33, in middleware
[18:58:37 WARNING STDERR] response = make_request(method, params)
[18:58:37 WARNING STDERR] File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/middleware/formatting.py", line 73, in apply_formatters
[18:58:37 WARNING STDERR] response = make_request(method, formatted_params)
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/middleware/normalize_errors.py", line 25, in middleware
[18:58:37 WARNING STDERR] result = make_request(method, params)
[18:58:37 WARNING STDERR] File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/middleware/formatting.py", line 73, in apply_formatters
[18:58:37 WARNING STDERR] response = make_request(method, formatted_params)
[18:58:37 WARNING STDERR] File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.call
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/middleware/formatting.py", line 73, in apply_formatters
[18:58:37 WARNING STDERR] response = make_request(method, formatted_params)
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/middleware/exception_retry_request.py", line 105, in middleware
[18:58:37 WARNING STDERR] return make_request(method, params)
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/providers/rpc.py", line 83, in make_request
[18:58:37 WARNING STDERR] **self.get_request_kwargs()
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/web3/_utils/request.py", line 35, in make_post_request
[18:58:37 WARNING STDERR] response.raise_for_status()
[18:58:37 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/requests/models.py", line 940, in raise_for_status
[18:58:37 WARNING STDERR] raise HTTPError(http_error_msg, response=self)
[18:58:37 WARNING STDERR] requests.exceptions
[18:58:37 WARNING STDERR] .
[18:58:37 WARNING STDERR] HTTPError
[18:58:37 WARNING STDERR] :
[18:58:37 WARNING STDERR] 404 Client Error: Not Found for url: http://rpc.node1.avalon.local:8555/
The text was updated successfully, but these errors were encountered: