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

Reth execution client reports of invalid JWT at init #28

Open
sameersubudhi opened this issue Jul 24, 2024 · 1 comment
Open

Reth execution client reports of invalid JWT at init #28

sameersubudhi opened this issue Jul 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sameersubudhi
Copy link
Member

Expected behavior

The execution clients shouldn't report any issues and should work normally.

Actual behavior

Running a Lisk node with op-reth execution client reports of Invalid JWT error at init but only once, as seen in the logs below.
The node however functions normally, syncs with the L2 network and reports no more issues later.

sameer@Sameers-MBP lisk-node % docker logs -f lisk-node-execution-1                                                 

------------------------------------------------------------------------------------------------------------
Starting op-reth execution node under '/data'...
------------------------------------------------------------------------------------------------------------

ts=2024-07-24T12:37:16.369169668Z level=info target=reth::cli message="Initialized tracing, debug log directory: /root/.cache/reth/logs/4202"
ts=2024-07-24T12:37:16.392493793Z level=info target=reth::cli message="Starting reth" version="\"1.0.3 (390f30aa)\""
...
...
ts=2024-07-24T12:37:21.429181337Z level=error target=engine::jwt-validator message="Invalid JWT: Authorization header is missing or invalid"
...

Steps to reproduce

CLIENT=reth docker compose up --build --detach

Which version(s) does this affect? (Environment, OS, etc...)

PR #27 (branch: 24-unable-to-build-reth-images, commit: 2166361)

Additional Information

Both the op-node and the execution (op-reth in this case) client already share the same JWT token and the container has everything set properly for the jwtsecret (--authrpc.jwtsecret) to be used by the reth client.

@sameersubudhi sameersubudhi added the bug Something isn't working label Jul 24, 2024
@0xChupaCabra
Copy link

manually added --l2.jwt-secret=/jwt.hex and --authrpc.jwtsecret=/jwt.hex to both entrypoints, mounted ./jwt.hex:/jwt.hex as volumes in docker-compose.yml , then booted op-node first, later reth and it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants