各位同学:
如果有PRB相关的问题可以在这里讨论,相关的开发人员将会在第一时间回复。
monitor下观看, work机一直在同步,很慢,请问有办法吗?
在worker端配置docker-compose.yml文件之后用docker-compose up启动
在fetcher页面添加了矿池,然后添加矿机,报错内容如下:
1632629327436 - {“name”:“TypeError”,“message”:“Cannot destructure property ‘genesisState’ of ‘appContext.genesis’ as it is null.”,“stack”:“TypeError: Cannot destructure property ‘genesisState’ of ‘appContext.genesis’ as it is null.\n at initRuntime (file:///opt/app/src/lifecycle/pruntime.js:107:13)\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async run (file:///opt/app/node_modules/.pnpm/[email protected]/node_modules/p-queue/dist/index.js:267:36)”}
1、添加pool和work后,同步完毕后出现如下报错:
1632724022130 - {“name”:“Error”,“message”:“1010: Invalid Transaction: Transaction is outdated”,“stack”:“Error: 1010: Invalid Transaction: Transaction is outdated\n at Queue._onMessage (/opt/app/node_modules/.pnpm/[email protected]/node_modules/bee-queue/lib/queue.js:138:22)\n at RedisClient.emit (events.js:400:28)\n at return_pub_sub (/opt/app/node_modules/.pnpm/[email protected]/node_modules/redis/index.js:786:18)\n at RedisClient.return_reply (/opt/app/node_modules/.pnpm/[email protected]/node_modules/redis/index.js:833:9)\n at JavascriptRedisParser.returnReply (/opt/app/node_modules/.pnpm/[email protected]/node_modules/redis/index.js:192:18)\n at JavascriptRedisParser.execute (/opt/app/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:574:12)\n at Socket. (/opt/app/node_modules/.pnpm/[email protected]/node_modules/redis/index.js:274:27)\n at Socket.emit (events.js:400:28)\n at addChunk (internal/streams/readable.js:290:12)\n at readableAddChunk (internal/streams/readable.js:265:9)”}
2、关于prb有几个疑问
a、添加的worker节点,使用的是哪里的gas费用,并没有找到相关gas地址的配置
b、如果之前solo挖矿的机器,直接转移到prb上面,workpublickey是否会变动?
c、在prb添加的机器,是不是还需要手动将work机器的publickey添加到consoleWEB页面中,进行开始start/stop、质押等操作
有的能跑起来了,有个还有问题,还在找坑,补坑中
这个是不是同步问题,你的区块没有同步到最新
prb 校验的到最后就不校验了,然后总是差一点不完成。
各项组件正常运行
ry_peak":“935552”,“used_memory_peak_human”:“913.62K”,“used_memory_peak_perc”:“104.79%”,“used_memory_overhead”:“809904”,“used_memory_startup”:“809904”,“used_memory_dataset”:“125648”,“used_memory_dataset_perc”:“100.00%”,“allocator_allocated”:“1038680”,“allocator_active”:“1208320”,“allocator_resident”:“4022272”,“total_system_memory”:“92721737728”,“total_system_memory_human”:“86.35G”,“used_memory_lua”:“37888”,“used_memory_lua_human”:“37.00K”,“used_memory_scripts”:“0”,“used_memory_scripts_human”:“0B”,“number_of_cached_scripts”:“0”,“maxmemory”:“0”,“maxmemory_human”:“0B”,“maxmemory_policy”:“noeviction”,“allocator_frag_ratio”:“1.16”,“allocator_frag_bytes”:“169640”,“allocator_rss_ratio”:“3.33”,“allocator_rss_bytes”:“2813952”,“rss_overhead_ratio”:“1.43”,“rss_overhead_bytes”:“1712128”,“mem_fragmentation_ratio”:“7.08”,“mem_fragmentation_bytes”:“4924496”,“mem_not_counted_for_evict”:“0”,“mem_replication_backlog”:“0”,“mem_clients_slaves”:“0”,“mem_clients_normal”:“0”,“mem_aof_buffer”:“0”,“mem_allocator”:“jemalloc-5.1.0”,“active_defrag_running”:“0”,“lazyfree_pending_objects”:“0”,“lazyfreed_objects”:“0”,“loading”:“0”,“current_cow_size”:“0”,“current_cow_size_age”:“0”,“current_fork_perc”:“0.00”,“current_save_keys_processed”:“0”,“current_save_keys_total”:“0”,“rdb_changes_since_last_save”:“0”,“rdb_bgsave_in_progress”:“0”,“rdb_last_save_time”:“1632837392”,“rdb_last_bgsave_status”:“ok”,“rdb_last_bgsave_time_sec”:"-1",“rdb_current_bgsave_time_sec”:"-1",“rdb_last_cow_size”:“0”,“aof_enabled”:“0”,“aof_rewrite_in_progress”:“0”,“aof_rewrite_scheduled”:“0”,“aof_last_rewrite_time_sec”:"-1",“aof_current_rewrite_time_sec”:"-1",“aof_last_bgrewrite_status”:“ok”,“aof_last_write_status”:“ok”,“aof_last_cow_size”:“0”,“module_fork_in_progress”:“0”,“module_fork_last_cow_size”:“0”,“total_connections_received”:“2”,“total_commands_processed”:“1”,“instantaneous_ops_per_sec”:“0”,“total_net_input_bytes”:“28”,“total_net_output_bytes”:“4053”,“instantaneous_input_kbps”:“0.00”,“instantaneous_output_kbps”:“0.00”,“rejected_connections”:“0”,“sync_full”:“0”,“sync_partial_ok”:“0”,“sync_partial_err”:“0”,“expired_keys”:“0”,“expired_stale_perc”:“0.00”,“expired_time_cap_reached_count”:“0”,“expire_cycle_cpu_milliseconds”:“0”,“evicted_keys”:“0”,“keyspace_hits”:“0”,“keyspace_misses”:“0”,“pubsub_channels”:“0”,“pubsub_patterns”:“0”,“latest_fork_usec”:“0”,“total_forks”:“0”,“migrate_cached_sockets”:“0”,“slave_expires_tracked_keys”:“0”,“active_defrag_hits”:“0”,“active_defrag_misses”:“0”,“active_defrag_key_hits”:“0”,“active_defrag_key_misses”:“0”,“tracking_total_keys”:“0”,“tracking_total_items”:“0”,“tracking_total_prefixes”:“0”,“unexpected_error_replies”:“0”,“total_error_replies”:“0”,“dump_payload_sanitizations”:“0”,“total_reads_processed”:“2”,“total_writes_processed”:“1”,“io_threaded_reads_processed”:“0”,“io_threaded_writes_processed”:“0”,“role”:“master”,“connected_slaves”:“0”,“master_failover_state”:“no-failover”,“master_replid”:“3414b9ae22b7cc6d9569a6ebd4adc149df823186”,“master_replid2”:“0000000000000000000000000000000000000000”,“master_repl_offset”:“0”,“second_repl_offset”:"-1",“repl_backlog_active”:“0”,“repl_backlog_size”:“1048576”,“repl_backlog_first_byte_offset”:“0”,“repl_backlog_histlen”:“0”,“used_cpu_sys”:“0.030796”,“used_cpu_user”:“0.033246”,“used_cpu_sys_children”:“0.000000”,“used_cpu_user_children”:“0.000731”,“used_cpu_sys_main_thread”:“0.032186”,“used_cpu_user_main_thread”:“0.026822”,“cluster_enabled”:“0”}}}},“to”:4,“nonceRef”:“d83a2a24-51bb-4d23-b417-864ca7cf6140”,“type”:2},“msg”:“published to rpc.”,“time”:“2021-09-29T00:32:28.071Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:18,“level”:20,“from”:“MTG_FETCHER”,“to”:“MTG_APP”,“content”:{“fetcherStateUpdate”:{“hostname”:“fetch”,“paraId”:2004,“parentStartHeader”:8325311,“parentKnownHeight”:9429535,“parentBlobHeight”:9423164,“parentArchivedHeight”:9422648,“paraKnownHeight”:476355,“paraBlobHeight”:473618,“paraArchivedHeight”:473473,“synched”:false}},“createdAt”:“1632875548070”,“nonce”:“b9f6c8e5-8289-499d-92e8-921dfc4b6e69”,“nonceRef”:“d83a2a24-51bb-4d23-b417-864ca7cf6140”,“type”:“MTP_REPLY”,“msg”:“Receiving…”,“time”:“2021-09-29T00:32:28.071Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429536,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:32:32.151Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429537,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:32:36.335Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“paraBlockNumber”:476356,“msg”:“Fetched parachain block.”,“time”:“2021-09-29T00:32:41.006Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429538,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:32:41.051Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429539,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:32:49.527Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“paraBlockNumber”:476357,“msg”:“Fetched parachain block.”,“time”:“2021-09-29T00:32:53.402Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429540,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:32:53.447Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429541,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:33:01.855Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“paraBlockNumber”:476358,“msg”:“Fetched parachain block.”,“time”:“2021-09-29T00:33:05.974Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429542,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:33:06.019Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429543,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:33:14.499Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“paraBlockNumber”:476359,“msg”:“Fetched parachain block.”,“time”:“2021-09-29T00:33:18.930Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429544,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:33:18.975Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429545,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:33:23.019Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“paraBlockNumber”:476360,“msg”:“Fetched parachain block.”,“time”:“2021-09-29T00:33:31.547Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429546,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:33:31.591Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429547,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:33:35.892Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429548,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:33:44.299Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“paraBlockNumber”:476361,“msg”:“Fetched parachain block.”,“time”:“2021-09-29T00:33:48.701Z”,“v”:0}
{“name”:“prb”,“hostname”:“fetch”,“pid”:29,“level”:20,“parentBlockNumber”:9429549,“msg”:“Fetched parent block.”,“time”:“2021-09-29T00:33:48.755Z”,“v”:0}
差距越来越大
等待
如果太久了 那就重启prb
重启了两此,终于好了
已经搞定prb,上面的疑问,全部测试验证完毕
兄弟,gas这个问题是什么情况