-
Always start your network fresh. Use the script
deleteNetwork.sh
to delete any pre-existing jobs/pods etc. -
If you see below error, then environment is not set properly and therefore kubectl commands will not work.
$ kubectl get pods The connection to the server localhost:8080 was refused - did you specify the right host or port?
-
If you see below error, it means this peer has not joined the channel and so your query will not work.
-
If you see something similar to the following:
It shows there is some error in command. For example, in this snapshot
-c
is missing before passing arguments. -
If you see the below error,
There is something wrong with the setup. You would like to do setup from a fresh.
-
For debugging purposes, if you want to inspect the logs of any container, then run the following command.
$ kubectl get pods --show-all # Get the name of the pod $ kubectl logs [pod name] # if pod has one container $ kubectl logs [pod name] [container name] # if pod has more than one container
-
If you see something like this for chaincode instantiation,
It means chaincode has been instantiated already on the peer. Retrying of the same will fail with this error. You can ignore this message and continue with your transactions (invoke/query).
-
If you see error as shown below:
It is intermittent issue and might occur because of network. Delete the network and retry afresh after sometime.