question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Initialization stops at block 1898

See original GitHub issue

To initialize my database I use myth -i --init-db. It’s been slow and riddled with 502 errors along the way, but restarting each time has gotten things going. Now it’s stuck on Resuming synchronization from block 1898 and doesn’t seem to move forward no matter how long I wait. I ran a git pull to make sure I was using the latest version of the project and I’m running it in a Docker instance.

Any suggestions to make it finish up so I can get to the point where I sync the difference between the head block at the time I started this and now? Alternatively, I’m willing to forego the first 1898 ETH blocks in existence and just sync the latest into the database. Is there a way to do that?

Edit: It appears there’s an intermittent error involved in processing this block:

Resuming synchronization from block 1898
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
    return list(map(*args))
  File "/usr/local/lib/python3.6/dist-packages/mythril-0.15.8-py3.6.egg/mythril/ether/contractstorage.py"                                                                                               , line 60, in sync_blocks
    for tx in block['transactions']:
TypeError: 'NoneType' object is not subscriptable
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/myth", line 4, in <module>
    __import__('pkg_resources').run_script('mythril==0.15.8', 'myth')
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 742, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1503, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python3.6/dist-packages/mythril-0.15.8-py3.6.egg/EGG-INFO/scripts/myth", line 255,                                                                                                in <module>
    contract_storage.initialize(eth)
  File "/usr/local/lib/python3.6/dist-packages/mythril-0.15.8-py3.6.egg/mythril/ether/contractstorage.py"                                                                                               , line 110, in initialize
    results = pool.map(self.sync_blocks, numbers)
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 266, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 644, in get
    raise self._value
TypeError: 'NoneType' object is not subscriptable

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jaylagoriocommented, Jun 9, 2018

This worked to reset back to syncing from the top, thanks again guys!

0reactions
muellerberndtcommented, Jun 10, 2018

FYI, here is my proposal for refactoring the search feature. This would require users to run a local node to use the search, but I think it’s the best way to make sure the feature is useful and returns accurate results. Feedback is appreciated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Service cannot be stopped · Issue #1898 - GitHub
This means I cannot perform any long initialization before the bus starts but after the service has given the callback that it has...
Read more >
16.10 - TDP0152 CELL INITIALIZATION PHASE FAILED - Teradata ...
TDP0152 CELL INITIALIZATION PHASE FAILED Explanation: TDP initialization of quick cells has failed. Generated By: TDP. Notes: TDP abends with user abend 152 ......
Read more >
Execute code when Django starts ONCE only? - Stack Overflow
So you'll want a sensible value for the CONN_MAX_AGE setting so you aren't re-running the initialization code on every request.
Read more >
GTD messages - IBM
During an Agent system initialization, a serious error was detected which caused the Agent system to request TDMF termination.
Read more >
Game Install or Update Stuck on Initializing - Blizzard Support
Troubleshooting steps when a game installation or update is stuck on.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found