前提・実現したいこと
Hyperledger FabricでToDoリストアプリを作っています。
Fabric SDKを初期化する時に下記のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
14:23:29.069 [grpc] DEBU : grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::1]:7050: getsockopt: connection refused"; Reconnecting to {localhost:7050 <nil>} Unable to initialize the Fabric SDK: CreateAndJoinChannel return error: CreateChannel returned error
該当のソースコード
config.ymlファイル:
client: peers: # peer0 - host: "localhost" port: 7051 eventHost: "localhost" eventPort: 7053 primary: true tls: # Certificate location absolute path certificate: "$GOPATH/src/github.com/mf/chaintodo/todo-service/fixtures/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/cacerts/org1.example.com-cert.pem" serverHostOverride: "peer0.org1.example.com" tls: enabled: true security: enabled: true hashAlgorithm: "SHA2" level: 256 tcert: batch: size: 200 orderer: host: "localhost" port: 7050 tls: # Certificate location absolute path certificate: "$GOPATH/src/github.com/mf/chaintodo/todo-service/fixtures/channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/cacerts/example.com-cert.pem" serverHostOverride: "orderer.example.com" logging: level: info fabricCA: tlsEnabled: true id: "Org1MSP" name: "ca-org1" homeDir: "/tmp/" mspDir: "msp" serverURL: "https://localhost:7054" certfiles : - "$GOPATH/src/github.com/mf/chaintodo/todo-service/fixtures/tls/fabricca/ca/ca_root.pem" client: keyfile: "$GOPATH/src/github.com/mf/chaintodo/todo-service/fixtures/tls/fabricca/client/client_client1-key.pem" certfile: "$GOPATH/src/github.com/mf/chaintodo/todo-service/fixtures/tls/fabricca/client/client_client1.pem" cryptoconfig: path: "$GOPATH/src/github.com/mf/chaintodo/todo-service/fixtures/channel/crypto-config"
試したこと
ホストサービスのIPv6を有効化しようと試みたのですが、/etc/docker/daemon.jsonのファイルへのアクセスがわからず、どう手をつけていいのかわからなくなり質問させて頂くことにしました。
補足情報(FW/ツールのバージョンなど)
docker versionの出力結果:
Client: Version: 18.03.0-ce API version: 1.37 Go version: go1.9.4 Git commit: 0520e24 Built: Wed Mar 21 23:06:22 2018 OS/Arch: darwin/amd64 Experimental: false Orchestrator: swarm Server: Engine: Version: 18.03.0-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.4 Git commit: 0520e24 Built: Wed Mar 21 23:14:32 2018 OS/Arch: linux/amd64 Experimental: true
docker infoの出力結果:
Containers: 6 Running: 2 Paused: 0 Stopped: 4 Images: 23 Server Version: 18.03.0-ce Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 init version: 949e6fa Security Options: seccomp Profile: default Kernel Version: 4.9.87-linuxkit-aufs Operating System: Docker for Mac OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 1.952GiB Name: linuxkit-025000000001 ID: 25LU:5DIF:VXIL:RNZI:4N4R:36WH:NCPU:KVAU:UR7E:IEM6:CCMB:VLTW Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): true File Descriptors: 39 Goroutines: 54 System Time: 2018-04-13T09:32:49.5804164Z EventsListeners: 2 HTTP Proxy: docker.for.mac.http.internal:3128 HTTPS Proxy: docker.for.mac.http.internal:3129 Registry: https://index.docker.io/v1/ Labels: Experimental: true Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
docker inspect network hostの出力結果:
[ { "Name": "host", "Id": "086cd1a98072322741919f567ba2e454bcb5491973e0ca31bb11f613b5da81f3", "Created": "2018-03-22T14:05:13.272024476Z", "Scope": "local", "Driver": "host", "EnableIPv6": false, "IPAM": { "Driver": "default", "Options": null, "Config": [] }, "Internal": false, "Attachable": false, "Ingress": false, "ConfigFrom": { "Network": "" }, "ConfigOnly": false, "Containers": {}, "Options": {}, "Labels": {} } ]
どうぞよろしくお願いいたします。
あなたの回答
tips
プレビュー