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

indexer-agent always exits with fatal error: CALL_EXCEPTION for method: paused() #207

Closed
begetan opened this issue Feb 4, 2021 · 4 comments · Fixed by #472
Closed

indexer-agent always exits with fatal error: CALL_EXCEPTION for method: paused() #207

begetan opened this issue Feb 4, 2021 · 4 comments · Fixed by #472
Assignees

Comments

@begetan
Copy link

begetan commented Feb 4, 2021

Versions:

  • indexer-agent: 0.10.0
  • indexer-service: 0.10.0
  • graph-node: 0.21.1

Environment:

  • New testnet configuration
  • Database is running
  • Graph-node is running and scanning blocks from the Ethereum node.

Expected behavior:
After launch container should check all settings and provide notifications like "waiting for the node operator wallet approval from staking contract" It could be checked in the loop every 1-5 minutes.

Actual behavior:
Service exits with a fatal error. It makes it very hard to verify the configuration.

Logs:
https://gist.github.com/begetan/74d28161bb9ce7eb8fdc15eb1811fc8c

@begetan
Copy link
Author

begetan commented Feb 11, 2021

I found that I set the indexer address the same as the operator address initially ( before the token distribution)
While it is a correct configuration I am trying to set up a separate node management wallet.

So I did the following steps.

  1. Assign a node wallet with 1 Eth balance, and use the same address for indexer - > got code: 'CALL_EXCEPTION' for method: 'paused()'

  2. Approved node operator address using cli.ts using testnet instructions -> still got the same error

  3. Proceeded entire initialization flow:
    Set correct Indexer address and operator wallet

  1. Approve token distribution for 1M testnet tokens
  2. Stake amount 100K
  3. Approved node operator address one more time

All transactions succeded for an account: https://rinkeby.etherscan.io/address/0x3ad34B9dFaEefaeD3CdB2C60Ea93EAe60463DedF

And the result is absolutely the same. I think there is a general issue in the interaction between index-agent and testnet contract dispatching address: 0x23B1aD50996ff1b21552cDD6430868D60bF342c5

Logs after step 3
https://gist.github.com/begetan/27d9ffedd1bfee161d1477bb59cf0260

@begetan begetan changed the title indexer-agent produces a fatal exception while waiting for approval from the stacking contract indexer-agent always exits with fatal error: CALL_EXCEPTION for method: paused() Feb 11, 2021
@begetan
Copy link
Author

begetan commented Feb 16, 2021

The root cause of this error was the incorrect Ethereum node endpoint in the indexer agent and the indexer service configurations. It was set for Mainnet instead of Rinkeby.

Anyway, it could be nice to implement better error handling for such a case. So I would like to keep it open untill the dev team makes a decision.

@begetan
Copy link
Author

begetan commented May 10, 2021

I have the same error message when running on Mainnet.

https://gist.github.com/begetan/6e4b2fb5021ee6b5b4917284ba9e40ec

This time I doubled checked everything. The issue was with indexer-agent which doesn't work with OpenEthereum endpoint, while indexer-service does.

It would be great to add here all kind of network checking and provides a correct error message instead of a fatal exception

@fordN fordN added this to Indexer Mar 10, 2022
@fordN fordN moved this to Requests in Indexer Mar 10, 2022
@fordN fordN moved this from 🙏 Feature Requests to 📒 Todo in Indexer Jul 27, 2022
@hopeyen
Copy link
Contributor

hopeyen commented Aug 2, 2022

Issue created for adding more types of indexer configurations check such as ethereum endpoints: #448

@fordN fordN moved this from 📒 Todo to 🙏 Feature Requests in Indexer Aug 4, 2022
@hopeyen hopeyen moved this from 🙏 Feature Requests to 📒 Todo in Indexer Aug 29, 2022
@hopeyen hopeyen moved this from 📒 Todo to 🏗️ In Progress in Indexer Aug 29, 2022
@hopeyen hopeyen moved this from 🏗️ In Progress to 🚩 In Review in Indexer Aug 30, 2022
@fordN fordN moved this from 🚩 In Review to 📒 Todo in Indexer Oct 31, 2022
@github-project-automation github-project-automation bot moved this from 📒 Todo to ❌ Closed in Indexer Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Closed
Development

Successfully merging a pull request may close this issue.

3 participants