-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Nearly impossible to deploy or upgrade Solana program (contract) #35531
Comments
This repository is no longer in use. Please re-open this issue in the agave repo: https://github.com/anza-xyz/agave |
@denisxor you can recover the sol using "solana program close --buffers". Same problem btw "2 write transactions failed" |
They generate the most recent prioritized-fee deployment commands here https://solana.gears.bot/deploy-cmd. Hope it helpful broda. |
Solana Cli doesn't support these arguments. My version is 1.17.34. |
version in the cmd is 1.18.2 |
upgrade to 1.18.2 |
Problem
I'm trying to upgrade my program in past weeks with so-so results. I've used
solana program deploy
with solana tools of different versions:Common issue with all these versions is that it is not necessarily print mnemonic phrase to recover the buffer. Each buffer creation costs me 4 SOLs. And I've already lost 4 such buffers because
solana program deploy
just stops with "Error: write transactions failed" or "Error: buffer write failed" or similar error messages without giving further instructions how to recover the buffer. My statistics of runningsolana program deploy
:1% - successful deploy (though very time consuming e.g. 2 hours)
50% - errors like "Error: Data writes to account failed: Custom error: Max retries exceeded" - buffer can be recovered on next run.
49% - errors like "Error: write transactions failed" - buffer can NOT be recovered on next run. At least there is no info about mnemonic phrase.
I'm using two commercial RPCs - Triton and Helius. Program deploy results are the same for both so it not RPC problems.
Overall
solana program deploy
feels like broken and not usable command with leads to significant SOL loss (significant for me at least) :-(Proposed Solution
solana program deploy
. It seems that no one really tested that command in current highly congested network. Attempts to make it usable in 0.18.11 are far from success :-( Just try to use it and you'll see!The text was updated successfully, but these errors were encountered: