The error message Canister bnz7o-iuaaa-aaaaa-qaaaa-cai does not belong to any subnet
suggests that dfx
uses the wallet canister bnz7o-iuaaa-aaaaa-qaaaa-cai
from a local (replica) instance that you used in the past, but this wallet canister bnz7o-iuaaa-aaaaa-qaaaa-cai
does not exist on your new local (PocketIC) instance (I anticipate this because the canister ID bnz7o-iuaaa-aaaaa-qaaaa-cai
belongs to the canister ranges used by the local replica). I’d expect that using the --clean
option should fix the issue. In particular, I couldn’t reproduce your issue with dfx canister create --all
, the following sequence of commands succeeds for me:
$ dfx --version
dfx 0.26.0-beta.1
$ dfx new test
✔ Select a backend language: · Motoko
✔ Select a frontend framework: · No JS template
✔ Add extra features (space to select, enter to confirm) ·
Created new project "test"
$ cd test
$ dfx start --clean
Running dfx start for version 0.26.0-beta.1
Using shared network 'local' defined in /home/martin/.config/dfx/networks.json
Replica API running on 127.0.0.1:8080. You must open a new terminal to continue developing. If you'd prefer to stop, quit with 'Ctrl-C'.
and in another tab
$ dfx canister create --all
Created a wallet canister on the "local" network for user "default" with ID "uqqxf-5h777-77774-qaaaa-cai"
test_backend canister created with canister id: uxrrr-q7777-77774-qaaaq-cai
test_frontend canister created with canister id: u6s2n-gx777-77774-qaaba-cai