Open ouoabcde opened 1 month ago
[2024-05-22T05:35:05.462099000Z WARN solana_ledger::blockstore_db] Unable to detect Rocks columns: Error { message: "IO error: No such file or directory: While opening a file for sequentially reading: .anchor/test-ledger/rocksdb/CURRENT: No such file or directory" }
You might want to add extra startup time in Anchor.toml
:
[test]
startup_wait = 10000
If that doesn't work, you can start the test validator with solana-test-validator
, and run the tests with anchor test --skip-local-validator
.
startup_wait setting didn't work, but anchor test --skip-local-validator
works.
Thank you :)
By default, MacOS includes BSD tar, but solana-test-validator requires GNU tar. To install GNU tar, use Homebrew:
brew install gnu-tar
Then, add the following line to your ~/.zshrc
file:
export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"
This will ensure that the GNU tar executable is in your system's PATH, allowing solana-test-validator to function correctly.
By default, MacOS includes BSD tar, but solana-test-validator requires GNU tar. To install GNU tar, use Homebrew:
brew install gnu-tar
Then, add the following line to your
~/.zshrc
file:export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"
This will ensure that the GNU tar executable is in your system's PATH, allowing solana-test-validator to function correctly.
Hello @dividenconquer, I've tried your suggestion, but it's occurring same error.
export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"
thanks this works well!
I'm encountering error when trying to run anchor test. Error is like below.
This is
.anchor/test-ledger/test-ledger-log.txt
file content.And here's
.anchor/test-ledger/validator.log
for the reference.My anchor version is 0.30.0, solana-cli version is 1.18.14