Coder Social home page Coder Social logo

davidkhala / delphi-fabric Goto Github PK

View Code? Open in Web Editor NEW
23.0 5.0 15.0 11.95 MB

Focusing on study fabric capability

License: Apache License 2.0

Shell 1.01% JavaScript 89.83% Java 8.72% PowerShell 0.44%
fabric hyperledger fabric-sdk-node fabric-sdk-java network-yaml

delphi-fabric's Introduction

Delphi-fabric

Delphi method is a structured, interactive forecasting communication technique which relies on a panel of experts.

This is why 'Delphi' here, instead of referring to a program language, or any failed project(s) from ASTRI.

This project aims to provide a user-friendly fabric application development toolset including

  • fabric network simulation (alternative of Build your first network)
  • chaincode lifecycle tools
  • adopt stateless fashion when using multiple fabric-sdk, to power fabric proxy server second-development
  • as a major integration testing environment for fabric-common, which is a pure helper to fabric-sdk user.

Why

  • No multiple config file confusing anymore. All magic in orgs.json and chaincode.json
    • no crypto-config.yaml
    • no docker-compose.yaml
    • auto-generated and managed configtx.yaml and genesis blocks for each channel.
    • named docker volume to avoid infinite file path hell
  • No need to copy and paste to have a proper connection profile from existing network. Now you are simulation your own network
  • No need to global find all appearance of org1 and replace it with orgA, organization names and mspid are put together
  • Powered by our carefully tested cleaning-up process, it is impossible here forgetting to clean-up legacy configs after you restart your network.
  • Production-ready and long run maintenance
  • Perfect same crypto-material file structure as you use cryptogen. We have place fabric-ca response in good manner.

Features

  • use fabric-ca to generate all crypto material, instead of cryptogen
  • use config-less fabric-ca
  • use npm dockerode to run docker container with comprehensive JSON configuration file, instead of docker-compose on yaml file
  • JSON config cater for both application and network structure (superset of connection profile and network-yaml)
  • channel update support
  • chaincode language support
    • nodeJS
    • golang
  • Fixed security leakage (wallet remaining) on development machine: priv-file, crypto-store in .hfc-key-store
  • support hybrid data storage model (couchdb|leveldb), you could specify it for each peer
  • update anchor peers as a normal channel config instead of using configtx
  • use npm:js-yaml to read|write YAML files instead of jq

Major configuration

  • we cluster network and channel config in config/orgs.json, enjoy!
  • chaincodes configurations: config/chaincode.json

sample chaincode source

Installation

Installation Script

  1. $ ./install.sh gitSync
    after first time clone this repository, submodule should be initialize
  2. $ ./install.sh

Requirements & dependencies**

  • Compatible OS
    • ubuntu Focal
    • MacOS
    • CentOS 9 Stream
  • Fabric

Test on single host


  • run $ ./docker.sh to restart network

delphi-fabric's People

Contributors

davidkhala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

delphi-fabric's Issues

Unable to instantiate chaincode in Swarm mode

Hi,
I've been having issues getting my chaincode instantiated in swarm mode.
I'm running the swarm on one machine for now, and I had to add one parameter in the docker-compose.js file to be able to create the channel to begin with (I'm not sure how it worked for you and others with the configuration as it is now in the repository):

'CORE_PEER_ADDRESSAUTODETECT=true'

Without this flag I kept getting errors looking like this inside peers, when attempting to create the channel:
createChaincodeServer -> ERRO 027 Error creating GRPC server: listen tcp: lookup peer1.BU.Delphi.com on 127.0.0.11:53: no such host

Other than that I haven't made any other changes to the code. All fabric images are 1.1.0-alpha.
I'm trying to run with TLS disabled and with a solo orderer. When trying to execute the testInstall script I get through the installation part but then I'm getting the following when trying to instantiate:

[2018-02-08T16:21:49.544] [DEBUG] install-chaincode - { peers_length: 2,
  chaincodeId: 'adminChaincode',
  chaincodePath: 'github.com/davidkhala/chaincode/golang/admin',
  chaincodeVersion: 'v0' }
