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

"query timeout of 10 seconds exceeded" for log backfill to retrieve historical data #1357

Closed
roblinkriver opened this issue Sep 9, 2024 · 3 comments
Labels
bug Something isn't working Stale

Comments

@roblinkriver
Copy link

Description

We need to log backfill via websocket of historical data. Our Astar node with which we are testing this is an archive node.
We have tried various configs and the only one that seems to be related in the help section is --max-past-logs but changing it does not solve the problem.

There seems to be a 10sec timeout and this appears to us as an error:

error="query timeout of 10 seconds exceeded"

This timeout occurs when we exceed a certain number of blocks during the backfill with ~80k

Steps to Reproduce

We are running the node with: staketechnologies/astar-collator:v5.44.0

This is our redacted config:

        - astar-collator
        - --name=$redacted
        - --base-path=/data
        - --chain=astar
        - --rpc-external
        - --rpc-methods=Safe
        - --rpc-max-request-size=1000
        - --rpc-max-response-size=1000
        - --rpc-cors=all
        - --rpc-port=$redacted
        - --no-telemetry
        - --enable-evm-rpc
        - --pruning=archive
        # Metrics
        - --prometheus-port=$redacted
        # P2P
        - --listen-addr=/ip4/$redacted/tcp/$redacted/ws
        - --no-private-ip
        - --
        - --rpc-port=$redacted
        - --state-pruning=100
        - --blocks-pruning=100
        - --sync=warp 
        - --no-telemetry
        - --prometheus-port=6061
        - --listen-addr=/ip4/$redacted/tcp/$redacted/ws
        - --no-private-ip

Expected vs. Actual Behavior
Is there any configuration or way to enable longer block backfill and thus somehow increase the timeout?

@roblinkriver roblinkriver added the bug Something isn't working label Sep 9, 2024
@Dinonard
Copy link
Member

I assume your question is related to EVM tracing?
It would be helpful if you post the exact query used when fetching the data.

There's a timeout field in the TraceParams struct, did you try to use that?

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 11, 2024
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

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

No branches or pull requests

2 participants