Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot deploy the program to devnet with anchor

First, I tried with deploying on localhost with anchor deploy it works fine. But then I changed the cluster to devnet, changed Anchor.toml and lib.rs file with the address I got after anchor build. Then tried with anchor deploy --provider.cluster devnet

Changed the solana cluster also solana config set --url https://api.devnet.solana.com, then solana program deploy /target/deploy/voter.so. Still getting the error for both of the methods.

Deploying workspace: https://api.devnet.solana.com
Upgrade authority: /home/XXXXXX/.config/solana/id.json
Deploying program "voter"...
Program path: /home/<user>/workspace/voter/target/deploy/voter.so...
Error: Account xxxx is not an upgradeable program or already in use
There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }.
like image 209
Satyaban Sahoo Avatar asked Jul 12 '26 06:07

Satyaban Sahoo


1 Answers

First check if devnet is up and running with: https://status.solana.com

Then check if you have SOL: solana balance

^Usually it's one of those two!

I hope this helps!

like image 73
Kristian Quirapas Avatar answered Jul 14 '26 01:07

Kristian Quirapas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!