info: [packager/Golang.js]: packaging GOLANG from github.com/davidkhala/chaincode/golang/admin
[2018-02-08T16:21:49.598] [INFO] Helper - install was good for [0] { version: 0,
  timestamp: null,
  response: { status: 200, message: '', payload: <Buffer 4f 4b> },
  payload: <Buffer >,
  endorsement: null }
[2018-02-08T16:21:49.599] [INFO] Helper - install was good for [1] { version: 0,
  timestamp: null,
  response: { status: 200, message: '', payload: <Buffer 4f 4b> },
  payload: <Buffer >,
  endorsement: null }
[2018-02-08T16:21:49.608] [DEBUG] install-chaincode - { peers_length: 1,
  chaincodeId: 'adminChaincode',
  chaincodePath: 'github.com/davidkhala/chaincode/golang/admin',
  chaincodeVersion: 'v0' }
info: [packager/Golang.js]: packaging GOLANG from github.com/davidkhala/chaincode/golang/admin
[2018-02-08T16:21:49.626] [INFO] Helper - install was good for [0] { version: 0,
  timestamp: null,
  response: { status: 200, message: '', payload: <Buffer 4f 4b> },
  payload: <Buffer >,
  endorsement: null }
[2018-02-08T16:21:49.634] [DEBUG] install-chaincode - { peers_length: 1,
  chaincodeId: 'adminChaincode',
  chaincodePath: 'github.com/davidkhala/chaincode/golang/admin',
  chaincodeVersion: 'v0' }
info: [packager/Golang.js]: packaging GOLANG from github.com/davidkhala/chaincode/golang/admin
[2018-02-08T16:21:49.653] [INFO] Helper - install was good for [0] { version: 0,
  timestamp: null,
  response: { status: 200, message: '', payload: <Buffer 4f 4b> },
  payload: <Buffer >,
  endorsement: null }
[2018-02-08T16:21:49.668] [DEBUG] instantiate-chaincode - { channelName: 'delphichannel',
  peersSize: 1,
  chaincodeId: 'adminChaincode',
  chaincodeVersion: 'v0',
  args: [] }
[2018-02-08T16:21:49.699] [INFO] instantiate-chaincode - channel.initialize() success [ { id: 'ENGMSP' }, { id: 'BUMSP' }, { id: 'PMMSP' } ]
error: [Peer.js]: sendProposal - timed out after:45000
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT
    at Timeout._onTimeout (/home/exciPlain/delphi-fabric/node_modules/fabric-client/lib/Peer.js:124:19)
    at ontimeout (timers.js:386:11)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)
[2018-02-08T16:22:34.721] [ERROR] Helper - instantiate was bad for [0] Error: REQUEST_TIMEOUT
    at Timeout._onTimeout (/home/exciPlain/delphi-fabric/node_modules/fabric-client/lib/Peer.js:124:19)
    at ontimeout (timers.js:386:11)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)
[2018-02-08T16:22:34.736] [ERROR] testInstall - { proposalResponses: 
   [ Error: REQUEST_TIMEOUT
         at Timeout._onTimeout (/home/exciPlain/delphi-fabric/node_modules/fabric-client/lib/Peer.js:124:19)
         at ontimeout (timers.js:386:11)
         at tryOnTimeout (timers.js:250:5)
         at Timer.listOnTimeout (timers.js:214:5) ] }

The logs from the failed dev-peer0.BU container:

docker logs dev-peer0.BU.Delphi.com-adminChaincode-v0
2018-02-08 15:22:07.223 UTC [shim] userChaincodeStreamGetter -> ERRO 001 context deadline exceeded
error trying to connect to local peer
github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter
	/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:111
github.com/hyperledger/fabric/core/chaincode/shim.Start
	/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:150
main.main
	/chaincode/input/src/github.com/davidkhala/chaincode/golang/admin/main.go:74
runtime.main
	/opt/go/src/runtime/proc.go:195
runtime.goexit
	/opt/go/src/runtime/asm_amd64.s:2337
2018-02-08 15:22:07.223 UTC [admincc] Errorf -> ERRO 002 Error starting Simple chaincode: error trying to connect to local peer: context deadline exceeded

On the peer that the instantiation was attempted in:

