yeasy / docker-blockchain-explorer Goto Github PK
View Code? Open in Web Editor NEWDocker image of the blockchain-explorer
Docker image of the blockchain-explorer
Hi yeasy,
First, thank you for your great work.
Here I am trying to connect explore to Hyperledger Fabric 1.0. But according to yeasy/docker-compose-files#12. You mentioned rest api is not supported in Fabric 1.0.
Does it mean I cannot use blockchain explorer on Fabric 1.0 network?
Again, thanks a lot.
Regards,
Leon
When I run the command "docker run -p 9090:9090 -e HYP_REST_ENDPOINT=http://127.0.0.1:7050 yeasy/blockchain-explorer", I get the following error.
Compiling all doT templates...
Compiling HyperlegerExplorer.jst to file
{ Error: connect ECONNREFUSED 127.0.0.1:7050
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 7050 }
And, "docker ps" result on my machine:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8009a7b7f478 dev-peer3-mycc-1.0 "chaincode -peer.addr" About an hour ago Up About an hour dev-peer3-mycc-1.0
e4672f2a9477 dev-peer0-mycc-1.0 "chaincode -peer.addr" About an hour ago Up About an hour dev-peer0-mycc-1.0
7a1845e28a24 dev-peer2-mycc-1.0 "chaincode -peer.addr" About an hour ago Up About an hour dev-peer2-mycc-1.0
6bea7a7f22c6 hyperledger/fabric-peer "peer node start --pe" About an hour ago Up About an hour 0.0.0.0:10051->7051/tcp, 0.0.0.0:10053->7053/tcp peer3
dc31cb3220e8 hyperledger/fabric-peer "peer node start --pe" About an hour ago Up About an hour 0.0.0.0:9051->7051/tcp, 0.0.0.0:9053->7053/tcp peer2
93f977c33b6a hyperledger/fabric-peer "peer node start --pe" About an hour ago Up About an hour 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer1
e65f7eb55078 hyperledger/fabric-peer "peer node start --pe" About an hour ago Up About an hour 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0
ce001ce2f115 hyperledger/fabric-orderer "orderer" About an hour ago Up About an hour 0.0.0.0:7050->7050/tcp orderer0
Also, I can telnet "127.0.0.1 7050".
Please tell me what can result in this error.
Compiling all doT templates...
Compiling HyperlegerExplorer.jst to file
{ Error: Parse Error
at Error (native)
at Socket.socketOnData (_http_client.js:362:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:547:20) bytesParsed: 0, code: 'HPE_INVALID_CONSTANT' }
xx@ubuntu:~/projects/data/hyperledger/fabric/docker-compose-files-master/hyperledger_fabric/latest$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
93a6fec14695 yeasy/hyperledger-fabric-peer:latest "peer node start" About an hour ago Up About an hour 0.0.0.0:7051-7053->7051-7053/tcp peer0.org1.example.com
e02629f57b4d yeasy/hyperledger-fabric-peer:latest "peer node start" About an hour ago Up About an hour 0.0.0.0:10051->7051/tcp, 0.0.0.0:10052->7052/tcp, 0.0.0.0:10053->7053/tcp peer1.org2.example.com
e81a7f2c84b3 yeasy/hyperledger-fabric-peer:latest "peer node start" About an hour ago Up About an hour 0.0.0.0:9051->7051/tcp, 0.0.0.0:9052->7052/tcp, 0.0.0.0:9053->7053/tcp peer0.org2.example.com
e3509ea31cf0 yeasy/hyperledger-fabric-peer:latest "peer node start" About an hour ago Up About an hour 0.0.0.0:8051->7051/tcp, 0.0.0.0:8052->7052/tcp, 0.0.0.0:8053->7053/tcp peer1.org1.example.com
3e9c6e6cd9ea yeasy/hyperledger-fabric:latest "bash -c 'cd /tmp; s…" About an hour ago Up About an hour 7050-7054/tcp fabric-cli
b1a95fc6bc7a yeasy/hyperledger-fabric-orderer:latest "orderer start" About an hour ago Up About an hour 0.0.0.0:7050->7050/tcp orderer.example.com
xx@ubuntu:~/projects/data/hyperledger/fabric/docker-compose-files-master/hyperledger_fabric/latest$ docker run -d yeasy/blockchain-explorer
60b7f96ac3854c82cbddbc7bd04b615e289b4ffeee4aa318d35c299f6aedb8c0
xx@ubuntu:~/projects/data/hyperledger/fabric/docker-compose-files-master/hyperledger_fabric/latest$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b9e2f9b87165 yeasy/blockchain-explorer "bash start.sh" 5 seconds ago Exited (0) 3 seconds ago zen_joliot
93a6fec14695 yeasy/hyperledger-fabric-peer:latest "peer node start" About an hour ago Up About an hour 0.0.0.0:7051-7053->7051-7053/tcp peer0.org1.example.com
e02629f57b4d yeasy/hyperledger-fabric-peer:latest "peer node start" About an hour ago Up About an hour 0.0.0.0:10051->7051/tcp, 0.0.0.0:10052->7052/tcp, 0.0.0.0:10053->7053/tcp peer1.org2.example.com
e81a7f2c84b3 yeasy/hyperledger-fabric-peer:latest "peer node start" About an hour ago Up About an hour 0.0.0.0:9051->7051/tcp, 0.0.0.0:9052->7052/tcp, 0.0.0.0:9053->7053/tcp peer0.org2.example.com
e3509ea31cf0 yeasy/hyperledger-fabric-peer:latest "peer node start" About an hour ago Up About an hour 0.0.0.0:8051->7051/tcp, 0.0.0.0:8052->7052/tcp, 0.0.0.0:8053->7053/tcp peer1.org1.example.com
3e9c6e6cd9ea yeasy/hyperledger-fabric:latest "bash -c 'cd /tmp; s…" About an hour ago Up About an hour 7050-7054/tcp fabric-cli
b1a95fc6bc7a yeasy/hyperledger-fabric-orderer:latest "orderer start" About an hour ago Up About an hour 0.0.0.0:7050->7050/tcp orderer.example.com
d9a42d3844ba f2a91732366c "/hello" 10 days ago Exited (0) 10 days ago eager_murdock
老师,
您好!
按照您的文档,执行 4-peers-with-explorer.yml, explorer 一直 exit restart:
pbft_explorer_1 exited with code 0
pbft_explorer_1 exited with code 0
pbft_explorer_1 exited with code 0
pbft_explorer_1 exited with code 0
pbft_explorer_1 exited with code 0
pbft_explorer_1 exited with code 0
我的explorer 镜像版本(两个都试了):
yeasy/blockchain-explorer latest e05d7b68bf9c 2 years ago
yeasy/blockchain-explorer 0.1.0-preview d3d781c8c96b 3 years ago
另外,请问如果修改您的 yml 文件,增加 peer5, peer6 .... 就可以增加共识节点的个数了吗 ?
谢谢!
While
"docker-compose -f 4-peers-with-membersrvc.yml up -d"
then
" docker run -p 9090:9090 -e HYP_REST_ENDPOINT=http://127.0.0.1:7050 yeasy/blockchain-explorer"
It was thrown:
"
Compiling HyperlegerExplorer.jst to file
{ Error: connect ECONNREFUSED 127.0.0.1:7050
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 7050 }
"
Any version number mismatch? & thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.