Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Can't start solana-test-validator on MacOS 13.0.1 #28899

Closed
bezrazli4n0 opened this issue Nov 20, 2022 · 6 comments
Closed

Can't start solana-test-validator on MacOS 13.0.1 #28899

bezrazli4n0 opened this issue Nov 20, 2022 · 6 comments
Labels
community Community contribution

Comments

@bezrazli4n0
Copy link

bezrazli4n0 commented Nov 20, 2022

Problem

Trying to start solana-test-validator, but it closes unexpectedly without meaningful errors.

  • Logs:
[2022-11-20T20:56:59.883887000Z INFO  solana_test_validator] solana-validator 1.15.0 (src:devbuild; feat:3018528013)
[2022-11-20T20:56:59.884074000Z INFO  solana_test_validator] Starting validator with: ArgsOs {
        inner: [
            "/Users/cat/Desktop/solana/target/debug/solana-test-validator",
        ],
    }
[2022-11-20T20:56:59.884274000Z WARN  solana_perf] CUDA is disabled
[2022-11-20T20:56:59.892855000Z INFO  solana_faucet::faucet] Faucet started. Listening on: 0.0.0.0:9900
[2022-11-20T20:56:59.892912000Z INFO  solana_faucet::faucet] Faucet account address: J5JBJhxPtam1DMFutGZiRAaBU2ovBPe2gvo7GbqgXtyr
[2022-11-20T20:56:59.903481000Z INFO  solana_ledger::blockstore] Maximum open file descriptors: 1000000
[2022-11-20T20:56:59.903523000Z INFO  solana_ledger::blockstore] Opening database at "test-ledger/rocksdb"
[2022-11-20T20:57:00.131711000Z INFO  solana_ledger::blockstore] "test-ledger/rocksdb" open took 228ms
[2022-11-20T20:57:00.176898000Z INFO  solana_metrics::metrics] metrics disabled: SOLANA_METRICS_CONFIG: environment variable not found
[2022-11-20T20:57:00.177048000Z INFO  solana_metrics::metrics] datapoint: shred_insert_is_full total_time_ms=0i slot=0i last_index=3i num_repaired=0i num_recovered=0i
[2022-11-20T20:57:00.223536000Z INFO  solana_runtime::hardened_unpack] Extracting "test-ledger/genesis.tar.bz2"...
  • Error:
Error: failed to start validator: Failed to create ledger at test-ledger: blockstore error
  • OS: macOS 13.0.1
  • CPU: Apple M1 Pro
  • bzip2: 1.0.8
  • solana-test-validator: 1.13.6(also tried from latest master-commit)
  • tried to delete test-ledger folder and reboot system
  • tried to run test-validator from different directories(root, home, etc)
  • tried to compile from source
@bezrazli4n0 bezrazli4n0 added the community Community contribution label Nov 20, 2022
@steviez
Copy link
Contributor

steviez commented Nov 21, 2022

This is a duplicate of:
https://solana.stackexchange.com/questions/4258/getting-error-when-running-solana-test-validator

The latest comment there is from someone who was hitting same issue but got things to work for them. If that doesn't work for you, please continue discussion there

@steviez steviez closed this as completed Nov 21, 2022
@KirillLykov
Copy link
Contributor

@bezrazli4n0 could you post your question to stackexchange (with all the versions etc) because original post is missing this information. On mac 12.2 I could not reproduce (./validator/solana-test-validator)

@bezrazli4n0
Copy link
Author

Moved to solana stackexchange.
System reboot with test_ledger deletion doesn't work in my case :(

@KirillLykov @steviez

@bezrazli4n0 bezrazli4n0 changed the title Can't start solana-test-validator Can't start solana-test-validator on MacOS 13.0.1 Nov 22, 2022
@bezrazli4n0
Copy link
Author

bezrazli4n0 commented Dec 14, 2022

The problem was that macOS 13 had the wrong version of tar installed. You need to replace it with the homebrew version of gnu. Detailed instructions provided on stackexchange answer.

@fitzlf
Copy link

fitzlf commented Aug 26, 2023

  1. brew install gnu-tar
    the install path is: /usr/local/Cellar/gnu-tar/1.35/bin/gtar

  2. put this path in ~/.zshrc
    export PATH="/usr/local/Cellar/gnu-tar/1.35/bin/:$PATH"

  3. do replace system tar, run which tar to check.
    cd /usr/local/Cellar/gnu-tar/1.35/bin/
    cp gtar tar

@RdeWilde
Copy link

RdeWilde commented Dec 6, 2023

Might also related with the tar copyfiles issue as fixed here: #34176

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

No branches or pull requests

5 participants