2018-02-08 15:21:49.708 UTC [chaincode] launchAndWaitForRegister -> DEBU 3dd chaincode adminChaincode:v0 is being launched
2018-02-08 15:21:49.708 UTC [chaincode] getLaunchConfigs -> DEBU 3de Executable is chaincode
2018-02-08 15:21:49.708 UTC [chaincode] getLaunchConfigs -> DEBU 3df Args [chaincode -peer.address=10.0.0.3:7052]
2018-02-08 15:21:49.708 UTC [chaincode] getLaunchConfigs -> DEBU 3e0 Envs [CORE_CHAINCODE_ID_NAME=adminChaincode:v0 CORE_PEER_TLS_ENABLED=false CORE_CHAINCODE_LOGGING_LEVEL=info CORE_CHAINCODE_LOGGING_SHIM=warning CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}]
2018-02-08 15:21:49.708 UTC [chaincode] getLaunchConfigs -> DEBU 3e1 FilesToUpload []
2018-02-08 15:21:49.708 UTC [chaincode] launch -> DEBU 3e2 start container: adminChaincode:v0(networkid:dev,peerid:peer0.BU.Delphi.com)
2018-02-08 15:21:49.708 UTC [chaincode] launch -> DEBU 3e3 start container with args: chaincode -peer.address=10.0.0.3:7052
2018-02-08 15:21:49.708 UTC [chaincode] launch -> DEBU 3e4 start container with env:
	CORE_CHAINCODE_ID_NAME=adminChaincode:v0
	CORE_PEER_TLS_ENABLED=false
	CORE_CHAINCODE_LOGGING_LEVEL=info
	CORE_CHAINCODE_LOGGING_SHIM=warning
	CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}
2018-02-08 15:21:49.708 UTC [container] lockContainer -> DEBU 3e5 waiting for container(dev-peer0.BU.Delphi.com-adminChaincode-v0) lock
2018-02-08 15:21:49.708 UTC [container] lockContainer -> DEBU 3e6 got container (dev-peer0.BU.Delphi.com-adminChaincode-v0) lock
2018-02-08 15:21:49.708 UTC [dockercontroller] Start -> DEBU 3e7 Cleanup container dev-peer0.BU.Delphi.com-adminChaincode-v0
2018-02-08 15:21:49.708 UTC [dockercontroller] stopInternal -> DEBU 3e8 Stop container dev-peer0.BU.Delphi.com-adminChaincode-v0(No such container: dev-peer0.BU.Delphi.com-adminChaincode-v0)
2018-02-08 15:21:49.709 UTC [dockercontroller] stopInternal -> DEBU 3e9 Kill container dev-peer0.BU.Delphi.com-adminChaincode-v0 (No such container: dev-peer0.BU.Delphi.com-adminChaincode-v0)
2018-02-08 15:21:49.709 UTC [dockercontroller] stopInternal -> DEBU 3ea Remove container dev-peer0.BU.Delphi.com-adminChaincode-v0 (No such container: dev-peer0.BU.Delphi.com-adminChaincode-v0)
2018-02-08 15:21:49.709 UTC [dockercontroller] Start -> DEBU 3eb Start container dev-peer0.BU.Delphi.com-adminChaincode-v0
2018-02-08 15:21:49.710 UTC [dockercontroller] getDockerHostConfig -> DEBU 3ec docker container hostconfig NetworkMode: delphiNetwork
2018-02-08 15:21:49.710 UTC [dockercontroller] createContainer -> DEBU 3ed Create container: dev-peer0.BU.Delphi.com-adminChaincode-v0
2018-02-08 15:21:49.713 UTC [dockercontroller] Start -> DEBU 3ee start-could not find image <dev-peer0.bu.delphi.com-adminchaincode-v0-3ceceeddfa246b144ce61bf31a16bccdf3458c6dfbdc1afe4026bddb1918a125> (container id <dev-peer0.BU.Delphi.com-adminChaincode-v0>), because of <no such image>...attempt to recreate image
2018-02-08 15:21:49.714 UTC [chaincode-platform] generateDockerfile -> DEBU 3ef 
FROM hyperledger/fabric-baseos:x86_64-0.4.5
ADD binpackage.tar /usr/local/bin
LABEL org.hyperledger.fabric.chaincode.id.name="adminChaincode" \
      org.hyperledger.fabric.chaincode.id.version="v0" \
      org.hyperledger.fabric.chaincode.type="GOLANG" \
      org.hyperledger.fabric.version="1.1.0-alpha" \
      org.hyperledger.fabric.base.version="0.4.5"
