Questions tagged [solana-test-validator]
The solana-test-validator tag has no usage guidance.
73
questions
0
votes
2
answers
40
views
Duplicate slot : At this point manual intervention is needed to make progress
Pruning expired primary index 0 up to slot 0 (max requested: 248834748)
thread 'solReplayStage' panicked at 'We have tried to repair duplicate slot: 248834747
more than 10 times and are unable to ...
2
votes
2
answers
38
views
Unable to run solana Hello World program in WSL
I have been following Josh's DevBox video to get started with Solana. In WSL environment, I did all the process, but at the end while executing npm run start, it comes up with Segmentation Fault.
Any ...
1
vote
0
answers
21
views
illegal hardware instruction solana-test-validator
When running solana-test-validator on terminal I got this error.
shivangrawat@shivangs-MacBook-Air solana % solana-test-validator
--faucet-sol argument ignored, ledger already exists
Ledger location: ...
0
votes
1
answer
77
views
failed: Invoked an instruction with data that is too large (12884932884 > 10240)'
failed: Invoked an instruction with data that is too large (12884932884 > 10240)'
i have this error when i try run test in my anchor program, but this only using local validator when i try using ...
2
votes
1
answer
33
views
How to clone metaplex metadata program to use with solana-test-validator
How do you set up solana-test-validator with the metaplex metadata program to run tests locally?
0
votes
0
answers
21
views
How can i generate my stake account?
I staked some Solanas in my trusty wallet. On previous occasions it appeared in the wallet itself, but not this time. As per the transaction details my Solana has been transferred to another new ...
2
votes
0
answers
25
views
Why doesnt solana-program-test work with VersionedTransaction?
Solana version = 1.16.8
rustc -V = 1.69.0
solana-cli = 1.16.8
The transaction will process successfully if it is type Transaction but not if it is type VersionedTransaction.
I need to use a ...
1
vote
1
answer
20
views
what tx_count means in bench-tps.sh?
I've a questions, for
NDEBUG=1 ./multinode-demo/bench-tps.sh --tx_count 50000
what is tx_count ? what happens if I increment or decrement this value?
Because by default is 50000 but in the webpage ...
5
votes
1
answer
32
views
Automatically include my Solana program in local validator?
Is it possible to start a local validator with my Solana program already deployed?
Or do I have to do 2 separate commands? One first starting the validator, another for deploying?
1
vote
1
answer
41
views
Avoid DeadlineExceeded in BPF tests
It seems that as the number of BPF tests in your program grows, the likelihood of encountering RpcError(DeadlineExceeded) errors increases as well. While using the warp_to_slot function on the ...
3
votes
1
answer
57
views
test validator failed to start: blockstore error (on ubuntu)
While trying to run the test validator inside a ubuntu based docker container, I keep getting an error while trying to run the test validator.
The error message I get when I try to run the solana-test-...
1
vote
2
answers
48
views
Computational Units used by program are variable
I have recently noticed that some of my tests were performing close to max computation units and would exceed 200,000 units used on some runs but not on others despite the tests having the same layout ...
3
votes
2
answers
125
views
How to upgrade the solana version?
I checked the solana project for a while and found that the repository is being upgraded continuously all the time. As blockchain is a state replicator machine, the validator project is already ...
0
votes
0
answers
23
views
How to run a multi nodes solana cluster in my local server?
I want to run a multi nodes solana cluster in my local server, for example, a bootstrap validator with rpc port 8899 and web socket port 8900, and then an additional validator with rpc port 8901 and ...
2
votes
2
answers
124
views
How can an account ever allocate 10mb if the heap size is only 32kb?
I've an account like this:
#[account]
#[derive(Default, InitSpace)]
pub struct Blacklist {
pub access_controller: Pubkey,
#[max_len(318)] // that touches realloc limit 10KB
...
2
votes
1
answer
43
views
Solana Node syncing issue
I have setup a solana node on my ubuntu server , I am using devnet Url in my solana config file , on cli it is showing correct block-height transactions-count and everything is working according to ...
3
votes
1
answer
165
views
Solana-Test-Validator not working
I am currently trying to learn the basics of Solana Smart Contracts and therefore tried the hello world program. Because I am on Windows, I downloaded Ubuntu on WSL 2. I downloaded Solana-CLI v1.14.18 ...
1
vote
1
answer
42
views
Solana bootstrap-validator cannot run as expected when create a local cluster
I follow the instructions of Benchmark a Cluster (https://docs.solana.com/cluster/bench-tps). After I executed this line: NDEBUG=1 ./multinode-demo/bootstrap-validator.sh, according to the ...
0
votes
0
answers
21
views
solana-test-validator RocksDB problem
I'm using solana-test-validator and over time the test-ledger folder starts to weigh a lot. I wanted to know how I could reduce that weight or if it can be compressed
2
votes
1
answer
32
views
My hard drive is full when running solana-test-validator
My hard drive is full when running solana-test-validator. I run it on wsl2 on window. Has anyone had this problem and how to fix it? Thanks
3
votes
1
answer
38
views
Where can I find ic_msg logs?
I’m writing a native program and I’m using the ic_msg macro with the solana_test_validator binary, but I can’t seem to find the log messages. Where do the ic_msg logs go? Do I need to configure ...
4
votes
2
answers
64
views
How can I tell securely which cluster I am connected to?
I'd like my wallet to be able to tell securely which cluster I am connected to (mainnet-beta, testnet, devnet), from on-chain information.
I see a few opportunities with getClusterNodes:
From a first ...
0
votes
1
answer
42
views
Mac M1 Max `anchor test --skip-local-validator` infinite looop
I'm running solana v1.13.7 locally for solana-test-validator on my Mac M1 Max (13.3).
You can see my left terminal has the local test validator is running on port 8899.
The right side, I am running ...
1
vote
1
answer
96
views
Illegal instruction (Mac M1 Max 13.3)
I've scoured discord and stack exchange but haven't found any solution that works for me.
When I run a local validator (Solana test validator built from source), I get error:
Ledger location: test-...
0
votes
0
answers
19
views
How do you start a local validator using a historical snapshot?
How to start a local validator from a historical snapshot (eg snapshot-1234-xxxx.tar.zst)?
My goal is to be able to inspect the state of that snapshot.
3
votes
1
answer
193
views
Can't run Anchor test with the basic project
I just created an Anchor project with anchor init and tried to run anchor test but it didn't work. I always get the error:
Unable to get latest blockhash. Test validator does not look started. Check ....
0
votes
0
answers
71
views
How to Run a Solana Test Network
I'm trying to set up a test network using the scripts provided in this Solana git repository. I've got the AWS CLI configured as I want to run the network as an EC2 instance. I run the ./ec2.sh create ...
1
vote
1
answer
208
views
SOL transfer fee calculation
I experience a strange behavior of the SOL transfer.
I use Typescript @solana/web3.js client that do SOL transfer from local wallet filled with SOLs automatically at solana-test-validator start. Then ...
3
votes
1
answer
74
views
What are the primary differences between solana-validator and solana-test-validator?
There seems to be two different validator binaries: solana-validator in validator/src/main.rs, and solana-test-validator in validator/src/bin/solana-test-validator.rs. What are the main differences ...
0
votes
1
answer
40
views
How to identify the mechanism that makes the program read only data (content of .rodata section) starting address to be 0x100000000 during execution?
Quoting the Solana documentation [1];
The virtual address memory map used by Solana BPF programs is fixed and laid out as follows
Program code starts at 0x100000000
Stack data starts at 0x200000000
...
2
votes
1
answer
161
views
How to fix "ELF error: Relative jump out of bounds at instruction" on example-helloworld deploy (target sbf-solana-solana cpu sbfv2)?
We are using the latest Solana monorepo [1] and our goal is to run the Solana example-helloworld [2] Using sbf-solana-solana target and sbfv2 CPU.
First, we patched programs/bpf_loader/src/syscalls/...
0
votes
1
answer
209
views
Hello there, I'm wanting to setup a Solana RPC node, could anyone please tell me where I can find docs or any helpful material?
I was using Quicknode in my site, although there is a huge traffic incoming & I think Quicknode wont be able to sustain.
Would like to create my own node endpoint.
0
votes
0
answers
97
views
Solana-test-validator rejecting airdrop
I am running local instance of solana-test-validator and testing it with Solana CLI.
Solana CLI was configured to use localhost cluster. I generated wallet, set it as default and am trying to airdrop ...
1
vote
1
answer
55
views
How to fix 'ELF error: Dynamic stack frames detected but not enabled' while running the Solana helloworld example C program using SBF v2 processor?
using solana sdk 1.14.11 [1], my goal is to execute the Solana helloworld example C program [2] using the SBF v2 processor [3] on the local solana-test-validator.
When deploying the program locally, ...
2
votes
1
answer
36
views
Run a certain command when Solana test validator starts
Good day! I am currently running a program where I wish to create an SPL token and utilize it on my frontend. However, when I start up the test validator, I wish to also be able to run a file that ...
4
votes
1
answer
262
views
How to shutdown a local test validator?
TLDR; How to shutdown a solana-test-validator running in the background?
A test I'm running starts a validator with the command
solana-test-validator --reset \
-q \
--mint ...
4
votes
1
answer
58
views
RPC method getTransaction fails on localhost using versioned Transaction
I'm not sure why this error occurs when I'm trying to getTransaction.
curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0&...
2
votes
1
answer
31
views
Does testing through ProgramTestContext have any disadvantage over `solana-test-validator`?
solana-test-validator is basically a full validator run locally.
ProgramTestContext looks more light-weight.
Does testing through ProgramTestContext skip any checks compared to solana-test-validator?
0
votes
1
answer
28
views
Is it possible to do getProgramAccounts using ProgramTestContext?
I am trying to speed up my tests by switching from using a local test validator to using ProgramTestContext.
This will let me execute multiple tests in parallel where each one has its own instance of ...
3
votes
1
answer
180
views
Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL failed: incorrect program id for instruction
i deployed a solana native program on the local test validator and writing a small python script to test it, my python script that's causing the error
from solana.rpc.api import Client
from spl.token....
0
votes
2
answers
171
views
How to use solana-ledger-tool to modify genesis.bin?
I'm trying to modify the genesis.bin parameters but there isn’t specific documentation.
But I can see modify-genesis as an available sub-command but can’t figure out how to use it to modify Cluster ...
4
votes
1
answer
120
views
solana-test-validator error Illegal instruction: 4 after install solana 1.14.10
I am trying to update solana to 1.14.10, but after install it, solana-test-validator is not working. Here is error.
Notice! No wallet available. solana airdrop localnet SOL after creating one
Ledger ...
3
votes
1
answer
99
views
How can I start local validator using mainnet snapshot
Can I start a local test-validator using data from mainnet like downloading FSS and ISS from mainnet node.
3
votes
2
answers
232
views
How to fix solana-test-validator Illegal instruction (core dumped) error even after building from source?
When running anchor test on a fresh project without any change, I got following error:
Unable to get recent blockhash. Test validator does not look started.
Check {} for errors. Consider increasing [...
3
votes
1
answer
72
views
How to clone all the account of a given slot?
How could I download all the accounts at a given slot. Like Snapshot of all the Solana accounts at a recent given slot
0
votes
1
answer
121
views
How to load some accounts with solana-test-ledger?
I'm trying to load account using solana-test-validator --account mock.json --ledger test-ledger but the error was
error: Found argument 'test-ledger' which wasn't expected, or isn't valid in this ...
5
votes
3
answers
1k
views
Can't start solana-test-validator on MacOS 13.0.1
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:...
0
votes
0
answers
42
views
Solana build error after twoxtx-setup.sh patch with 2x transaction size
Trying to test Confidential Transfers, so as i understand i need to use patched solana - https://github.com/solana-labs/solana-program-library/blob/master/token/twoxtx-setup.sh
But during building ...
1
vote
0
answers
48
views
solana-test-validator issues on Mac OS Ventura
I am getting the same issue outlined here with solana-test-validator on Mac OS Ventura. I'm on the correct runtime, I corrected the maxfiles limit error I got at first, now it seems to crash ...
3
votes
1
answer
50
views
How can I print solana logs with rust?
can anyone help me in this, i am trying to get Solana logs on vs code terminal but it is not showing.i tried with this command "solana logs --url localhost" but i did not get.may i know what ...