xmhubj / fabric-kafka

Hyperledger Fabric Network with Kafka Consensus on Kubernetes.
Apache License 2.0
10 stars 9 forks source link

Cannot copy artifacts #3

Open mendezthomas08 opened 4 years ago

mendezthomas08 commented 4 years ago

Hi , When I run setupNetwork.sh ,it goes into an infinite loop saying "Waiting for copyartifacts job to complete" . Why can't I copy the artifacts to the shared volume??

JorgeLeites commented 4 years ago

I ran into the same problem. When the script waits for the job to be done, it does

kubectl get jobs -n fabric |grep <job name> |awk '{print $3}'

And checks if that is equal to 1. kubectl must have changed, and now the job completion is on the second column, not the third. Change awk '{print $3}' to awk '{print $2}'.

Also, completion will not be equal to 1 when completed but 1/1. You should change that too.