Questions tagged [deploy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
22 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 ...
daoplays's user avatar
  • 567
2 votes
0 answers
88 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 ...
user2873314's user avatar
1 vote
0 answers
139 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
CryptoTioSam's user avatar
3 votes
2 answers
143 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 :...
Minato Tanaka's user avatar
1 vote
1 answer
171 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 ...
Peta ng's user avatar
  • 13
0 votes
1 answer
132 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 ...
Kise's user avatar
  • 143
0 votes
1 answer
84 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 ...
Pluto's user avatar
  • 1
2 votes
1 answer
38 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 ...
Yan's user avatar
  • 323
2 votes
1 answer
38 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 ...
sdjasj's user avatar
  • 35
2 votes
0 answers
93 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) ...
zhxx zh's user avatar
  • 81
2 votes
1 answer
129 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-...
BugHunterUK's user avatar
1 vote
0 answers
33 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
Mohammad Abuzar's user avatar
0 votes
1 answer
37 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....
Pun's user avatar
  • 1
1 vote
1 answer
2k 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?
Anonim11's user avatar
1 vote
2 answers
109 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(...
LastUnicorn's user avatar
1 vote
1 answer
154 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 ...
sdjasj's user avatar
  • 35
5 votes
3 answers
4k 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, ...
Andrew Swift's user avatar
1 vote
0 answers
59 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 % ...
user6717's user avatar
0 votes
1 answer
3k views

How to find newly deployed tokens on Solana?

I’m trying to find how I can see token contracts as they are being deployed on Solana. I can find them after liquidity has been added but preferably I’d like to know how to find them before the ...
user6692's user avatar
0 votes
2 answers
43 views

Does program keypair has any other usage besides program deployment?

When we are doing program deployment on Solana using Anchor, it will read the key pair generated at target/deploy/<program>-keypair.json and use it to sign the instruction for initial deployment....
johnhckuo's user avatar
  • 135
1 vote
1 answer
69 views

Error: ELF error from deploying an anchor project

I have been trying to deploy my anchor project on the local net. I started by running solana-test-validator and then anchor deploy but I keep receiving this error: Error: ELF error: ELF error: ...
Quang Phạm's user avatar
2 votes
1 answer
324 views

Unable to deploy large solana programs on devnet

I have a very large solana program that I want to deploy on devnet but everytime I run the anchor deploy command all the available retries end and the transaction is never submitted. Is there any way ...
Tushar Sahoo's user avatar
0 votes
1 answer
184 views

ELF error: Multiple or no text sections, consider removing llc option: -function-sections

I am trying to deploy an anchor program using solana program deploy dummy_program.so, But I am getting the following error Error: ELF error: ELF error: Multiple or no text sections, consider removing ...
Jimii's user avatar
  • 1,468
0 votes
1 answer
217 views

Error: Unable to open program file: No such file or directory (os error 2)

I am trying to deploy a hello world program on the blockchain through the solana cli. I tried running cargo build-bpf , after running the program the deploy directory is not downloaded so that I can ...
Shivang Rawat's user avatar
1 vote
2 answers
181 views

Solana deploy gets an error: "Error: Data writes to account failed: Custom error: Max retries exceeded"!

I follow the following instructions to deploy the program: https://docs.solana.com/getstarted/rust Here are my steps: solana-keygen new solana config set --url https://api.testnet.solana.com (or https:...
Vuong Tran's user avatar
4 votes
1 answer
162 views

What's the difference between the different program loaders?

what's the difference between: BPFLoaderUpgradeab1e11111111111111111111111, BPFLoader1111111111111111111111111111111111, BPFLoader2111111111111111111111111111111111 for deploying your program?
Jacob Creech's user avatar
  • 3,809
4 votes
1 answer
120 views

How do you figure out your current program deployed max size?

When you deploy a program to a cluster, the default size allocated is the binary size * 2. However you won't be using the entire space on the cluster. How do you figure out the space left available in ...
Jacob Creech's user avatar
  • 3,809
3 votes
1 answer
178 views

Problems to deploy program with Anchor 0.28.0 to localnet

I am upgrading my programs to anchor 0.28.0 but I am not able to deploy anymore. The transactions do not finalize. (devnet works fine) These are my versions: solana --version solana-cli 1.16.0 (src:...
Jonas H.'s user avatar
  • 4,941
4 votes
1 answer
36 views

What is the use case of program's secret key after initial deployment?

Is there any other use case of the program's secret key once the program is deployed? If I am correct, subsequent updates don't require the program's secret key. Can anyone do anything to the program ...
Imran Sheikh's user avatar
2 votes
1 answer
46 views

Necessary ports to talk to a validator (devnet) for deployment

I teach at a university where I plan to introduce students to Solana blockchain development. I can deploy programs normally to devnet when running my laptop at home (anchor deploy), but when connected ...
Sergio's user avatar
  • 41
3 votes
2 answers
102 views

Deploy regular solana (not anchor) on mainnet

I'm looking to deploy a regular solana program written in Rust (not anchor) on mainnet. For some reason I can't rewrite it using anchor solana. I have searched online and all failed. Does anyone know ...
Lê Văn Thành's user avatar
3 votes
1 answer
60 views

Anchor says deployed but can't find it on sol explorer

I deploy a program, and get the program ID back. But when i try to search the devnet it is never deployed. Program Id: Hxcpf8xPXRxqaoCGE4dARpkpCau6ojuwCGLZcqoKSdHx Deploy success
2ndsonsolomon's user avatar
1 vote
1 answer
78 views

Problem with initialize storage data (Solana program library)

I can't update metadata because when I try to Init the storage solana-farm-ctrl --keypair main_admin.json init-all I get an error because: Error processing Instruction 0: invalid instruction data. ...
Kodos23's user avatar
  • 31
0 votes
1 answer
77 views

Blockhash expeired error when deploy program to devnet

When I deploy the solana program to devnet, I am getting below error. And it says to me Error: Data writes to account failed: Custom error: Max retries exceeded I am using solana-cli(1.14.7). How can ...
Akira's user avatar
  • 1
4 votes
1 answer
198 views

Error: Data writes to account failed: Custom error: Max retries exceeded

I though it was a problem with my keypair and tried a fresh deploy and still got the same error
Marco Kuidja's user avatar
2 votes
0 answers
68 views

problem with deploying in anchor [closed]

please help me to solve the problem, I am new to solana. on startup anchor build i get: There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", ...
Vadim Kopylov's user avatar
2 votes
2 answers
757 views

Error deploying program in localhost network

I have created and written a simple Solana program using anchor & successfully compiled it using anchor build command. I run a local validator node in a terminal using solana-test-validator and ...
Shubham Singh's user avatar
1 vote
0 answers
130 views

Issue while executing anchor deploy

I am trying to deploy my solana smart contract and is receiving the error :account already in use or not an upgradeable program. I tried the possible solution given in google like npm run clean npm ...
Ashlin's user avatar
  • 11
3 votes
1 answer
629 views

How to safely close program buffers?

so recently I came across a tweet suggesting lazy developers to close program buffers with: solana program close --buffers -u m I know buffers are something like temp accounts used during program ...
vanderlinde's user avatar
1 vote
2 answers
414 views

Cannot deploy program with anchor on devnet

I am using anchor to deploy my program on devnet and deployment process got stuck (there is enough sol on my wallet). anchor new test anchor build anchor deploy --provider.cluster devnet Deploying ...
Void's user avatar
  • 396
2 votes
2 answers
1k views

Blockhash expired. 5 retries remaining

trying to deploy a program to the devnet I keep encountering this issue when my program just tries and retry to deploy with no success, any idea why this may be?: cargo-build-bpf child: /Users/juan/....
Juan Marchetto's user avatar
1 vote
1 answer
98 views

After deployment of a program can the program_id's private key be made public?

During deployment, we need a fresh keypair to sign to create an executable "Program Account" that can be used to point to a buffer holding the bytes of an on-chain program. The public key of ...
ktd's user avatar
  • 15
1 vote
1 answer
99 views

Deployment price

I planning to launch my program on the mainnet. Do you know if I can expect the same deployment cost on the mainnet compared to the devnet? Thanks.
dawka's user avatar
  • 91
2 votes
1 answer
38 views

Question relate to Re Deployment of onchain program

I guess Im new, and my question maybe related to that... I deployed a Smart Contract to mainnet-beta. I got a Program ID."ABxhuh61R8QsvQFCmqy******" I placed that program ID in the Anchor....
amirs's user avatar
  • 51
5 votes
2 answers
405 views

Close solana program to get deployment funds back?

I want to test my solana program on mainnet. I know that on devnet the deployment costs 5 SOL. So I was wondering whether I could close the program account and get some of the deployment funds back?
Burger Bob's user avatar
  • 1,386
1 vote
1 answer
84 views

Issue building program via Cargo build-bpf

Getting an error during Build process with cargo build-bpf on Hello World program. error: linker cc not found | = note: No such file or directory (os error 2)
Solanadev's user avatar
1 vote
0 answers
32 views

How do I create a BpfLoaderUpgradable update instruction using the JavaScript SDK?

I need to deploy a buffer to program_id using an app that utlizes a multisig contract. A prudent method to managing deployment is to upload to a buffer with a less trusted account and then use a ...
kathodler's user avatar
1 vote
2 answers
421 views

Increase Deployed Program Account Allocation

I have deployed a program which got allocated 41216 bytes for the program account. I have changed this program, and would like to redeploy. However, the changed program is 46984 bytes. Error: ...
Sky020's user avatar
  • 137
0 votes
2 answers
47 views

Not authority of deployed program

I deployed a program from the command line, but when checking the program data, there is no associated authority, and I'm unable to close the program, and the rent is locked up. Is there a way to ...
John Hankok's user avatar
6 votes
4 answers
235 views

Deploying program with Ledger: best way to deploy without having to click 600 times for each tx?

So our program is not the most complex (a few hundred lines of code), but looks like it wants us to do 600+ transactions. Is there some way to "sign all" transaction with Ledger when ...
Richard's user avatar
  • 580