Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solana-test-validator Error #2636

Open
hon94csl opened this issue Aug 16, 2024 · 3 comments
Open

solana-test-validator Error #2636

hon94csl opened this issue Aug 16, 2024 · 3 comments

Comments

@hon94csl
Copy link

solana-test-validator Error

I am running solana-test-validator on a mac m2 macOs 13.2.1 system with the following error.

Error: failed to start validator: Failed to create ledger at test-ledger: io error: Error checking to unpack genesis archive: Archive error: extra entry found: "._genesis.bin" Regular

the validator log:

[2024-08-16T16:51:33.907175000Z INFO  solana_test_validator] agave-validator 1.18.20 (src:ba9bf247; feat:4215500110, client:Agave)
[2024-08-16T16:51:33.907289000Z INFO  solana_test_validator] Starting validator with: ArgsOs {
        inner: [
            "solana-test-validator",
        ],
    }
[2024-08-16T16:51:33.907402000Z WARN  solana_perf] CUDA is disabled
[2024-08-16T16:51:33.913018000Z INFO  solana_faucet::faucet] Faucet started. Listening on: 0.0.0.0:9900
[2024-08-16T16:51:33.913036000Z INFO  solana_faucet::faucet] Faucet account address: GyzZKZiqFscxPqZrjeakH5jkmskfK5UViRAWnZ1hozFQ
[2024-08-16T16:51:33.913779000Z INFO  agave_validator::admin_rpc_service] started admin rpc service!
[2024-08-16T16:51:33.915601000Z INFO  solana_test_validator] Feature for 41tVp5qR1XwWRt5WifvtSQyuxtqQWJgEK8w91AtBqSwP deactivated
[2024-08-16T16:51:33.917386000Z INFO  solana_ledger::blockstore] Maximum open file descriptors: 1000000
[2024-08-16T16:51:33.917437000Z INFO  solana_ledger::blockstore] Opening blockstore at "test-ledger/rocksdb"
[2024-08-16T16:51:33.917787000Z 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: test-ledger/rocksdb/CURRENT: No such file or directory" }
[2024-08-16T16:51:33.986426000Z INFO  solana_ledger::blockstore] Opening blockstore done; blockstore open took 68ms
[2024-08-16T16:51:33.990678000Z INFO  solana_metrics::metrics] metrics disabled: environment variable not found
[2024-08-16T16:51:33.990726000Z INFO  solana_metrics::metrics] datapoint: shred_insert_is_full total_time_ms=0i slot=0i last_index=31i num_repaired=0i num_recovered=0i
[2024-08-16T16:51:34.048757000Z INFO  solana_accounts_db::hardened_unpack] Extracting "test-ledger/genesis.tar.bz2"...

What to do about this problem?

@olma2077
Copy link

olma2077 commented Aug 25, 2024

Confirm the problem on MacOS 14.5 and several builds of solana-cli (1.18.18, 1.18.20, 1.18.22) with starting solana-test-validator.
The root casue seems to be in the following:

  • during validator initialization, genesis folder with several files is created which are then packed into *.tar.bz2.
  • meanwhile, MacOS (presumable, Spotlight service) creates system ._* files which are mirroring those created, ._genesis.bin in particular.
  • later solana-test-validator validates(?) the archive, discovers some unexpected files and crashes.

Possible solution would be to completely ignore any dotfiles or (if they are expected) at least MacOS-specific ._* files and don't include them into the archive in the first place.

P.S. As a workaround run validator as COPYFILE_DISABLE=1 solana-test-validator or add export COPYFILE_DISABLE=1 in your shell *rc, this will prevent system from creating ._* files and allow validator to start normally.

@zilayo
Copy link

zilayo commented Sep 14, 2024

same issue and proposed fix - #2838

@steviez
Copy link

steviez commented Oct 10, 2024

Can you please try with a v2.0 version ? I believe the issue has been resolved since v1.18.

Namely, v2.0 incorporates this change which set COPYFILE_DISABLE in the environment that is used for the shell out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@olma2077 @steviez @hon94csl @zilayo and others