2017-02-24 44 views
1

我對Hyperledger-Fabric頗爲陌生,我能夠設置兩個獨立的虛擬機,一個作爲membersrvc實例運行,另一個作爲validating-peer。我能夠使用我在membersrvc服務器中的membesrvc.yaml文件中列出的憑據,向驗證對等方進行REST調用。然而,當我嘗試旋轉了第二個使用peer node startvalidating-peer,我得到以下錯誤:無法使用Hyperledger-Fabric註冊第二個驗證對等服務器

 

    11:28:56.950 [crypto] Errorf -> ERRO 007 [validator.fabric2] Failed invoking CreateCertficatePair [rpc error: code = 2 desc = Identity or token does not match.]. 
    11:28:56.950 [crypto] Errorf -> ERRO 008 [validator.fabric2] Failed getting enrollment certificate [id=fabric2]: [rpc error: code = 2 desc = Identity or token does not match.] 
    11:28:56.950 [crypto] Errorf -> ERRO 009 [validator.fabric2] Failed retrieving enrollment data [rpc error: code = 2 desc = Identity or token does not match.]. 
    11:28:56.950 [crypto] Errorf -> ERRO 00a [validator.fabric2] Failed registering node crypto engine [rpc error: code = 2 desc = Identity or token does not match.]. 
    11:28:56.950 [crypto] Errorf -> ERRO 00b [validator.fabric2] Failed registering peer [fabric2]: [rpc error: code = 2 desc = Identity or token does not match.] 
    11:28:56.950 [crypto] Errorf -> ERRO 00c [validator.fabric2] Failed registering [fabric2]: [rpc error: code = 2 desc = Identity or token does not match.] 
    11:28:56.950 [crypto] RegisterValidator -> ERRO 00d Failed registering validator [fabric2] with name [fabric2] [rpc error: code = 2 desc = Identity or token does not match.]. 
    Error: rpc error: code = 2 desc = Identity or token does not match. 

我相信,我有我的core.yml文件正確的憑證,並且他們在membersrvc.yaml文件正確在單獨的membersrvc節點上。

如何註冊一個新的驗證對等體作爲驗證對等體網絡的一部分?

+0

當您提到2個虛擬機時,您是否在這些虛擬機的每個虛擬機上運行它們?還是像您正在運行可執行文件(即一個VM上的membersvc和另一個VM上的peerv)?你是否已經清除了虛擬機上的var/production目錄(按照光纖設置文檔),在你有成員服務設置的虛擬機上? – Ashishkel

回答

1

您是否嘗試使用已使用的新驗證對等憑證登錄?

確保您使用的憑據具有「驗證器」角色。