Hi everybody,
I hope this is the right category.
I am (obviously) new to to this and to get some experience i tried to deploy my sample project (little changes to the explore_hello project) by following the “Network deployment” (Network deployment :: Internet Computer). Code and results are below.
Steps and thoughts:
I successfully got my principal and ledger id, transfered 0.2 ICP to this adress and started to create a canister for deployment. Then there was the first error and i thought it happened because i wrote 0.2 instead of .2 for the amount (i don’t know, it was written like this in the tutorial). So i changed it and the result was the same. Then i thought i have to use less to pay for the fees. The result was an error again, but with a different balance inside the error message.
The ledger balance after these steps was 0 ICP. Since the .2 ICP had been used up, i thought maybe at least the canister had been created and tried to install the cycles wallet. Again, an error. Verifying the canister resulted in an error too.
Searched for a solution online and found this 403 forbidden error when running command "dfx identity --network ic deploy-wallet <canister-identifer>" - #6 by kpeacock. So i tried the --force command and the wallet was successfully deployed. But the result of trying to install the wallet again was “The wallet canister already exists”. When I checked the wallet’s balance, I was presented with a new error
“Canister […] has no query method ‘wallet_balance’” and the ledger balance is still 0 ICP.
Can someone please tell me what i did wrong and how to solve this?
Thank you in advance!
jan@ubuntu:~/ICP Projects/explore_hello$ dfx ledger --network ic balance
0.20000000 ICP
jan@ubuntu:~/ICP Projects/explore_hello$ dfx ledger --network ic create-canister c7hoy-e3g23-bhl5i-rbbif-eoozk-4cno4-a23ho-nkuex-t32yn-a6hew-yqe --amount 0.2
The Replica returned an error: code 5, message: "Canister ryjl3-tyaaa-aaaaa-aaaba-cai trapped explicitly: Panicked at 'called `Result::unwrap()` on an `Err` value: InsufficientFunds { balance: ICPTs { e8s: 20000000 } }', rosetta-api/ledger_canister/src/main.rs:525:39"
jan@ubuntu:~/ICP Projects/explore_hello$ dfx ledger --network ic create-canister c7hoy-e3g23-bhl5i-rbbif-eoozk-4cno4-a23ho-nkuex-t32yn-a6hew-yqe --amount .2
The Replica returned an error: code 5, message: "Canister ryjl3-tyaaa-aaaaa-aaaba-cai trapped explicitly: Panicked at 'called `Result::unwrap()` on an `Err` value: InsufficientFunds { balance: ICPTs { e8s: 20000000 } }', rosetta-api/ledger_canister/src/main.rs:525:39"
jan@ubuntu:~/ICP Projects/explore_hello$ dfx ledger --network ic create-canister c7hoy-e3g23-bhl5i-rbbif-eoozk-4cno4-a23ho-nkuex-t32yn-a6hew-yqe --amount .1999
Transfer sent at BlockHeight: 2173099
The Replica returned an error: code 5, message: "Canister ryjl3-tyaaa-aaaaa-aaaba-cai trapped explicitly: Panicked at 'Transfer failed: InsufficientFunds { balance: ICPTs { e8s: 0 } }', rosetta-api/ledger_canister/src/lib.rs:1004:10"
jan@ubuntu:~/ICP Projects/explore_hello$ dfx ledger --network ic balance
0.00000000 ICP
jan@ubuntu:~/ICP Projects/explore_hello$ dfx identity --network ic deploy-wallet ryjl3-tyaaa-aaaaa-aaaba-cai
Creating a wallet canister on the ic network.
The replica returned an HTTP Error: Http Error: status 403 Forbidden, content type "", content: Requested canister rejected the message
jan@ubuntu:~/ICP Projects/explore_hello$ dfx identity --network ic get-wallet
Creating a wallet canister on the ic network.
The replica returned an HTTP Error: Http Error: status 404 Not Found, content type "text/html", content: <html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.21.3</center>
</body>
</html>
jan@ubuntu:~/ICP Projects/explore_hello$ dfx identity --network ic set-wallet ryjl3-tyaaa-aaaaa-aaaba-cai --force
Skipping verification of availability of the canister on the network due to --force...
Setting wallet for identity 'default' on network 'ic' to id 'ryjl3-tyaaa-aaaaa-aaaba-cai'
Wallet set successfully.
jan@ubuntu:~/ICP Projects/explore_hello$ dfx identity --network ic deploy-wallet ryjl3-tyaaa-aaaaa-aaaba-cai
The wallet canister "ryjl3-tyaaa-aaaaa-aaaba-cai" already exists for user "default" on "ic" network.
jan@ubuntu:~/ICP Projects/explore_hello$ dfx identity --network ic get-wallet
ryjl3-tyaaa-aaaaa-aaaba-cai
jan@ubuntu:~/ICP Projects/explore_hello$ dfx wallet --network ic balance
The Replica returned an error: code 3, message: "IC0302: Canister ryjl3-tyaaa-aaaaa-aaaba-cai has no query method 'wallet_balance'"
jan@ubuntu:~/ICP Projects/explore_hello$ dfx ledger --network ic balance
0.00000000 ICP