availproject / availup Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
I use Amazon Linux EC2.
After running : curl -sL1 avail.sh | bash
๐ Starting Availup...
๐ No network selected. Defaulting to goldberg testnet.
๐ Goldberg testnet selected.
๐๏ธ Wiping old config file at /home/ec2-user/.avail/config/config.yml.
๐ฒ No app ID specified. Defaulting to light client mode.
๐ Identity found at /home/ec2-user/.avail/identity/identity.toml.
โ
Avail is already installed. Starting Avail...
2024-04-05T15:39:50.193407Z INFO avail_light: Identity loaded from /home/ec2-user/.avail/identity/identity.toml
2024-04-05T15:39:50.193650Z INFO avail_light: Running Avail light client version: 1.7.10. Role: lightnode.
2024-04-05T15:39:50.193711Z INFO avail_light: Using config: RuntimeConfig { http_server_host: "127.0.0.1", http_server_port: 7000, secret_key: None, port: 37000, autonat_only_global_ips: false, autonat_throttle: 1, autonat_retry_interval: 20, autonat_refresh_interval: 360, autonat_boot_delay: 5, bootstraps: [Compact(CompactMultiaddress((PeerId("12D3KooWBkLsNGaD3SpMaRWtAmWVuiZg1afdNSPbtJ8M8r9ArGRT"), "/dns/bootnode.1.lightclient.goldberg.avail.tools/tcp/37000/p2p/12D3KooWBkLsNGaD3SpMaRWtAmWVuiZg1afdNSPbtJ8M8r9ArGRT"))), Compact(CompactMultiaddress((PeerId("12D3KooWRCgfvaLSnQfkwGehrhSNpY7i5RenWKL2ARst6ZqgdZZd"), "/dns/bootnode.2.lightclient.goldberg.avail.tools/tcp/37000/p2p/12D3KooWRCgfvaLSnQfkwGehrhSNpY7i5RenWKL2ARst6ZqgdZZd")))], bootstrap_period: 3600, operation_mode: Client, relays: [], full_node_ws: ["wss://rpc-goldberg.sandbox.avail.tools:443", "wss://goldberg-rpc.fra.avail.tools:443"], genesis_hash: "6f09966420b2608d1947ccfb0f2a362450d1fc7fd902c29b67c906eaa965a7ae", app_id: Some(0), confidence: 99.0, avail_path: "/home/ec2-user/.avail/data", log_level: "INFO", origin: "external", log_format_json: false, ot_collector_endpoint: "http://otelcol.lightclient.goldberg.avail.tools:4317", disable_rpc: false, dht_parallelization_limit: 20, query_proof_rpc_parallel_tasks: 8, block_processing_delay: Some(20), block_matrix_partition: None, sync_start_block: None, sync_finality_enable: false, max_cells_per_rpc: Some(30), threshold: 5000, kad_record_ttl: 43200, publication_interval: 43200, replication_interval: 10800, replication_factor: 5, connection_idle_timeout: 30, max_negotiating_inbound_streams: 128, task_command_buffer_size: 32, per_connection_event_buffer_size: 7, dial_concurrency_factor: 8, query_timeout: 10, query_parallelism: 3, caching_max_peers: 1, disjoint_query_paths: false, max_kad_record_number: 2400000, max_kad_record_size: 8192, max_kad_provided_keys: 1024, retry_config: Exponential(ExponentialConfig { base: 10, max_delay: 4000, retries: 3 }) }
2024-04-05T15:39:50.193876Z INFO avail_light: Avail ss58 address: 5EtRee2zrhbwrPCWBzTwh9uqnaNcMmSTMr8q1jZkQcgDJkNF, public key: 7cddaff4f161d9dc31137f743102f2cc7a4f93678eb5a177e9e01d2d264cd050
2024-04-05T15:39:50.222543Z INFO avail_light: TCP listener started on port 37000
2024-04-05T15:39:50.222678Z INFO avail_light: Bootstraping the DHT with bootstrap nodes...
2024-04-05T15:40:00.223090Z WARN avail_light: Bootstrap process:
0: Dialing Bootstrap peer failed.
1: Failed to negotiate transport protocol(s): [(/dns/bootnode.1.lightclient.goldberg.avail.tools/tcp/37000/p2p/12D3KooWBkLsNGaD3SpMaRWtAmWVuiZg1afdNSPbtJ8M8r9ArGRT: : Timeout has been reached)]
Location:
/home/runner/work/avail-light/avail-light/src/network/p2p/event_loop.rs:523
getting os erorr 11001 in windows without wls
Run:
curl -sL1 avail.sh | bash
And the script get stuck in process and print the following log:
_verified=3 fetch_elapsed=135.636143ms proof_verification_elapsed=11.265769ms
2024-04-09T07:46:02.416659Z INFO avail_light::light_client: Confidence factor: 87.5 block_number=648115 confidence=87.5
2024-04-09T07:46:02.416813Z INFO avail_light::light_client: Sleeping for 18.794608492s seconds
2024-04-09T07:46:02.416873Z INFO avail_light::api::v2: Message published to clients topic=ConfidenceAchieved published=0 failed=0
2024-04-09T07:46:02.417072Z INFO avail_light::network::p2p::event_loop: Cell upload success rate for block 648115: 0/3. Duration: 0
2024-04-09T07:46:02.417132Z INFO avail_light::app_client: Block available: Dimensions { rows: 8, cols: 256 } block_number=648115
2024-04-09T07:46:02.417179Z DEBUG avail_light::app_client: Fetching 4 app rows from DHT: [0, 2, 4, 6] block_number=648115
2024-04-09T07:46:02.417314Z DEBUG avail_light::network::p2p::client: Row 648115:0 not found in the DHT: the record was not found
2024-04-09T07:46:02.417362Z DEBUG avail_light::network::p2p::client: Row 648115:2 not found in the DHT: the record was not found
2024-04-09T07:46:02.417428Z DEBUG avail_light::network::p2p::client: Row 648115:4 not found in the DHT: the record was not found
2024-04-09T07:46:02.417479Z DEBUG avail_light::network::p2p::client: Row 648115:6 not found in the DHT: the record was not found
2024-04-09T07:46:02.417522Z DEBUG avail_light::app_client: Fetched 0 app rows from DHT block_number=648115
2024-04-09T07:46:02.417602Z DEBUG avail_light::app_client: Verified 0 app rows from DHT, missing 4 block_number=648115
2024-04-09T07:46:02.417646Z DEBUG avail_light::app_client: Fetching missing app rows from RPC: [0, 2, 4, 6] block_number=648115
2024-04-09T07:46:02.417809Z INFO avail_light::maintenance: Maintenance completed block_number=648115 map_size=117
2024-04-09T07:46:03.114117Z DEBUG avail_light::app_client: Verified 4 app rows from RPC, missing 0 block_number=648115
2024-04-09T07:46:03.114324Z DEBUG avail_light::app_client: Found 4 rows, verified 4, 0 is missing block_number=648115
2024-04-09T07:46:03.114368Z DEBUG avail_light::app_client: Reconstructing 0 missing app rows from DHT: [] block_number=648115
2024-04-09T07:46:03.114406Z DEBUG avail_light::app_client: Reconstructed 0 app rows from DHT block_number=648115
2024-04-09T07:46:03.114785Z DEBUG avail_light::app_client: Storing data into database block_number=648115
How to fix it? My linux is pure of ubutun 20.0. thx.
As title, how to rerun it with the same public key generated from previous run?
There is no public in my code
root@racknerd-b916e3:~/availup# curl -sL1 avail.sh | bash -s -- --identity ~/identity.toml
๐ Starting Availup...
๐ No network selected. Defaulting to goldberg testnet.
๐ Goldberg testnet selected.
.๐๏ธ Wiping old config file at /root/.avail/config/config.yml.
๐ฒ No app ID specified. Defaulting to light client mode.
โ
Avail is already installed. Starting Avail...
2024-04-05T14:03:22.811417Z INFO avail_light: Identity loaded from /root/identity.toml
2024-04-05T14:03:22.811522Z INFO avail_light: Running Avail light client version: 1.7.10. Role: lightnode.
2024-04-05T14:03:22.811558Z INFO avail_light: Using config: RuntimeConfig { http_server_host: "127.0.0.1", http_server_port: 7000, secret_key: None, port: 37000, autonat_only_global_ips: false, autonat_throttle: 1, autonat_retry_interval: 20, autonat_refresh_interval: 360, autonat_boot_delay: 5, bootstraps: [Compact(CompactMultiaddress((PeerId("12D3KooWBkLsNGaD3SpMaRWtAmWVuiZg1afdNSPbtJ8M8r9ArGRT"), "/dns/bootnode.1.lightclient.goldberg.avail.tools/tcp/37000/p2p/12D3KooWBkLsNGaD3SpMaRWtAmWVuiZg1afdNSPbtJ8M8r9ArGRT"))), Compact(CompactMultiaddress((PeerId("12D3KooWRCgfvaLSnQfkwGehrhSNpY7i5RenWKL2ARst6ZqgdZZd"), "/dns/bootnode.2.lightclient.goldberg.avail.tools/tcp/37000/p2p/12D3KooWRCgfvaLSnQfkwGehrhSNpY7i5RenWKL2ARst6ZqgdZZd")))], bootstrap_period: 3600, operation_mode: Client, relays: [], full_node_ws: ["wss://rpc-goldberg.sandbox.avail.tools:443", "wss://goldberg-rpc.fra.avail.tools:443"], genesis_hash: "6f09966420b2608d1947ccfb0f2a362450d1fc7fd902c29b67c906eaa965a7ae", app_id: Some(0), confidence: 99.0, avail_path: "/root/.avail/data", log_level: "INFO", origin: "external", log_format_json: false, ot_collector_endpoint: "http://otelcol.lightclient.goldberg.avail.tools:4317", disable_rpc: false, dht_parallelization_limit: 20, query_proof_rpc_parallel_tasks: 8, block_processing_delay: Some(20), block_matrix_partition: None, sync_start_block: None, sync_finality_enable: false, max_cells_per_rpc: Some(30), threshold: 5000, kad_record_ttl: 43200, publication_interval: 43200, replication_interval: 10800, replication_factor: 5, connection_idle_timeout: 30, max_negotiating_inbound_streams: 128, task_command_buffer_size: 32, per_connection_event_buffer_size: 7, dial_concurrency_factor: 8, query_timeout: 10, query_parallelism: 3, caching_max_peers: 1, disjoint_query_paths: false, max_kad_record_number: 2400000, max_kad_record_size: 8192, max_kad_provided_keys: 1024, retry_config: Exponential(ExponentialConfig { base: 10, max_delay: 4000, retries: 3 }) }
2024-04-05T14:03:22.811823Z INFO avail_light: Avail ss58 address: 5FujiAcEF2EMxNTaFfJWKvHMxh58FTzpG1XX7KcKU8EdJimK, public key: aa19f6dc8c4541d7282fc382e00c56f1338ca6c31bfbe845b2bc135a640bb327
2024-04-05T14:03:22.815853Z ERROR avail_light: Cannot initialize database: IO error: While lock file: /root/.avail/data/LOCK: Resource temporarily unavailable
Error:
0: Starting Light Client failed
1: Cannot initialize database
2: IO error: While lock file: /root/.avail/data/LOCK: Resource temporarily unavailable
Location:
src/data.rs:66
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
๐ Avail stopped. Future instances of the light client can be started by invoking the avail-light binary or rerunning this script
https://github.com/availproject/avail-light is blocklisted on Gitpod.
what should i do now
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.