2017-10-17 3 views
0

J'utilise ci-dessous config pour construire Notary Cluster et les lancer. J'ai utilisé ce genre de script dans la version V14, ça va. mais en V1 pop cette erreur. s'il vous plaît aidez-moi à vérifier.Corda V1.0 Problème de configuration des grappes de notaire avec Gradle

tâche deployNodesRAFT (type: net.corda.plugins.Cordform, DependsOn: [ 'pot']) {

directory "./build/nodes" 
networkMap "C=CH,L=Zurich,O=NotaryService0" 

node { 
    name "C=CH,L=Zurich,O=NotaryService0" 
    advertisedServices = ["corda.notary.validating.raft|C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft"] 
    p2pPort 10002 
    rpcPort 10003 
    notaryNodePort 10001 
    cordapps = [] 
} 
node { 
    name "C=CH,L=Zurich,O=NotaryService1" 
    advertisedServices = ["corda.notary.validating.raft|C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft"] 
    p2pPort 10091 
    rpcPort 10092 
    cordapps = [] 
    notaryNodePort 10093 
    notaryClusterAddresses = ["localhost:10001"] 
} 
node { 
    name "C=CH,L=Zurich,O=NotaryService2" 
    advertisedServices = ["corda.notary.validating.raft|C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft"] 
    p2pPort 10094 
    rpcPort 10095 
    cordapps = [] 
    notaryNodePort 10096 
    notaryClusterAddresses = ["localhost:10001"] 
} 

journal: [ERREUR] 2017-10-17T05: 42: 31,180Z [ principal] identity.PersistentIdentityService.verifyAndRegisterIdentity - échec de la vérification des contraintes de nom [ERROR] 2017-10-17T05: 42: 31,181Z [principal] identity.PersistentIdentityService.verifyAndRegisterIdentity - Path = [ERROR] 2017-10-17T05: 42: 31,181 Z [principal] identity.PersistentIdentityService.verifyAndRegisterIdentity - CN = racine CA du noeud Corda, O = R3, OU = corda, L = Londres, C = UK [ERREUR] 2017-10-17T05: 42: 31,182Z [principal] identité .Persistant IdentityService.verifyAndRegisterIdentity - CN = Corda Node Intermédiaire CA, O = R3, OU = corda, L = Londres, C = UK [ERREUR] 2017-10-17T05: 42: 31,184Z [principal] identity.PersistentIdentityService.verifyAndRegisterIdentity - C = CH, L = Zurich, O = notaireService0, CN = Corda Client Certificat CA [ERREUR] 2017-10-17T05: 42: 31,185Z [principal] identity.PersistentIdentityService.verifyAndRegisterIdentity - C = CH, L = Zurich, O = Raft, CN = corda.notary.validating.raft [ERREUR] 2017-10-17T05: 42: 31,189Z [principal] internal.Node.run - Exception lors du démarrage du noeud rx.exceptions.OnErrorNotImplementedException: échec de la vérification des contraintes de nom à l'adresse rx.internal.util.InternalObservableUtils $ ErrorNotImplementedAction.call (InternalObservableUtils.java:386) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.internal.util.InternalObservableUtils $ ErrorNotImplementedAction.call (Interna lObservableUtils.java:383) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.internal.util.ActionSubscriber.onError (ActionSubscriber.java:44) ~ [rxjava-1.2.4.jar: 1.2. 4] at rx.observers.SafeSubscriber._onError (SafeSubscriber.java:153) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.observers.SafeSubscriber.onError (SafeSubscriber.java:115) ~ [ rxjava-1.2.4.jar: 1.2.4] at rx.exceptions.Exceptions.throwOrReport (Exceptions.java:216) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.observers.SafeSubscriber. onNext (SafeSubscriber.java:139) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.observers.Subscribers $ 5.onNext (Subscribers.java:235) ~ [rxjava-1.2.4.jar: 1.2 .4] à net.corda.node.utilities.DatabaseTransactionWrappingSubscriber $ onNext $ 1.invoke (CordaPersistence.kt: 159) ~ [corda-node-1.0.0.jar :?] sur net.co rda.node.utilities.DatabaseTransactionWrappingSubscriber $ onNext $ 1.invoke (CordaPersistence.kt: 143) ~ [corda-node-1.0.0.jar :?] à l'adresse net.corda.node.utilities.DatabaseTransactionWrappingSubscriber $ forEachSubscriberWithDbTx $ 1.invoke (CordaPersistence.kt: 150) ~ [corda-node-1.0.0.jar:?] à net.corda.node.utilities.DatabaseTransactionWrappingSubscriber $ forEachSubscriberWithDbTx $ 1.invoke (CordaPersistence.kt: 143) ~ [corda-node-1.0 .0.jar :?] à net.corda.node.utilities.CordaPersistence.inTopLevelTransaction (CordaPersistence.kt: 84) ~ [corda-node-1.0.0.jar :?] à net.corda.node.utilities .CordaPersistence.transaction (CordaPersistence.kt: 75) ~ [corda-node-1.0.0.jar:?] à net.corda.node.utilities.CordaPersistence.transaction (CordaPersistence.kt: 65) ~ [nœud-corda -1.0.0.jar :?] at net.corda.node.utilities.DatabaseTransac tionWrappingSubscriber.forEachSubscriberWithDbTx (CordaPersistence.kt: 148) ~ [corda-node-1.0.0.jar :?] à l'adresse net.corda.node.utilities.DatabaseTransactionWrappingSubscriber.onNext (CordaPersistence.kt: 159) ~ [corda-node- 1.0.0.jar:?] à rx.subjects.PublishSubject $ PublishSubjectProducer.onNext (PublishSubject.java:304) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.subjects.PublishSubject $ PublishSubjectState. onNext (PublishSubject.java:219) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.subjects.PublishSubject.onNext (PublishSubject.java:72) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.internal.util.ObserverSubscriber.onNext (ObserverSubscriber.java:34) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.observers.SafeSubscriber.onNext (SafeSubscriber.java:134) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.observers.Subscribers $ 5.onNext (Subscribers.java:235) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.subjects .UnicastSubject $ State.replay (UnicastSubject.java:295) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.subjects.UnicastSubject $ State.request (UnicastSubject.java:237) ~ [rxjava-1.2 .4.jar: 1.2.4] à l'adresse rx.Subscriber.setProducer (Subscriber.java:209) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.Subscriber.setProducer (Subscriber.java:205) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.Subscriber.setProducer (Subscriber.java:205) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.sub jects.UnicastSubject $ State.call (UnicastSubject.java:252) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.subjects.UnicastSubject $ State.call (UnicastSubject.java:115) ~ [rxjava- 1.2.4.jar: 1.2.4] à rx.Observable.unsafeSubscribe (Observable.java:10142) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.internal.operators.OnSubscribeDelaySubscriptionAutre $ 1.onCompleted (OnSubscribeDelaySubscriptionOther.java:74) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.internal.operators.OnSubscribeDelaySubscriptionOther $ 1.onNext (OnSubscribeDelaySubscriptionOther.java:53) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.internal.producers.SingleProducer.request (SingleProducer.java:65) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.Subscriber.setProducer (Subscriber.java:209) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.internal.operators.OperatorSingle $ ParentSubscriber.on Terminé (OperatorSingle.java:110) ~ [rxjava-1.2.4.jar: 1.2.4] à l'adresse rx.internal.operators.OperatorTake $ 1.onNext (OperatorTake.java:80) ~ [rxjava-1.2.4.jar : 1.2.4] à rx.internal.operators.OnSubscribeFilter $ FilterSubscriber.onNext (OnSubscribeFilter.java:76) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.subjects.PublishSubject $ PublishSubjectProducer.onNext (PublishSubject.java:304) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.subjects.PublishSubject $ PublishSubjectState.onNext (PublishSubject.java:219) ~ [rxjava-1.2.4.jar: 1.2 .4] à rx.subjects.PublishSubject.onNext (PublishSubject.java:72) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.observers.SerializedObserver.onNext (SerializedObserver.java:91) ~ [rxjava-1.2.4.jar: 1.2.4] à rx.subjects.SerializedSubject.onNext (SerializedSubject.java:67) ~ [rxjava-1.2.4.jar: 1.2.4 ] à net.corda.node.utilities.DatabaseTransaction.close (DatabaseTransactionManager.kt: 60) ~ [corda-node-1.0.0.jar :?] à net.corda.node.utilities.CordaPersistence.inTopLevelTransaction (CordaPersistence .kt: 100) ~ [corda-node-1.0.0.jar:?] à net.corda.node.utilities.CordaPersistence.transaction (CordaPersistence.kt: 75) ~ [corda-node-1.0.0.jar :?] à net.corda.node.utilities.CordaPersistence.transaction (CordaPersistence.kt: 65) ~ [corda-node-1.0.0.jar :?] à net.corda.node.services.network.PersistentNetworkMapCache .addNode (PersistentNetworkMapCache.kt: 163) ~ [corda-node-1.0.0.jar:?] à l'adresse net.corda.node.internal.AbstractNode.registerWithNetworkMapIfConfigured (AbstractNode.kt: 511) ~ [corda-node-1.0 .0.jar :?] at net.corda.node.internal.AbstractNode.start (AbstractNode.kt: 220) ~ [c orda-node-1.0.0.jar:?] à net.corda.node.internal.Node.start (Node.kt: 312) ~ [corda-node-1.0.0.jar :?] au net. corda.node.internal.NodeStartup.startNode (NodeStartup.kt: 95) ~ [corda-node-1.0.0.jar :?] à l'adresse net.corda.node.internal.NodeStartup.run (NodeStartup.kt: 74) [corda-node-1.0.0.jar:?] à net.corda.node.Corda.main (Corda.kt: 11) [corda-node-1.0.0.jar :?] Causé par: java. security.cert.CertPathValidatorException: la vérification des contraintes de nom a échoué

+0

Je pense pour cette partie pour générer le nom CordX500 de grappes de notaire différent d'un autre échantillon. comme "C = CH, L = Zurich, O = NotaireService0", ce n'est pas (O, L, C) – Hart

+0

juste vérifier, j'ai manqué un moyen de générer distributedService.jks, donc à l'avenir avez-vous un moyen de l'impliquer en interne sans notre propre outil? – Hart

Répondre

0

Comme vous l'avez mentionné dans votre deuxième commentaire, les configurations de nœud sont correctes, mais vous n'avez pas généré le certificat distributedService.

Pour générer ce certificat automatiquement, jetez un coup d'œil à la tâche Gradle définie ici, qui crée un groupe de notaires RAFT pour vous: https://github.com/corda/corda/blob/release-V1/samples/notary-demo/src/main/kotlin/net/corda/notarydemo/RaftNotaryCordform.kt. Le certificat partagé est généré sur la ligne 65.

+0

Salut joel, merci de votre aide. pour cette> java.security.NoSuchAlgorithmException: la classe configurée pour KeyPairGenerator (fournisseur: BC) est introuvable. net.i2p.crypto.eddsa.KeyPairGenerator comment réparer cette erreur avec build. – Hart

+0

dépendances { classpath "net.i2p.crypto: eddsa: $ eddsa_version" // Nécessaire pour ServiceIdentityGenerator dans l'environnement de construction. D'ailleurs, je l'ai eu – Hart

+0

par ailleurs, pourquoi pour le nom de noeuds de cluster notaire ont été changé en (O, L, C), Corda par défaut est (C, L, O) – Hart