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

Docker - Apple Silicon M3: Illegal instruction #35628

Closed
mdomasevicius opened this issue Aug 16, 2024 · 1 comment
Closed

Docker - Apple Silicon M3: Illegal instruction #35628

mdomasevicius opened this issue Aug 16, 2024 · 1 comment
Labels
community Community contribution

Comments

@mdomasevicius
Copy link

Problem

I've been trying to run solana node locally via docker on M3 macbook pro using following command

docker run --name solana-node --platform linux/amd64 solanalabs/solana:v1.18.22

Note: I've added --platform linux/amd64 per troubleshooting but results did not change.
The output is:

$ docker run --name solana-node --platform linux/amd64 solanalabs/solana:v1.18.22                                                                                                                                                                                       [12:13:41]
solana-faucet 1.18.22 (src:b286211c; feat:4215500110, client:SolanaLabs)
solana-genesis 1.18.22 (src:b286211c; feat:4215500110, client:SolanaLabs)
solana-keygen 1.18.22 (src:b286211c; feat:4215500110, client:SolanaLabs)
solana-validator 1.18.22 (src:b286211c; feat:4215500110, client:SolanaLabs)
+ solana address
Error: No default signer found, run "solana-keygen new -o /root/.config/solana/id.json" to create a new one
+ echo Generating default keypair
Generating default keypair
+ solana-keygen new --no-passphrase
Generating a new keypair
Wrote new keypair to /root/.config/solana/id.json
====================================================================================
pubkey: GgLepnKMRqtcFB95YdhBmV4J2tk8RJrGxpNLDotPrE5q
====================================================================================
Save this seed phrase to recover your new keypair:
pupil hint village crush barrel provide insect double enforce leopard luggage parade
====================================================================================
+ validator_identity=/usr/bin/config/solana-run/validator-identity.json
+ [[ -e /usr/bin/config/solana-run/validator-identity.json ]]
+ solana-keygen new --no-passphrase -so /usr/bin/config/solana-run/validator-identity.json
Wrote new keypair to /usr/bin/config/solana-run/validator-identity.json
+ validator_vote_account=/usr/bin/config/solana-run/validator-vote-account.json
+ [[ -e /usr/bin/config/solana-run/validator-vote-account.json ]]
+ solana-keygen new --no-passphrase -so /usr/bin/config/solana-run/validator-vote-account.json
Wrote new keypair to /usr/bin/config/solana-run/validator-vote-account.json
+ validator_stake_account=/usr/bin/config/solana-run/validator-stake-account.json
+ [[ -e /usr/bin/config/solana-run/validator-stake-account.json ]]
+ solana-keygen new --no-passphrase -so /usr/bin/config/solana-run/validator-stake-account.json
Wrote new keypair to /usr/bin/config/solana-run/validator-stake-account.json
+ [[ -e /usr/bin/config/ledger/genesis.bin ]]
+ [[ -e /usr/bin/config/ledger/genesis.tar.bz2 ]]
+ ./fetch-spl.sh

Available SPL programs:
-rw-r--r-- 1 root root 106896 Aug  9 00:19 spl_associated-token-account-1.1.2.so
-rw-r--r-- 1 root root 191328 Aug  9 00:19 spl_feature-proposal-1.0.0.so
-rw-r--r-- 1 root root  17072 Aug  9 00:19 spl_memo-1.0.0.so
-rw-r--r-- 1 root root  74800 Aug  9 00:19 spl_memo-3.0.0.so
-rw-r--r-- 1 root root 518392 Aug  9 00:19 spl_token-2022-0.9.0.so
-rw-r--r-- 1 root root 133352 Aug  9 00:19 spl_token-3.5.0.so

