Tools, FAQ, Tutorials:
Peer Node Log File Location
Where are Peer Node Log Files located?
✍: FYIcenter.com
Log files of the Hyperledger Composer peer node
in the Docker container that runs the peer node.
You can use these commands find peer node log files:
1. Find the container id of the peer node:
$ docker ps | grep peer 6bc4e52f82d0 hyperledger/fabric-peer:x86_64-1.1.0 ...
2. Fetch most recent log messages from the container:
$ docker logs 6bc4e52f82d0 ... 2019-04-01 13:32:48.645 UTC [flogging] setModuleLevel -> DEBU 1e1 Module 'grpc' logger enabled for log level 'ERROR' 2019-04-01 14:08:53.665 UTC [common/deliverevents] Deliver -> DEBU 1e4 Starting new Deliver handler 2019-04-01 14:08:53.665 UTC [common/deliver] Handle -> DEBU 1e5 Starting new deliver loop for 127.0.0.1.1:38768 2019-04-01 14:08:53.665 UTC [common/deliver] Handle -> DEBU 1e6 Attempting to read seek info message from 127.0.0.1:38768 2019-04-01 14:08:53.665 UTC [common/deliver] deliverBlocks -> DEBU 1e7 Rejecting deliver for 127.0.0.1.1:38768 because channel composerchannel not found 2019-04-01 14:08:53.665 UTC [common/deliver] Handle -> DEBU 1e8 Waiting for new SeekInfo from 127.0.0.1.1:38768 2019-04-01 14:08:53.665 UTC [common/deliver] Handle -> DEBU 1e9 Attempting to read seek info message from 127.0.0.1.1:38768 2019-04-01 14:08:53.708 UTC [common/deliver] Handle -> WARN 1ea Error reading from 127.0.0.1.1:38768: rpc error: code = Canceled desc = context canceled 2019-04-01 14:08:53.708 UTC [common/deliverevents] func1 -> DEBU 1eb Closing Deliver stream
3. If you want to get log messages after a specific date and time, you can use the "--since" option and redirect them to a file:
$ docker logs --since 2019-04-01 6bc4e52f82d0 2> peer.log
4. You can also follow and watch the log file in real time using the "-f" option. This is a good idea to troubleshoot any Hyperledger Composer runtime issues. Press "Ctrl-C" to stop it.
$ docker logs -f 6bc4e52f82d0
Â
⇒ Peer Log Messages - Start Environment
⇠Hyperledger Composer Log File Location
2020-12-02, 1131🔥, 0💬
Popular Posts:
How to start Docker Daemon, "dockerd", on CentOS systems? If you have installed Docker on your CentO...
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
What Is HTML? HTML (HyperText Markup Language) is the standard markup language for creating Web page...
How to add an API to an API product for internal testing on the Publisher Portal of an Azure API Man...