While compiling the app, peers status is down. I tried to restart the docker container in order to change the peers status but no luck. Can someone tell me how to solve this problem?
...
...
>java.lang.Exception: io.grpc.StatusRuntimeException: UNAVAILABLE: Unable to resolve host peer0.org1.digitalberry-infra
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at com.digitalberry.bcncore.CoreApp.main(CoreApp.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Unable to resolve host peer0.org1.digitalberry-infra
at io.grpc.Status.asRuntimeException(Status.java:526)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:467)
Caused by: java.net.UnknownHostException: peer0.org1.digitalberry-infra
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(Unknown Source)
at java.net.InetAddress.getAddressesFromNameService(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at io.grpc.internal.DnsNameResolver$JdkResolver.resolve(DnsNameResolver.java:335)
at io.grpc.internal.DnsNameResolver$1.run(DnsNameResolver.java:173)
... 3 common frames omitted
...
...
>2018-08-13 12:50:08.301 ERROR 980 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed
property config:
application:
basedir: @project.basedir@
fabric:
peerUserPath : ${application.basedir}/target/classes/crypto-config/peerOrganizations/org1.digitalberry-infra/users/Admin@org1.digitalberry-infra/msp
peerCAPath : ${application.basedir}/target/classes/crypto-config/peerOrganizations/org1.digitalberry-infra/users/Admin@org1.digitalberry-infra/tls
ordererCAPath : ${application.basedir}/target/classes/crypto-config/ordererOrganizations/digitalberry-infra/users/Admin@digitalberry-infra/tls
sampleStoreFilePath : ${application.basedir}/HFCSampletest.properties
peer0Name: peer0.org1.digitalberry-infra
peer0Address: grpcs://peer0.org1.digitalberry-infra:7051
peer1Name: peer1.org1.digitalberry-infra
peer1Address: grpcs://peer1.org1.digitalberry-infra:8051
eventHub0Address: grpcs://peer0.org1.digitalberry-infra:7053
eventHub1Address: grpcs://peer1.org1.digitalberry-infra:8053
ordererName: orderer.digitalberry-infra
ordererAddress: grpcs://orderer.digitalberry-infra:7050
channelName: mychannel
*/