solana-genesis command-line arguments (spl-genesis-args.sh):
--bpf-program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA BPFLoader2111111111111111111111111111111111 spl_token-3.5.0.so --upgradeable-program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb BPFLoaderUpgradeab1e11111111111111111111111 spl_token-2022-0.9.0.so none --bpf-program Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo BPFLoader1111111111111111111111111111111111 spl_memo-1.0.0.so --bpf-program MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr BPFLoader2111111111111111111111111111111111 spl_memo-3.0.0.so --bpf-program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL BPFLoader2111111111111111111111111111111111 spl_associated-token-account-1.1.2.so --bpf-program Feat1YXHhH6t1juaWF74WLcfv4XoNocjXA6sPWHNgAse BPFLoader2111111111111111111111111111111111 spl_feature-proposal-1.0.0.so
+ [[ -r spl-genesis-args.sh ]]
++ cat spl-genesis-args.sh
+ SPL_GENESIS_ARGS='--bpf-program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA BPFLoader2111111111111111111111111111111111 spl_token-3.5.0.so --upgradeable-program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb BPFLoaderUpgradeab1e11111111111111111111111 spl_token-2022-0.9.0.so none --bpf-program Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo BPFLoader1111111111111111111111111111111111 spl_memo-1.0.0.so --bpf-program MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr BPFLoader2111111111111111111111111111111111 spl_memo-3.0.0.so --bpf-program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL BPFLoader2111111111111111111111111111111111 spl_associated-token-account-1.1.2.so --bpf-program Feat1YXHhH6t1juaWF74WLcfv4XoNocjXA6sPWHNgAse BPFLoader2111111111111111111111111111111111 spl_feature-proposal-1.0.0.so'
+ solana-genesis --hashes-per-tick sleep --faucet-lamports 500000000000000000 --bootstrap-validator /usr/bin/config/solana-run/validator-identity.json /usr/bin/config/solana-run/validator-vote-account.json /usr/bin/config/solana-run/validator-stake-account.json --ledger /usr/bin/config/ledger --cluster-type development --bpf-program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA BPFLoader2111111111111111111111111111111111 spl_token-3.5.0.so --upgradeable-program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb BPFLoaderUpgradeab1e11111111111111111111111 spl_token-2022-0.9.0.so none --bpf-program Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo BPFLoader1111111111111111111111111111111111 spl_memo-1.0.0.so --bpf-program MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr BPFLoader2111111111111111111111111111111111 spl_memo-3.0.0.so --bpf-program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL BPFLoader2111111111111111111111111111111111 spl_associated-token-account-1.1.2.so --bpf-program Feat1YXHhH6t1juaWF74WLcfv4XoNocjXA6sPWHNgAse BPFLoader2111111111111111111111111111111111 spl_feature-proposal-1.0.0.so
[2024-08-16T09:13:44.196293422Z INFO  solana_ledger::blockstore] Maximum open file descriptors: 1048576
[2024-08-16T09:13:44.196927839Z INFO  solana_ledger::blockstore] Opening blockstore at "/usr/bin/config/ledger/rocksdb"
[2024-08-16T09:13:44.200842089Z 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: /usr/bin/config/ledger/rocksdb/CURRENT: No such file or directory" }
[2024-08-16T09:13:44.353799339Z INFO  solana_ledger::blockstore] Opening blockstore done; blockstore open took 156ms
/usr/bin/solana-run.sh: line 89:    35 Illegal instruction     solana-genesis --hashes-per-tick sleep --faucet-lamports 500000000000000000 --bootstrap-validator "$validator_identity" "$validator_vote_account" "$validator_stake_account" --ledger "$ledgerDir" --cluster-type "$SOLANA_RUN_SH_CLUSTER_TYPE" $SPL_GENESIS_ARGS $SOLANA_RUN_SH_GENESIS_ARGS
FAIL

Same docker command (without --platform) works ok on my x86 machine.

Proposed Solution

Inquire github issue section for help 😿

@mdomasevicius mdomasevicius added the community Community contribution label Aug 16, 2024
Copy link
Contributor

This repository is no longer in use. Please re-open this issue in the agave repo: https://github.com/anza-xyz/agave

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

No branches or pull requests

1 participant