简体   繁体   English

运行 solana 的测试验证器时出错

[英]Getting error on running test validator for solana

On running command solana-test-validator on windows system, getting an error在 windows 系统上运行命令solana-test-validator时,出现错误

[2022-01-06T06:54:41.602352800Z INFO  solana_test_validator] solana-validator 1.9.0 (src:7782d34b; feat:378846963)
[2022-01-06T06:54:41.602479300Z INFO  solana_test_validator] Starting validator with: ArgsOs {
        inner: [
            "solana-test-validator",
        ],
    }
[2022-01-06T06:54:41.602617400Z WARN  solana_perf] CUDA is disabled
[2022-01-06T06:54:41.602720300Z INFO  solana_perf] AVX detected
[2022-01-06T06:54:41.602823600Z INFO  solana_perf] AVX2 detected
[2022-01-06T06:54:41.606436300Z INFO  solana_faucet::faucet] Faucet started. Listening on: 0.0.0.0:9900
[2022-01-06T06:54:41.606635600Z INFO  solana_faucet::faucet] Faucet account address: 2P4mpwfirxqrL3naJD7C5UHYynPgVugaRu9sBT6m73EZ
Ledger location: test-ledger
Log: test-ledger\validator.log
⠁
⠉ Initializing...
[2022-01-06T06:54:44.975790700Z INFO  solana_ledger::blockstore] "test-ledger\\rocksdb" open took 3.3s
[2022-01-06T06:54:44.981740300Z INFO  solana_metrics::metrics] metrics disabled: SOLANA_METRICS_CONFIG: environment variable not found
[2022-01-06T06:54:44.982273700Z INFO  solana_metrics::metrics] datapoint: shred_insert_is_full total_time_ms=0i slot=0i ⠒ Initializing...
[2022-01-06T06:54:45.595853800Z ERROR solana_ledger::blockstore] tar stdout:
[2022-01-06T06:54:45.596099200Z ERROR solana_ledger::blockstore] tar stderr: tar: Can't launch external program: bzip2
Error: failed to start validator: Failed to create ledger at test-ledger: blockstore error```

This is a current annoyance with natively using Windows with solana-test-validator .这是当前使用 Windows 和solana-test-validator的烦恼。 It shells out to tar with bzip2 , which isn't available in the default Windows shell.它使用bzip2进行tar处理,这在默认的 Windows shell 中不可用。

As a workaround, try installing Git BASH and then running solana-test-validator from a Git BASH shell. As a workaround, try installing Git BASH and then running solana-test-validator from a Git BASH shell.

Source code for the issue can be found at: https://github.com/solana-labs/solana/blob/f1e2598baa80a0ad4e8450c8b5e3c5ab164f501c/ledger/src/blockstore.rs#L3789-L3814 -- the j flag indicates to use bzip2可以在以下位置找到该问题的源代码: https://github.com/solana-labs/solana/blob/f1e2598baa80a0ad4e8450c8b5e3c5ab164f501c/ledger/src/blockstore.rs#L3789-L32814 - j标志指示使用bzip2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 solana-test-validator 中缺少交易历史记录 - Missing transaction history in solana-test-validator 无法在 Apple Silicon M1 上启动 solana-test-validator - Failed to start solana-test-validator on Apple Silicon M1 对solidity代码运行测试时出错 - Getting error while running test on the solidity code 获取“无法读取未定义的属性(读取‘连接’)”solana 钱包连接 - Getting "Cannot read properties of undefined (reading 'connect')" solana wallet connect 使用Docker在本地运行Hyperledger时出错 - Getting error while running Hyperledger locally with Docker 错误:自定义:solana 程序部署时的块哈希无效 - Error: Custom: Invalid blockhash when solana program deploy Solana 空投错误,需要帮助解决我的问题 - Solana airdrop error, need help to fix my problem 运行松露init命令时出现错误 - Getting an error while running truffle init command 在 solana 上传输 NFT 时交易失败:错误处理指令 0:自定义程序错误:0x1 - Transaction failing while transferring NFT on solana: Error processing Instruction 0: custom program error: 0x1 使用带有初始化项目的 aeproject test 命令时出现错误 - I'm getting an error using aeproject test command with initialized project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM