zoukankan      html  css  js  c++  java
  • Hyperledger Fabric安装问题备忘(一)

    在阿里云上安装时出现的报错:
    Recreating peer1.org2.example.com
    Recreating peer0.org1.example.com
    Recreating orderer.example.com
    Recreating peer0.org2.example.com
    Recreating peer1.org1.example.com
    Recreating cli


    / | | | / | _ | | | | | | |
    _
    | | / _ | |
    ) | | | _____ | | ) | | _|
    ) | | | / ___ | _ < | | |
    | | |
    / / | |

    |
    / || // _ || _ || || || |_____|

    Channel name : mychannel
    Creating channel...
    CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
    CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
    CORE_PEER_LOCALMSPID=Org1MSP
    CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
    CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
    CORE_PEER_TLS_ENABLED=true
    CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
    CORE_PEER_ID=cli
    CORE_LOGGING_LEVEL=DEBUG
    CORE_PEER_ADDRESS=peer0.org1.example.com:7051
    2017-11-15 05:18:58.518 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
    2017-11-15 05:18:58.518 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
    2017-11-15 05:18:58.522 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
    2017-11-15 05:18:58.522 UTC [msp] GetLocalMSP -> DEBU 004 Returning existing local MSP
    2017-11-15 05:18:58.522 UTC [msp] GetDefaultSigningIdentity -> DEBU 005 Obtaining default signing identity
    2017-11-15 05:18:58.522 UTC [msp] GetLocalMSP -> DEBU 006 Returning existing local MSP
    2017-11-15 05:18:58.522 UTC [msp] GetDefaultSigningIdentity -> DEBU 007 Obtaining default signing identity
    2017-11-15 05:18:58.522 UTC [msp/identity] Sign -> DEBU 008 Sign: plaintext: 0A88060A074F7267314D535012FC052D...53616D706C65436F6E736F727469756D
    2017-11-15 05:18:58.522 UTC [msp/identity] Sign -> DEBU 009 Sign: digest: 3C4932E3FD6C1F1E9038B71A2F27115D5F91D6B9271D54F72D91940B731C2E95
    2017-11-15 05:18:58.522 UTC [msp] GetLocalMSP -> DEBU 00a Returning existing local MSP
    2017-11-15 05:18:58.522 UTC [msp] GetDefaultSigningIdentity -> DEBU 00b Obtaining default signing identity
    2017-11-15 05:18:58.522 UTC [msp] GetLocalMSP -> DEBU 00c Returning existing local MSP
    2017-11-15 05:18:58.522 UTC [msp] GetDefaultSigningIdentity -> DEBU 00d Obtaining default signing identity
    2017-11-15 05:18:58.522 UTC [msp/identity] Sign -> DEBU 00e Sign: plaintext: 0ABF060A1508021A0608C29CAFD00522...C834841A8DF0B1F0A1CFB1C2547CCE86
    2017-11-15 05:18:58.522 UTC [msp/identity] Sign -> DEBU 00f Sign: digest: B6482A9E7C5B0CD88869BA0804089031C9E3ADD4774439F55083898BE2EE30ED
    2017-11-15 05:18:58.571 UTC [msp] GetLocalMSP -> DEBU 010 Returning existing local MSP
    2017-11-15 05:18:58.571 UTC [msp] GetDefaultSigningIdentity -> DEBU 011 Obtaining default signing identity
    2017-11-15 05:18:58.571 UTC [msp] GetLocalMSP -> DEBU 012 Returning existing local MSP
    2017-11-15 05:18:58.571 UTC [msp] GetDefaultSigningIdentity -> DEBU 013 Obtaining default signing identity
    2017-11-15 05:18:58.571 UTC [msp/identity] Sign -> DEBU 014 Sign: plaintext: 0ABF060A1508021A0608C29CAFD00522...D158C5DC267A12080A021A0012021A00
    2017-11-15 05:18:58.571 UTC [msp/identity] Sign -> DEBU 015 Sign: digest: A9CA275066F81A28F86CA3178128C3E041EE058EE0F5BEB2690689D3A8AC9283
    2017-11-15 05:18:58.576 UTC [channelCmd] readBlock -> DEBU 016 Got status: &{NOT_FOUND}
    2017-11-15 05:18:58.576 UTC [msp] GetLocalMSP -> DEBU 017 Returning existing local MSP
    2017-11-15 05:18:58.576 UTC [msp] GetDefaultSigningIdentity -> DEBU 018 Obtaining default signing identity
    fatal error: unexpected signal during runtime execution
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f1ed5f24259]

    runtime stack:
    runtime.throw(0xdd863e, 0x2a)
    /opt/go/src/runtime/panic.go:566 +0x95
    runtime.sigpanic()
    /opt/go/src/runtime/sigpanic_unix.go:12 +0x2cc

    goroutine 34 [syscall, locked to thread]:
    runtime.cgocall(0xb1b240, 0xc420020df8, 0xc400000000)
    /opt/go/src/runtime/cgocall.go:131 +0x110 fp=0xc420020db0 sp=0xc420020d70
    net._C2func_getaddrinfo(0x2720d60, 0x0, 0xc420357110, 0xc420028878, 0x0, 0x0, 0x0)
    ??:0 +0x68 fp=0xc420020df8 sp=0xc420020db0
    net.cgoLookupIPCNAME(0x7ffcab798a2e, 0x13, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /opt/go/src/net/cgo_unix.go:146 +0x37c fp=0xc420020f18 sp=0xc420020df8
    net.cgoIPLookup(0xc420370540, 0x7ffcab798a2e, 0x13)
    /opt/go/src/net/cgo_unix.go:198 +0x4d fp=0xc420020fa8 sp=0xc420020f18
    runtime.goexit()
    /opt/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc420020fb0 sp=0xc420020fa8
    created by net.cgoLookupIP
    /opt/go/src/net/cgo_unix.go:208 +0xb4

    goroutine 1 [select]:
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(addrConn).wait(0xc4200d1c00, 0x7f1ed6947a10, 0xc420357050, 0xc420130100, 0x805590, 0x7f1ed6947a10, 0xc420357050, 0x0)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:1032 +0x183
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(
    ClientConn).getTransport(0xc4201bdd40, 0x7f1ed6947a10, 0xc420357050, 0xc420357000, 0x7f1ed6947a10, 0xc420357020, 0x19, 0x0, 0xc420135900)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:724 +0x2f7
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc.newClientStream(0x7f1ed6947a10, 0xc420357050, 0x13fe3c0, 0xc4201bdd40, 0xdccc11, 0x20, 0x0, 0x0, 0x0, 0x0, ...)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/stream.go:189 +0x599
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc.NewClientStream(0x7f1ed6947990, 0xc420012290, 0x13fe3c0, 0xc4201bdd40, 0xdccc11, 0x20, 0x0, 0x0, 0x0, 0x18, ...)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/stream.go:105 +0x162
    github.com/hyperledger/fabric/protos/orderer.(atomicBroadcastClient).Deliver(0xc420028868, 0x7f1ed6947990, 0xc420012290, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x60)
    /opt/gopath/src/github.com/hyperledger/fabric/protos/orderer/ab.pb.go:499 +0xba
    github.com/hyperledger/fabric/peer/channel.InitCmdFactory(0xc420310100, 0x0, 0x0, 0x140a680)
    /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/channel.go:179 +0x2c0
    github.com/hyperledger/fabric/peer/channel.getGenesisBlock(0xc4202ddf40, 0x0, 0x0, 0x0)
    /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/deliverclient.go:141 +0x11c
    github.com/hyperledger/fabric/peer/channel.executeCreate(0xc4202ddf40, 0xc4202ddf40, 0x0)
    /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:183 +0x50
    github.com/hyperledger/fabric/peer/channel.create(0xc4202066c0, 0xc4201c5a40, 0x1, 0xa, 0xc4202ddf40, 0xdb23b0, 0x5)
    /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:213 +0x45
    github.com/hyperledger/fabric/peer/channel.createCmd.func1(0xc4202066c0, 0xc4201c5a40, 0x1, 0xa, 0x0, 0x0)
    /opt/gopath/src/github.com/hyperledger/fabric/peer/channel/create.go:59 +0x52
    github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(
    Command).execute(0xc4202066c0, 0xc4201c5900, 0xa, 0xa, 0xc4202066c0, 0xc4201c5900)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 +0x234
    github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(Command).ExecuteC(0x1401d40, 0xf, 0xc420010035, 0x7)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 +0x367
    github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(
    Command).Execute(0x1401d40, 0x7d, 0xc420010035)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 +0x2b
    main.main()
    /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:118 +0x54e

    goroutine 17 [syscall, locked to thread]:
    runtime.goexit()
    /opt/go/src/runtime/asm_amd64.s:2086 +0x1

    goroutine 33 [select]:
    net.cgoLookupIP(0x1418f40, 0xc420370480, 0x7ffcab798a2e, 0x13, 0xc420110780, 0xc420020668, 0x0, 0x0, 0x1438000, 0xc420020658)
    /opt/go/src/net/cgo_unix.go:209 +0x2f5
    net.lookupIP(0x1418f40, 0xc420370480, 0x7ffcab798a2e, 0x13, 0xc4202ff7a0, 0xce7140, 0xc420020740, 0x4099c4, 0x40005)
    /opt/go/src/net/lookup_unix.go:70 +0xf9
    net.glob..func11(0x1418f40, 0xc420370480, 0xe40da0, 0x7ffcab798a2e, 0x13, 0xc4200206c8, 0x7204c9, 0xc420020708, 0xc420020718, 0x455cc0)
    /opt/go/src/net/hook.go:19 +0x52
    net.lookupIPContext.func1(0xc4201bdd40, 0x7ffcab798a2e, 0x18, 0x0)
    /opt/go/src/net/lookup.go:119 +0x5c
    internal/singleflight.(Group).doCall(0x1435e20, 0xc42034f680, 0x7ffcab798a2e, 0x13, 0xc4203570b0)
    /opt/go/src/internal/singleflight/singleflight.go:93 +0x3c
    created by internal/singleflight.(
    Group).DoChan
    /opt/go/src/internal/singleflight/singleflight.go:86 +0x339

    goroutine 10 [syscall]:
    os/signal.signal_recv(0x0)
    /opt/go/src/runtime/sigqueue.go:116 +0x157
    os/signal.loop()
    /opt/go/src/os/signal/signal_unix.go:22 +0x22
    created by os/signal.init.1
    /opt/go/src/os/signal/signal_unix.go:28 +0x41

    goroutine 32 [select]:
    net.lookupIPContext(0x1418f40, 0xc420370480, 0x7ffcab798a2e, 0x13, 0x0, 0x0, 0x0, 0x0, 0x1f2a8b01)
    /opt/go/src/net/lookup.go:122 +0x7bc
    net.internetAddrList(0x1418f40, 0xc420370480, 0xdb177f, 0x3, 0x7ffcab798a2e, 0x18, 0x0, 0x0, 0x0, 0x1418f40, ...)
    /opt/go/src/net/ipsock.go:241 +0x5e0
    net.resolveAddrList(0x1418f40, 0xc420370480, 0xdb1d7f, 0x4, 0xdb177f, 0x3, 0x7ffcab798a2e, 0x18, 0x0, 0x0, ...)
    /opt/go/src/net/dial.go:179 +0x106
    net.(Dialer).DialContext(0xc4200496c8, 0x1418f40, 0xc420370480, 0xdb177f, 0x3, 0x7ffcab798a2e, 0x18, 0x0, 0x0, 0x0, ...)
    /opt/go/src/net/dial.go:329 +0x238
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc.dialContext(0x1418f40, 0xc420370480, 0xdb177f, 0x3, 0x7ffcab798a2e, 0x18, 0x0, 0x0, 0xc420106e10, 0xc420347800)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/go17.go:53 +0xaa
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc.DialContext.func1(0x7f1ed6947a50, 0xc420370480, 0x7ffcab798a2e, 0x18, 0x1, 0x0, 0x140a680, 0xc42011de50)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:341 +0x86
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc.newProxyDialer.func1(0x7f1ed6947a50, 0xc420370480, 0x7ffcab798a2e, 0x18, 0x13, 0x7f1ed694cf60, 0x0, 0x0)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/proxy.go:136 +0x143
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.dial(0x7f1ed6947a50, 0xc420370480, 0xc420351b30, 0x7ffcab798a2e, 0x18, 0x410a5e, 0xc4203355e0, 0xa0, 0x98)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:135 +0x5a
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.newHTTP2Client(0x7f1ed6947a50, 0xc420370480, 0x7ffcab798a2e, 0x18, 0x0, 0x0, 0xdbd7a1, 0x11, 0x0, 0x0, ...)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:173 +0xbf
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.NewClientTransport(0x7f1ed6947a50, 0xc420370480, 0x7ffcab798a2e, 0x18, 0x0, 0x0, 0xdbd7a1, 0x11, 0x0, 0x0, ...)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/transport.go:463 +0xae
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(
    addrConn).resetTransport(0xc4200d1c00, 0xc42033d700, 0x70e43c, 0x0)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:876 +0x282
    github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(ClientConn).resetAddrConn.func1(0xc4200d1c00)
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:648 +0x34
    created by github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(
    ClientConn).resetAddrConn
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:657 +0x756
    !!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
    ================== ERROR !!! FAILED to execute End-2-End Scenario ==================

    解决方法:
    vim docker-compose-cli.yaml
    添加

  • 相关阅读:
    Android中获取网络图片的三种方法
    关于android性能,内存优化
    web端调用Android端方法的过程
    [程序猿感悟] [悟] 两篇不错的文章 (转载自 stay4it )
    ListView 中使用onItemClick和onItemLongClick的常见问题
    TextView 在java中使用Html设置字体大小颜色
    Android-手机端开发用界面原型与布局工具
    Android Service完全解析,关于服务你所需知道的一切(下)
    Android Service完全解析,关于服务你所需知道的一切(上)
    (转 todo阅读)Android 官方博客
  • 原文地址:https://www.cnblogs.com/szqmvp/p/7838448.html
Copyright © 2011-2022 走看看