Questions tagged [deploy]
The deploy tag has no usage guidance.
93 questions
0
votes
0
answers
9
views
Title: Unable to Build Anchor Project with SBF Tools: Issues with sbf-solana, bpfel-unknown-none, and Docker Compatibility
Description:
Hello everyone,
We’ve been struggling for hours trying to build an Anchor project on Solana. Despite numerous attempts, nothing seems to work, either locally or using Docker. Below are ...
0
votes
0
answers
13
views
Error:AccountNotFound with anchor deploy
hello when I write 'anchor deploy' in terminal, the result is
Deploying cluster: http://127.0.0.1:8899
Upgrade authority: /home/leejinho/.config/solana/id.json
Deploying program "voting"...
...
2
votes
1
answer
47
views
Unable to deploy solana smart contract on mainnet
Deploying the solana smart contract on devnet works well, but if I try to deploy the smart contract on mainnet it doesnt work.
I got this error so many times.
I tried it with so many solana versions.
...
2
votes
1
answer
23
views
zig programs on solana
I'm trying to deploy a solana zig program, but running into some ELF issues and was wondering if someone has any experience with that
here is my repo for reproduction https://github.com/anticode-dev/...
2
votes
0
answers
28
views
solana localnet - Error while upgrading a program loaded at genesis using `solana-test-validator`?
Is it possible to redeploy a program if it was loaded at genesis (specifically on solana-test-validator)?
Error while upgrading a program loaded at genesis
While doing some testing, I am experiencing ...
0
votes
0
answers
37
views
Anchor deploy failed from "insufficient funds"
I tried deploying a program on mainnet using anchor deploy and ran into a failed deployment due to "Account has insufficient funds for spend (6.62478552 SOL) + fee (0.004725 SOL)" even ...
1
vote
1
answer
79
views
anchor deploy does not work
I try to deploy my contract using anchor, but i get this error:
Error: RPC request error: cluster version query failed: error sending request for url (http://127.0.0.1:8899/): error trying to connect: ...
0
votes
0
answers
31
views
Solana program deployment always failed
I have tried to deploy my program into Solana Devnet. But I have never ever succeeded just with once execution for the deployment. Each time I have to recover the KEY, and deploy the program again. I ...
2
votes
1
answer
35
views
Can I reclaim SOL from PDA after I accidently close the program?
I deployed solana program and used it.
After that, I wanted to close that program and redeploy to another address.
So I closed program. But I forgot to reclaim SOL from the PDA associated with the ...
1
vote
1
answer
32
views
Can I recover my funds lost due to the deprecation of BPFLoader2 management instructions?
I was trying to deploy a Solana program and accidentally used Solana CLI 1.14.29 with the command solana deploy instead of solana program deploy. The deployment transactions failed with the following ...
1
vote
0
answers
13
views
Get adresses of tokens on solana
I want to get adresse of tokens on solana for the last week. I can get currantly created tokens, however I want to get all token adresse that was created during the week, how could I do that ?
1
vote
1
answer
43
views
How to verify written solana program buffer account data and uploaded program build file with checksum?
I'm attempting to verify if the file in the program buffer account matches the content of the build file. I used solana account to retrieve data from the buffer account, calculated the SHA sum, and ...
1
vote
0
answers
40
views
Error: Data writes to account failed: Custom error: Max retries exceeded while deployment
I am using QuickNode to manage the RPC Endpoint. The program was closed automatically from the BlockChain and when I try to deploy the same program, it shows me these errors:
1
vote
1
answer
122
views
Deploying program errors out with `Error: 184 write transactions failed`
I'm trying to deploy a solana program on devnet but it's erroring out with the message below.
*[main][~/Documents/crew/marketplace-contracts/target/deploy]$ solana program deploy soundwork_bid.so --...
3
votes
2
answers
143
views
solana program deploy error
An error message is reported when the following command is used to deploy the program on the devnet network:
solana program deploy ./target/deploy/study.so
Error message:
thread 'main' panicked at ...
1
vote
0
answers
84
views
Unable to deploy solana programs on devnet
after deploy on localnet successful,
run solana config set --url https://api.devnet.solana.com
and config Anchor.toml
[programs.devnet]
counter = "58MKv4J4uWugtVvxfN2zgoVvUWAXUNLx8Qw9GQbnY4i3&...
0
votes
1
answer
48
views
Anchor build: Error - Large stack variables
I am still getting these errors upon Anchor build despite others claiming it has been solved by simply upgrading to solana-cli versions 18.2.0 and higher.
Error: Function _ZN112_$LT$solana_program.....
0
votes
0
answers
27
views
Can't create Reserve for Token Lending's market
I am currently following the SLP Token Lending step by step (https://github.com/solana-labs/solana-program-library/blob/master/token-lending/cli/README.md) in order to deploy my own lending system for ...
0
votes
1
answer
43
views
How to pull all blocks from the genesis block to the local?
Now I need to do traceability business, I need pull all blocks from the genesis block to the local. May I ask if I need to build a validator node? If so, what params should I add?
right now I reserved ...
0
votes
1
answer
56
views
'Invalid account data for instruction' with Deploying to Mainnet Using Playground
I am deploying a program using Playground. The same account and code run perfectly on the devnet. However, when deploying to the mainnet, it fails at a certain stage with the following error:
error:
...
2
votes
1
answer
439
views
Got error "account data too small for instruction" when run Anchor deploy?
Sometimes I got this error when deploy program with running "anchor deploy":
Error: Deploying program failed: RPC response error -32002: Transaction simulation failed: Error processing ...
1
vote
1
answer
67
views
Why is it impossible to deploy a program to mainnet?
Just want to preface this by saying that I never have joined a stack exchange in my 10+ years of engineering to get a question answered.
I’ve already combed through all the posts on here regarding ...
2
votes
1
answer
463
views
Deploying program fails after checking transaction status. Error: 122 write transactions failed
For several days I couldn't deploy program because of the same reason everyone fails. In 5 retries you can't deploy it. I changed Solana Cli source code in order to increase max retries number (you ...
2
votes
1
answer
74
views
Deploy a program from another program
I'm trying to build a bridge and I need to create pools in both chains
In Solidity, I would be creating a contract that deploys and manage individual pools, but not sure if that can be achieved in ...
0
votes
0
answers
77
views
solana program write-buffer always failed
when run solana program write-buffer, error is
Error: Account allocation failed: unable to confirm transaction. This can happen in situations such as transaction expiration and insufficient fee-payer ...
0
votes
0
answers
68
views
Can't deploy a smart contract: cli 'solana program show --programs' returns nulls
For those who've been following this, I been dealing with ISSUES trying to make a solana-token ICO widget,
basically I finally got around both the,
error: package `solana-program v1.18.2` cannot be ...
1
vote
1
answer
99
views
Unable to deploy program to mainnet using solana cli `1.17.31`
I tried to deploy my program to mainnet but i keep getting the following error.
Error: Error processing Instruction 3: invalid account data for instruction
i have allocated twice the size of program ...
1
vote
0
answers
44
views
Deployment Error on Solana Mainnet: Max Retries Exceeded [duplicate]
I've been successfully deploying my Anchor project on Solana's development and testnet environments. However, when attempting deployment on the mainnet, I consistently encounter the following error: &...
0
votes
2
answers
412
views
Blockhash expired causing "program deploy" failed on mainnet
The program deployment requires sending around 90 transactions (based on the cli prompt). The same deployment works fine on devnet (very fast, a few seconds).
Blockhash expired. 4 retries remaining
...
1
vote
3
answers
314
views
Deploying a program to mainnet seems impossible?
I have no issue deploying to testnet and devnet, but everything I've tried to get the program to deploy to mainnet using the CLI ends up with it hanging.
Has anyone deployed a program recently (April ...
0
votes
1
answer
49
views
Solana Program Deploy command failing due to llc text sections Error
The deploy command is failing. How can I fix this error. I found no documentation about this error. After running cargo-build-sbf in my hello_world test project I get this error:
$ solana program ...
0
votes
1
answer
21
views
can't connect to my local when doing hello world on rustc
solana program deploy C:\Users\kamba\OneDrive\"Рабочий стол"\blockchain_assignment_2\solana-hello-world-local
Error: RPC request error: cluster version query failed: error sending request ...
1
vote
1
answer
144
views
Issues deploying to mainnet - on resume it just starts from 0% each time, never seems to progress
I have been trying to deploy a program to mainnet for several days now, on devnet it works fine and deploys in a few seconds, but on mainnet I just get:
Error: Data writes to account failed: Custom ...
2
votes
1
answer
313
views
Cannot deploy program onto solana mainnet
First of all, it's super slow when deploy(anchor deploy) my program to mainnet, I got error:
Blockhash expired. 4 retries remaining
Blockhash expired. 3 retries remaining
Blockhash expired. 2 retries ...
2
votes
0
answers
441
views
How to add add priority fee on anchor cli
I am trying to deploy a program and read that is possible to add priority fee to the deploy transactions.
If possible how to do it. I am using
anchor deploy
3
votes
2
answers
538
views
Why is mainnet-beta program deploy taking so much time?
Why is mainnet-beta program deploy taking so much time?
It took 6 hours to complete 1.0% of the whole process
I use
solana-cli version: 1.18.3
anchor version: anchor-cli 0.29.0
solana cluster-version :...
1
vote
1
answer
990
views
How to deploy on mainnet using anchor?
Can someone who lately successfully deployed program to mainnet say what versions of solana-cli, anchor-cli,... did you use?
When I try to deploy, it takes ages (on devnet its in 1 minute done) and in ...
0
votes
2
answers
759
views
`solana program deploy` stuck
From yesterday I haven't been able to deploy (upgrade) my program to solana mainnet. The deploy works fine on devnet, with the same binary. But when running solana program deploy on mainnet, it is ...
0
votes
1
answer
476
views
An error occurred while deploying to devnet with anchor
I can deploy successfully using the localhost, but when deploying to the devnet, I encounter this error. Could someone please help me?
Deploying program "user_profile_backend"...
Program ...
3
votes
1
answer
113
views
Why is the size of my on-chain program almost doubled after deploying?
I've written a on-chain program with Rust and compile it via cargo build-sbf. Then I check the size of the .so file, it's 156960 bytes.
After I deploy it on devnet via solana program deploy, I check ...
2
votes
1
answer
85
views
How to properly start and shut down a local multi-node network?
Following the tutorial on this website(https://docs.solanalabs.com/cluster/bench-tps), I successfully start local multinode testnet.I discovered that I used the script ./multinode-demo/validator-x.sh ...
2
votes
0
answers
117
views
slow deployments when using Solana CLI 1.17.x
When I deployed mainnet using Solana 1.17.17, it was very slow and could not be successful
rustc 1.75.0 (82e1608df 2023-12-21)
solana-cli 1.17.17 (src:27a43800; feat:1337574167, client:SolanaLabs)
...
2
votes
1
answer
578
views
Checking deployed programs causes a timeout error. Sometimes works
I've created a program, and deployed it using:
solana program deploy target/deploy/hello_solana.so
It deploys successfully:
solana program deploy target/deploy/hello_solana.so --keypair ../../sol-...
1
vote
0
answers
39
views
Err while deploying to devnet on Solana
The build is successful using anchor build. and when i deploy my program using anchor deploy i am getting below error
anchor_cli = 0.28.0
0
votes
1
answer
93
views
Deploying program with sol_remaining_compute_units() gives "invalid account data"
Including something like
msg!("remaining compute: {}", solana_program::compute_units::sol_remaining_compute_units());
will lead to error when deploying
RPC URL: https://api.devnet.solana....
1
vote
1
answer
7k
views
What is the difference between mint and freeze authority?
When I have an SPL token, I can revoke freeze authority and I can revoke mint. What is the difference between these two?
1
vote
2
answers
392
views
Anchor Deploy Error
By Deploying Anchor with command: anchor deploy I get this error:
Error: Unable to open program file: No such file or directory (os error 2)
There was a problem deploying: Output { status: ExitStatus(...
1
vote
1
answer
348
views
How to deploy Solana private chain with at least 4 nodes for testing on single or multiple machines
I want to send transactions to the blockchain and obtain the execution results of the transactions.I followed the instructions in the official documentation below for the setup, but I'm not sure if ...
6
votes
3
answers
10k
views
How do I get real-time information about newly created tokens on Solana?
I want to receive information about newly created tokens on the Solana blockchain with minimal latency. What are some ways to do this?
So that I get information about a freshly created token after, ...
1
vote
0
answers
125
views
Cannot deploy program on mainnet for two weeks
I use solana command tool to deploy program on mainnet and always got failed. I have try for two weeks.
I try 1.14.X, 1.16.X and 1.17.X. But got failed.
tangaoyuan@tangaoyuandeMacBook-Pro program % ...