ENV CORE_CHAINCODE_BUILDLEVEL=1.1.0-alpha
2018-02-08 15:21:49.715 UTC [golang-platform] GenerateDockerBuild -> INFO 3f0 building chaincode with ldflagsOpt: '-ldflags "-linkmode external -extldflags '-static'"'
2018-02-08 15:21:49.715 UTC [golang-platform] GenerateDockerBuild -> INFO 3f1 building chaincode with tags: 
2018-02-08 15:21:49.716 UTC [util] DockerBuild -> DEBU 3f2 Attempting build with image hyperledger/fabric-ccenv:x86_64-1.1.0-alpha
2018-02-08 15:22:02.434 UTC [dockercontroller] deployImage -> DEBU 3f3 Created image: dev-peer0.bu.delphi.com-adminchaincode-v0-3ceceeddfa246b144ce61bf31a16bccdf3458c6dfbdc1afe4026bddb1918a125
2018-02-08 15:22:02.434 UTC [dockercontroller] Start -> DEBU 3f4 start-recreated image successfully
2018-02-08 15:22:02.434 UTC [dockercontroller] createContainer -> DEBU 3f5 Create container: dev-peer0.BU.Delphi.com-adminChaincode-v0
2018-02-08 15:22:02.676 UTC [dockercontroller] createContainer -> DEBU 3f6 Created container: dev-peer0.bu.delphi.com-adminchaincode-v0-3ceceeddfa246b144ce61bf31a16bccdf3458c6dfbdc1afe4026bddb1918a125
2018-02-08 15:22:04.285 UTC [dockercontroller] Start -> DEBU 3f7 Started container dev-peer0.BU.Delphi.com-adminChaincode-v0
2018-02-08 15:22:04.286 UTC [container] unlockContainer -> DEBU 3f8 container lock deleted(dev-peer0.BU.Delphi.com-adminChaincode-v0)
2018-02-08 15:26:49.708 UTC [chaincode] launchAndWaitForRegister -> DEBU 3f9 stopping due to error while launching: timeout expired while starting chaincode adminChaincode:v0(networkid:dev,peerid:peer0.BU.Delphi.com,tx:902d0e6195b50d9ebd276cdb9c10bcd75797d081b01d3f3eac1db1d425d6b74e)

....


2018-02-08 15:26:49.804 UTC [chaincode] Launch -> ERRO 401 launchAndWaitForRegister failed: timeout expired while starting chaincode adminChaincode:v0(networkid:dev,peerid:peer0.BU.Delphi.com,tx:902d0e6195b50d9ebd276cdb9c10bcd75797d081b01d3f3eac1db1d425d6b74e)

Inspecting the dev-peer0 container shows that something is not being set-up properly on the network side:

"Networks": {
                "delphiNetwork": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "111663a89114"
                    ],
                    "NetworkID": "1d654yawbx3c9hqz199le717e",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "",
                    "DriverOpts": null
                }
            }

No IP, no MacAddress etc.
Could I have some help on this issue?

key-level endorsement

GetStateValidationParameter always return empty, even after SetStateValidationParameter success.

add org error at channel update (single host mode).

你好,在Ubuntu16.04( 阿里云ECS) 上按照README的步骤执行,遇到了如下错误:

Error: No public port '7051/tcp' published for AMContainerName
Error: No public port '7053/tcp' published for AMContainerName

之后log继续输出,运行了configtxlator。又输出如下错误:

[2017-12-04 16:13:52.395] [ERROR] test-configtxlator - addOrg Error: No identity has been assigned to this client
    at Client._getSigningIdentity (/root/delphi-fabric/node_modules/fabric-client/lib/Client.js:1150:11)
    at Channel.getChannelConfig (/root/delphi-fabric/node_modules/fabric-client/lib/Channel.js:516:36)
    at Channel.initialize (/root/delphi-fabric/node_modules/fabric-client/lib/Channel.js:143:15)
    at api.channelUpdate.then (/root/delphi-fabric/app/testConfigtxlator.js:39:18)
    at process._tickCallback (internal/process/next_tick.js:103:7)

请问有什么解决方案吗?或者是操作错误?

Ledger data rollback problem

In the development environment, there is a problem that the peer node and the ordering node are not aligned, and then use the rollback function provided by the node to roll back the ledger data , and the following error occurs:
11111111111111
Per reported, there is no error on following cases

  • compile Fabric source code on Windows, and run native peer

The error apears in Linux docker container

[TODO] java sdk: keep update

It has been for a while that java sdk samples and wrapper are not under active maintain, we should think if there is time to reactivate it.

[Fabric-ca weakness]

cannot change csr.cn via '--csr.cn=${container_name}' TLS CSR: {CN:example.com Names:[{C:US ST:North Carolina L: O:Hyperledger OU:Fabric SerialNumber:}] Hosts:[02cf209b65fb localhost] KeyRequest: CA: SerialNumber:}

[2.4] peer couchdb connectivity issue

2022-08-14 09:48:37.853 UTC 000e WARN [couchdb] handleRequest -> Attempt 1 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 125ms
2022-08-14 09:48:37.979 UTC 000f WARN [couchdb] handleRequest -> Attempt 2 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 250ms
2022-08-14 09:48:38.230 UTC 0010 WARN [couchdb] handleRequest -> Attempt 3 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 500ms
2022-08-14 09:48:38.731 UTC 0011 WARN [couchdb] handleRequest -> Attempt 4 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 1s
2022-08-14 09:48:39.732 UTC 0012 WARN [couchdb] handleRequest -> Attempt 5 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 2s
2022-08-14 09:48:41.734 UTC 0013 WARN [couchdb] handleRequest -> Attempt 6 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 4s
2022-08-14 09:48:45.736 UTC 0014 WARN [couchdb] handleRequest -> Attempt 7 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 8s
2022-08-14 09:48:53.737 UTC 0015 WARN [couchdb] handleRequest -> Attempt 8 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 16s
2022-08-14 09:49:09.739 UTC 0016 WARN [couchdb] handleRequest -> Attempt 9 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 32s
2022-08-14 09:49:41.741 UTC 0017 WARN [couchdb] handleRequest -> Attempt 10 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retrying couchdb request in 1m4s
2022-08-14 09:50:45.743 UTC 0018 WARN [couchdb] handleRequest -> Attempt 11 of 11 returned error: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused. Retries exhausted
panic: Error in instantiating ledger provider: Get "http://couchdb.peer0.astri.org:5984/": dial tcp 172.28.0.5:5984: connect: connection refused
http error calling couchdb
github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*couchInstance).handleRequest
        /go/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/couchdb.go:1714
github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*couchInstance).verifyCouchConfig
        /go/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/couchdb.go:353
github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.createCouchInstance
        /go/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/couchdbutil.go:88
github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.NewVersionedDBProvider
        /go/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb.go:56
github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/privacyenabledstate.NewDBProvider
        /go/src/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/privacyenabledstate/db.go:66
github.com/hyperledger/fabric/core/ledger/kvledger.(*Provider).initStateDBProvider
        /go/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger_provider.go:227
github.com/hyperledger/fabric/core/ledger/kvledger.NewProvider
        /go/src/github.com/hyperledger/fabric/core/ledger/kvledger/kv_ledger_provider.go:118
github.com/hyperledger/fabric/core/ledger/ledgermgmt.NewLedgerMgr
        /go/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:71
github.com/hyperledger/fabric/internal/peer/node.serve
        /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:429
github.com/hyperledger/fabric/internal/peer/node.glob..func6
        /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:129
github.com/spf13/cobra.(*Command).execute
        /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:762
github.com/spf13/cobra.(*Command).ExecuteC
        /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:852
github.com/spf13/cobra.(*Command).Execute
        /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:800
main.main
        /go/src/github.com/hyperledger/fabric/cmd/peer/main.go:56
