opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
159 stars 159 forks source link

Unable to run a testnet archive node using Docker #946

Open YuWT-CN opened 2 weeks ago

YuWT-CN commented 2 weeks ago

Describe the bug

when I use docker to run testnet archive node, it doesn't work. docker comand line : ./scripts/run/subtensor.sh -e docker --network testnet --node-type archive

2024-11-08 02:10:41 Subtensor Node    
2024-11-08 02:10:41 ✌️  version 4.0.0-dev-e6683abcdc4    
2024-11-08 02:10:41 ❀️  by Substrate DevHub <https://github.com/substrate-developer-hub>, 2017-2024    
2024-11-08 02:10:41 πŸ“‹ Chain specification: Bittensor    
2024-11-08 02:10:41 🏷  Node name: chilly-flowers-8128    
2024-11-08 02:10:41 πŸ‘€ Role: FULL    
2024-11-08 02:10:41 πŸ’Ύ Database: RocksDb at /tmp/blockchain/chains/bittensor/db/full    
Error: Service(Client(VersionInvalid("Other error happened while constructing the runtime: runtime requires function imports which are not present on the host: 'env:ext_benchmarking_proof_size_version_1', 'env:ext_benchmarking_wipe_db_version_1', 'env:ext_benchmarking_get_read_and_written_keys_version_1', 'env:ext_benchmarking_commit_db_version_1', 'env:ext_benchmarking_read_write_count_version_1', 'env:ext_benchmarking_set_whitelist_version_1', 'env:ext_benchmarking_current_time_version_1', 'env:ext_benchmarking_reset_read_write_count_version_1', 'env:ext_benchmarking_add_to_whitelist_version_1'")))
2024-11-08 02:10:42 Cannot create a runtime error=Other("runtime requires function imports which are not present on the host: 'env:ext_benchmarking_proof_size_version_1', 'env:ext_benchmarking_wipe_db_version_1', 'env:ext_benchmarking_get_read_and_written_keys_version_1', 'env:ext_benchmarking_commit_db_version_1', 'env:ext_benchmarking_read_write_count_version_1', 'env:ext_benchmarking_set_whitelist_version_1', 'env:ext_benchmarking_current_time_version_1', 'env:ext_benchmarking_reset_read_write_count_version_1', 'env:ext_benchmarking_add_to_whitelist_version_1'")

To Reproduce

flow this guide: https://docs.bittensor.com/subtensor-nodes/using-docker

Expected behavior

work normally

Screenshots

No response

Environment

Ubuntu

Additional context

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.5 LTS Release: 22.04 Codename: jammy

zhedgehog commented 2 weeks ago

Not just testnet, mainnet as well.


2024-11-08 02:17:47 Subtensor Node
2024-11-08 02:17:47 ✌️  version 4.0.0-dev-e6683abcdc4
2024-11-08 02:17:47 ❀️  by Substrate DevHub <https://github.com/substrate-developer-hub>, 2017-2024
2024-11-08 02:17:47 πŸ“‹ Chain specification: Bittensor
2024-11-08 02:17:47 🏷  Node name: depressed-sky-8892
2024-11-08 02:17:47 πŸ‘€ Role: FULL
2024-11-08 02:17:47 πŸ’Ύ Database: RocksDb at /tmp/blockchain/chains/bittensor/db/full
Error: Service(Client(VersionInvalid("Other error happened while constructing the runtime: runtime requires function imports which are not present on the host: 'env:ext_benchmarking_current_time_version_1', 'env:ext_benchmarking_commit_db_version_1', 'env:ext_benchmarking_read_write_count_version_1', 'env:ext_benchmarking_reset_read_write_count_version_1', 'env:ext_benchmarking_wipe_db_version_1', 'env:ext_benchmarking_set_whitelist_version_1', 'env:ext_benchmarking_get_read_and_written_keys_version_1', 'env:ext_benchmarking_proof_size_version_1', 'env:ext_benchmarking_add_to_whitelist_version_1'")))
2024-11-08 02:17:48 Cannot create a runtime error=Other("runtime requires function imports which are not present on the host: 'env:ext_benchmarking_current_time_version_1', 'env:ext_benchmarking_commit_db_version_1', 'env:ext_benchmarking_read_write_count_version_1', 'env:ext_benchmarking_reset_read_write_count_version_1', 'env:ext_benchmarking_wipe_db_version_1', 'env:ext_benchmarking_set_whitelist_version_1', 'env:ext_benchmarking_get_read_and_written_keys_version_1', 'env:ext_benchmarking_proof_size_version_1', 'env:ext_benchmarking_add_to_whitelist_version_1'")
nfekunprdtiunnkge commented 2 weeks ago

Same for existing archive nodes (updated to 1.1.17) when you try to fetch block 0.

zhedgehog commented 1 week ago

This has been resolved in https://github.com/opentensor/subtensor/releases/tag/v1.1.8