Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Matrix and PFS servers with the Arbitrum provider #2911

Closed
taleldayekh opened this issue Aug 27, 2021 · 5 comments
Closed

Start Matrix and PFS servers with the Arbitrum provider #2911

taleldayekh opened this issue Aug 27, 2021 · 5 comments
Assignees

Comments

@taleldayekh
Copy link
Contributor

taleldayekh commented Aug 27, 2021

Description

We need to make sure that working Matrix and PFS servers are used.

Lacking Python support makes the registration difficult and we need to find workaround. Alternative would be to rewrite the script for registering the services in the service registry.

Should be easy to rewrite to JS.

Acceptance criteria

Tasks

  • [ ]
@taleldayekh taleldayekh added this to the Product Backlog milestone Aug 27, 2021
@taleldayekh taleldayekh removed this from the Product Backlog milestone Sep 3, 2021
@palango palango self-assigned this Sep 29, 2021
@palango
Copy link
Contributor

palango commented Oct 6, 2021

RSB is running, but the PFS fails with:

pfs_1                | 2021-10-06 16:39:31.703192 [info     ] Querying new block(s)          [raiden_libs.blockchain] from_block=1 num_blocks=1000 to_block=1000
pfs_1                | 172.22.0.5 - - [2021-10-06 16:39:56] "GET /api/v1/info HTTP/1.1" 200 823 0.002620
pfs_1                | 172.22.0.5 - - [2021-10-06 16:39:56] "GET /api/v1/info HTTP/1.1" 200 823 0.000931
pfs_1                | Traceback (most recent call last):
pfs_1                |   File "src/gevent/greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run
pfs_1                |   File "/services/src/pathfinding_service/service.py", line 164, in _run
pfs_1                |     self._process_new_blocks(
pfs_1                |   File "/services/src/pathfinding_service/service.py", line 186, in _process_new_blocks
pfs_1                |     events = get_blockchain_events_adaptive(
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 325, in get_blockchain_events_adaptive
pfs_1                |     events = get_blockchain_events(
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 200, in get_blockchain_events
pfs_1                |     network_events = query_blockchain_events(
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 113, in query_blockchain_events
pfs_1                |     return [decode_event(web3.codec, log_entry) for log_entry in events]
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 113, in <listcomp>
pfs_1                |     return [decode_event(web3.codec, log_entry) for log_entry in events]
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 88, in decode_event
pfs_1                |     event_abi = EVENT_TOPIC_TO_ABI[topic]
pfs_1                | KeyError: HexBytes('0x7c793cced5743dc5f531bbe2bfb5a9fa3f40adef29231e6ab165c08a29e3dd89')
pfs_1                | 2021-10-06T16:40:01Z <PathfindingService at 0x7f71299a6480: _run> failed with KeyError
pfs_1                |
pfs_1                | Traceback (most recent call last):
pfs_1                |   File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
pfs_1                |     return _run_code(code, main_globals, None,
pfs_1                |   File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
pfs_1                |     exec(code, run_globals)
pfs_1                |   File "/services/src/pathfinding_service/cli.py", line 190, in <module>
pfs_1                |     main(auto_envvar_prefix="PFS")  # pragma: no cover
pfs_1                |   File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
pfs_1                |     return self.main(*args, **kwargs)
pfs_1                |   File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1062, in main
pfs_1                | 2021-10-06 16:40:01.966893 [info     ] Stopping Pathfinding Service... [__main__]
pfs_1                |     rv = self.invoke(ctx)
pfs_1                |   File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
pfs_1                |     return ctx.invoke(self.callback, **ctx.params)
pfs_1                |   File "/usr/local/lib/python3.9/site-packages/click/core.py", line 763, in invoke
pfs_1                |     return __callback(*args, **kwargs)
pfs_1                |   File "/services/src/raiden_libs/cli.py", line 257, in call_with_blockchain_info
pfs_1                |     return callback(**params)
pfs_1                |   File "/services/src/raiden_libs/cli.py", line 172, in call_with_common_options_initialized
pfs_1                |     return func(**params)
pfs_1                |   File "/services/src/pathfinding_service/cli.py", line 175, in main
pfs_1                |     service.get()
pfs_1                |   File "src/gevent/greenlet.py", line 829, in gevent._gevent_cgreenlet.Greenlet.get
pfs_1                |   File "src/gevent/greenlet.py", line 371, in gevent._gevent_cgreenlet.Greenlet._raise_exception
pfs_1                |   File "/usr/local/lib/python3.9/site-packages/gevent/_compat.py", line 65, in reraise
pfs_1                |     raise value.with_traceback(tb)
pfs_1                |   File "src/gevent/greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run
pfs_1                |   File "/services/src/pathfinding_service/service.py", line 164, in _run
pfs_1                |     self._process_new_blocks(
pfs_1                |   File "/services/src/pathfinding_service/service.py", line 186, in _process_new_blocks
pfs_1                |     events = get_blockchain_events_adaptive(
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 325, in get_blockchain_events_adaptive
pfs_1                |     events = get_blockchain_events(
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 200, in get_blockchain_events
pfs_1                |     network_events = query_blockchain_events(
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 113, in query_blockchain_events
pfs_1                |     return [decode_event(web3.codec, log_entry) for log_entry in events]
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 113, in <listcomp>
pfs_1                |     return [decode_event(web3.codec, log_entry) for log_entry in events]
pfs_1                |   File "/services/src/raiden_libs/blockchain.py", line 88, in decode_event
pfs_1                |     event_abi = EVENT_TOPIC_TO_ABI[topic]
pfs_1                | KeyError: HexBytes('0x7c793cced5743dc5f531bbe2bfb5a9fa3f40adef29231e6ab165c08a29e3dd89')

@palango
Copy link
Contributor

palango commented Oct 7, 2021

PFS and Matrix are running now: https://pfs.arbitrum.env.raiden.network/api/v2/info

@palango
Copy link
Contributor

palango commented Oct 7, 2021

Required PFS fix was raiden-network/raiden-services@bd8c8be

@andrevmatos
Copy link
Contributor

Thank you, @palango . It's up and running thanks to you! I'll put the instructions for the client on #2913 , we can consider this one done.

@palango
Copy link
Contributor

palango commented Oct 11, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants