Questions tagged [error]
The error tag has no usage guidance.
110 questions
1
vote
1
answer
38
views
Run rpc node connection timed out Unable to determine the validator's public IP address
I'm trying to setting up a rpc node for Solana on a rented Hetzner Server.
I have followed the official documentation's guide https://docs.anza.xyz/operations/setup-a-validator here.
I have modified ...
0
votes
0
answers
6
views
Getting Block Height Exceed Errors when try to mint NFT using metaplex
I am trying to mint NFTs using metaplex, but I am getting errors - "Block height exceeded".
I tried to add priority fee to tx, but at metaplex functions I cannot find that option.
How to ...
2
votes
1
answer
27
views
How to resolve error code":-32010,"message":"2UR.... excluded from account secondary indexes; this RPC method unavailable for key
I have set up a Solana full node with a configuration of 1TB memory for eypc 64 core.
At the same time, I also opened the account index program id spl token mint spl token owner
But when using ...
0
votes
1
answer
575
views
How do I determine the cause of an "Unknown instruction error"?
I don't know why i cannot move my grass token from Phantom to ByBit wallet, when i do it show me this problem:
Program Error: "Instruction #4 Failed - Unknown instruction error"
It is not ...
1
vote
1
answer
45
views
Error "Reached maximum depth for account resolution" when the length the String parameter is too long. When its short it works fine
Im writing a test function to check if a String passed is too long and if so it throws my custom error "NameTooLong". Everything works as expected on smaller/medium strings. However ...
1
vote
1
answer
55
views
Anchor build dependency issue
anchor build
error: not a directory: '/home/emperor/.local/share/solana/install/releases/1.18.18/solana-release/bin/sdk/sbf/dependencies/platform-tools/rust/lib'
I have tried to install the latest ...
1
vote
0
answers
13
views
error in anchor test
Found a 'test' script in the Anchor.toml. Running it as a test suite!
Running test suite: "/home/emperor/solana-txn-mod1/hello-solana/Anchor.toml"
Usage Error: The nearest package directory (...
0
votes
1
answer
63
views
Anchor tests failing
I just finished following along with Project 3, which includes actions and blinks to the peanut butter voting project. At the very end, we had to anchor clean and anchor test to have it clear its ...
0
votes
0
answers
22
views
Ledger stax & solana cli [Error: no device found]
I am using Ledger Nano X and everything works fine with the CLI tool. However, I have purchased a new Ledger Stax and the Solana CLI does not support it. When trying to execute solana-keygen pubkey ...
1
vote
1
answer
108
views
Message: Invalid params: unknown variant `single`, expected one of `processed`, `confirmed`, `finalized
I'm totally new to solana so I'm following the 2023 bootcamp. Episode 1 has a repo you follow with the devrel, which starts with quest 1. He runs it fine in the video but I've encountered several ...
2
votes
5
answers
966
views
avm install latest fails
Using Windows 11, I get this error when trying to use avm install latest
error[E0282]: type annotations needed for `Box<_>`
--> C:\Users\username\.cargo\registry\src\index.crates.io-...
1
vote
1
answer
69
views
Error: AnchorError occurred. Error Code: InstructionDidNotDeserialize. Error Number: 102. The program could not deserialize the given instruction
Hi I am creating a split bill and pay smart contract. I have written a small piece of code to begin with here it is:
use anchor_lang::prelude::*;
declare_id!("...
1
vote
0
answers
64
views
Anchor tests failing and not giving logs
I just finished following along project 3 where we include actions and blinks to the peanut butter voting project. At the very end, we had to anchor clean and anchor test to have it clear its cache ...
0
votes
0
answers
5
views
Conversion to transfer
Why is it that after I exchange my meme tokens for sol, the sol is always sent to some other address that doesn't belong to me?
My address has become a forwarding address.
0
votes
1
answer
678
views
Error When Creating SPL Token Account: Incorrect Program ID for Instruction Body:
I'm new to Solana development and have encountered an issue while trying to create an SPL token account on the devnet using the SPL Token CLI.
After creating a new SPL token, I attempted to create a ...
0
votes
0
answers
28
views
Error while testing code
Here is my solana todolist program
#![allow(clippy::result_large_err)]
use anchor_lang::prelude::*;
declare_id!("6u7Wzgps8X8Qjd5AaqaF5mpKdfZzSfNt2MaPjATf2Z6Y");
#[program]
pub mod ...
3
votes
2
answers
451
views
InitializeMint fails with 'invalid account data for instruction'
I am trying to use the "createInitializeMintInstruction()" using JS to create a token. The problem is when executing, it throws an error. Concretely this one:
Transaction simulation failed: ...
1
vote
0
answers
602
views
Bypass TransactionExpiredBlockheightExceededError
So, i've been trying to send multiple addresses my token using Javascript (@solana/web3.js and @solana/spl-token).
Sadly, the same error occurs multiple times, ...
0
votes
1
answer
32
views
Where can I deploy a Program MVP without having to pay?
We created a project to be deployed but we are stuck with deploying it to the mainnet, like we are unable to fund our wallets with sol and if we want to buy we have to complete EDD, like wth I don't ...
1
vote
2
answers
404
views
i get error ERROR solana_net_utils] Received no response at tcp/8899, check your port configuration: timed out waiting on receive operation
I received this error while starting the validator node, I checked and these ports are not in use. Does anyone know how to fix this error?
11
votes
5
answers
4k
views
'blockstore error' when starting solana-test-validator on MacOS 13.0.1
I am trying to start solana-test-validator, but it closes unexpectedly with blockstore error.
Error: failed to start validator: Failed to create ledger at test-ledger: blockstore error
How can I fix ...
0
votes
0
answers
22
views
Money stuck, wallet wont sign tx or allow me to get keys
I just opened a new wallet using phantom. Depositing some money to buy a coin, went on raydium, error. tried on jup, error. when i realized it wasnt allowing any transactions to go through citing &...
1
vote
1
answer
532
views
Solana Program failing "An account required by the instruction is missing"
I am currently playing around with Solana Playground and have come across an error that I can not seem to fix.
I have written a program for native Solana in Rust with a little help from GPT4 which has ...
3
votes
1
answer
1k
views
Getting custom program error 0x16 on Raydium after burning LP tokens
I created a liquity pool on Raydium a few days ago and scheduled the pool to be launched 3 days from now. Yesterday I burned the LP (on Sol-incinerator) and since then I noticed there are a lot of ...
0
votes
1
answer
258
views
getRecentPrioritizationFees is not a function ; solana web3js
I am not able to figure out what is going on.. I am using @solana/web3.js version 1.89.1 (latest) . What am I doing wrong here? Based on this doc, the usage seems to be fine
Anyone?
Here is my code ...
1
vote
1
answer
315
views
Raydium Swap InvalidInstructionData
I am getting InvalidInstructionData error when trying to execute a raydium SwapBaseIn Instruction. I am using GoLang to construct the swap transaction. I am getting all the parameters from an other ...
1
vote
1
answer
7k
views
transaction results in an account (0) without insufficient funds for rent
I am experiencing an error with Solana Phantom Wallet while using the wormhole.
transaction results in an account (0) without insufficient funds for rent
My balance contains 1000usdc and I also have ...
1
vote
1
answer
64
views
How do I fix this error? PLEASE HELP ME
[2024-07-18T18:51:20.140305625Z ERROR solana_metrics::metrics] datapoint: panic program="validator" thread="main" one=1i message="panicked at /var/lib/buildkite-agent/builds/...
0
votes
1
answer
587
views
Solana Airdrop Devnet issue
I am brand new and am having issues. I have created a file system wallet via CLI, my config is set to devnet and the wallet shows up, my balance is 0. I have requested an airdrop of 1 with the ...
1
vote
0
answers
23
views
Bitcoin transfer error
I sent BTC to website for purchase and I switched to calculate transfer in USD which was $150 and withdraw show. .000281 Sats but it withdrew .08 so like $5,300 USD and shows the remainder going back ...
4
votes
1
answer
3k
views
error: package `solana-program v1.18.1` cannot be built because it requires rustc 1.72.0 or newer [duplicate]
I tried setting up an Anchor project on my MacBook with an ARM processor, but I encountered an error. Here is step by step that i took
% anchor init testproject
Only x86_64 / Linux distributed in NPM ...
1
vote
1
answer
59
views
Missing `convert_endianness` in module `solana_program::alt_bn128::compression::prelude`
I am attempting to utilize altbn254 syscalls with Solana (1.17.14), but cannot compile due to an unresolved import of convert_endianness.
This is my cargo.toml
[package]
name = "program"
...
1
vote
1
answer
2k
views
Program Error: "Instruction #4 Failed"
I sent usdc from binance to backpack wallet and got Program Error: "Instruction #4 Failed"
https://solscan.io/tx/...
6
votes
1
answer
829
views
How to reduce stack space usage for Anchor programs?
It's common to run into these errors during compile time
Stack offset of 6344 exceeded max offset of 4096 by 2248 bytes, please minimize large stack variables
or these errors during run time
Program ...
0
votes
0
answers
147
views
SOLANA SNIPER BOT
hi i am building a solana sniper bot using typescript in node.js using the ES modules in visual studio code environment. Its not working.
its finding it difficult to compile the ts script
it is ...
0
votes
1
answer
91
views
Anchor installation stops with error: (signal: 9, SIGKILL: kill) on random crates
Today i tried installing Anchor and it was stopping on random crates with a SIGKILL error 9.
I was using this command
cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.0 anchor-cli --...
3
votes
1
answer
410
views
'please minimize large stack variables' error on building hello_world
I am trying to run hello_world example and I'm getting this error during building:
$ cargo build-bpf
Error: Function
ZN112$LT$solana_program..instruction..InstructionError$u20$as$u20$...
1
vote
2
answers
291
views
How to debug error {"code":-32603} on solana
I learned solana via soldev.app and I tried to pull source code from: https://github.com/Unboxed-Software/solana-movie-program.git (branch: solution-add-comments) and deploy to testnet.
After ...
3
votes
2
answers
2k
views
What is the likely cause of the error `The program could not deserialize the given instruction`
I ran into this error message when running a transaction, any idea what could be going wrong?
errorLogs: [
'Program log: AnchorError occurred. Error Code: InstructionDidNotDeserialize. Error ...
1
vote
1
answer
183
views
Error minting token on Devnet
Noob here, in a bootcamp. Gettin stuck with this error. I have set configuration successfully to Devnet. But then things like requesting Airdrop from Devnet or spl-token create-token are giving me the ...
1
vote
2
answers
258
views
You cannot/should not initialize the payer account as a program account
I'm creating a basic staking contract and just trying to initialize the pool where the reward tokens will be held. I'm receiving the following error:
TryingToInitPayerAsProgramAccount. Error Number: ...
1
vote
2
answers
287
views
Error processing Instruction 0: custom program error: 0x0
My program is to do an English NFT auction, it uses Anchor, and I'm stuck on the error Error processing Instruction 0: custom program error: 0x0 when I try to send my the transaction to initialize the ...
0
votes
0
answers
96
views
I cant use my sol in my wallet
There’s a smart contract in the wallet to send any funds out of the wallet , I asked a different dev to do it for me because the wallet was compromised , what I can do boys? I cant send my sol it's ...
0
votes
0
answers
80
views
MY NODE.JS SOLANA SNIPER BOT
please how do i fix this error
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
{"level":"error","message":"Error initializing bot: Non-...
0
votes
2
answers
408
views
Can't mint any token 2022? I tried minting 60,000,000 tokens but only 18 million were generated and when I try minting more I get an error
Error: Client(Error { request: Some(SendTransaction), kind: RpcError(RpcResponseError { code: -32002, message: "Transaction simulation failed: Error processing Instruction 0: custom program error:...
0
votes
1
answer
198
views
How can I initialize a second wallet on Anchor tests?
I would like to test that a public key that doesn't own a PDA can't alter its data. I'm doing as follows:
Generate a new keypair for user2 (user1 is the pubkey of the local wallet on Anchor's ...
0
votes
1
answer
464
views
solana$ ./cargo build => "error: linking with `cc` failed: exit status: 1"
I try to install the Solana chain locally but when I execute the ./cargo build command, i fall on this fail: error: linking with `cc` failed: exit status: 1
But if I do a ./cargo build --release i ...
0
votes
1
answer
134
views
Block height exceeded - Wormhole - Receiving WETH in Solflare wallet
Sorry if the question has already be submited, but I couldn't find any answer and I'm a bit lost.
I can't finalize the transaction to receive WETH from Wormhole (portalbridge.com) on my Solflare ...
0
votes
1
answer
304
views
getProgramAccounts - error when calling
Good day to all.
I encountered this problem.
When I call getProgramAccounts I don't get a response but an error.
Tell me, maybe I’m doing something wrong?
My task is to get a list of tokens - am I ...
0
votes
0
answers
83
views
Transaction fails when attempting to initialize an auction program using Anchor
I've deployed a program to devnet that lets me create English auctions, and I'm trying to create an auction from my next.js frontend. This is the program I'm using.
The process I'm following is ...