We have two computers configured with DFINITY development environment, two computers (e.g. called computerA, computerB), also corresponding to two different principals (prinicpalA, principalB),,
Created canister on nns and set principalA and principalA as controllers of canister.
Local deployment on both computers is perfectly fine, but there is a problem when deploying to the IC network.
In computerA first execute dfx start --clean --background, then execute dfx deploy --network ic --no-wallet, can successfully deploy to the main network (ic).
But in computerB execute the same operation, will return an error: code 4, message: “Caller is not authorized”:
The question:
1、principalA and principalB are both controllers of mcaxw-wyaaa-aaaai-qakfa-cai, why one can be deployed successfully, but the other is prompted with no authorization?
I think the two principals are controllers, the permission should be the same, and the execution order has nothing to do with it.
2、when using dfx canister update-settings command to modify the canister controller, the execution error and prompt: 5: Only the controllers of the canister mcaxw-wyaaa-aaaai-qakfa-cai can control it:
The dfx canister set-controller prompt in the development documentation does not exist:
How to fix them?
Thanks!