runtime.main
        /usr/local/go/src/runtime/proc.go:250
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1571
unable to connect to CouchDB, check the hostname and port

goroutine 1 [running]:
github.com/hyperledger/fabric/core/ledger/ledgermgmt.NewLedgerMgr(0xc000215a10)
        /go/src/github.com/hyperledger/fabric/core/ledger/ledgermgmt/ledger_mgmt.go:85 +0x5f4
github.com/hyperledger/fabric/internal/peer/node.serve({0x142efc0?, 0xc000215d18?, 0xc000215cf0?})
        /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:429 +0x21e9
github.com/hyperledger/fabric/internal/peer/node.glob..func6(0x239fcc0?, {0x2433908?, 0x0?, 0x0?})
        /go/src/github.com/hyperledger/fabric/internal/peer/node/start.go:129 +0x56
github.com/spf13/cobra.(*Command).execute(0x239fcc0, {0x2433908, 0x0, 0x0})
        /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:762 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x23a0640)
        /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:852 +0x2dc
github.com/spf13/cobra.(*Command).Execute(...)
        /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:800
main.main()
        /go/src/github.com/hyperledger/fabric/cmd/peer/main.go:56 +0x392

Anchor peer config tx signature error

we see msp data lost in flight from below logs

2021-08-07 09:53:10.133 UTC [policies] SignatureSetToValidIdentities -> WARN 05a invalid identity: serialized-identity= error="MSP  is not defined on channel"
2021-08-07 09:53:10.133 UTC [orderer.common.broadcast] ProcessMessage -> WARN 05b [channel: allchannel] Rejecting broadcast of config message from 172.21.0.1:47628 because of error: error applying config update to existing channel 'allchannel': error authorizing update: error validating DeltaSet: policy for [Group]  /Channel/Application/astri.org not satisfied: signature set did not satisfy policy

Fabric2.x deployment contract signature policy problem

In the chain code approval, all organizations have passed, but when submitting, the organization did not agree with the chain code definition (I did not add the signature policy and --collections-config when I approved it. I did it at the time of submission. Designated)
2222222222

baas常见功能

raised in sm-blockchain

证书管理

区块链用户管理

  • 管理员和用户证书的撤销与更新
  • 证书注册时证书信息(CSR)可以定制。

证书准入

  • 实现为机构的排序节点、对等节点实现证书注册、撤销和更新。
  • 支持节点角色定义(NodeOU)。

区块链网络管理

  • 节点准入。网络扩容,向已经存储的区块链网络中增加新节点。网络缩容,从现有的网络中移除某个节点。
  • 机构准入。新机构加入到某个通道中。
  • 背书策略。部署链码可以指定接受背书结果的策略,例如指定接受背书数量(例如,3个中2个背书),指定某个、某几个具体机构背书。

区块链工具

  • 证书过期后自动更新,作为服务发布

区块链监控工具

  • graphana上显示Prometheus
  • cloudwatch接收statsD
  • cloudwatch配置手册

ownership of this: delphi-fabric

migrate to use make file instead of ./install.sh (https://www.gnu.org/software/make/manual/make.html#Introduction)
Suggestion from Paul: Question: are your repos more to do with Fabric itself, rather than pure Fabric developer resources (ie go/js/java/typescript chaincode/sdk work)? (I'm only concentrating on Fabric Developer resources in particular) If so - I would suggest to contact someone like Silona Bonewald to find a suitable home/new page on Confluence for that? I'm just asking where its 'natural' home is 🙂 Also I would suggest the README explains 1) what it is 2) what it does (as a goal of 'studying Fabric' resources) 3) what the consumer would get from trying it out or hope to achieve?

[2.4] tls orderer error

Periodically appear

2021-08-03 16:12:53.527 UTC [core.comm] ServerHandshake -> ERRO 2f7 Server TLS handshake failed in 535.923µs with error remote error: tls: bad certificate server=Orderer remoteaddress=172.21.0.11:60898
2021-08-03 16:13:00.493 UTC [comm.tls] ClientHandshake -> ERRO 321 Client TLS handshake failed after 562.088µs with error: x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0 remoteaddress=172.21.0.6:7050

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.