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, ∼1857🔥, 0💬
Popular Posts:
Can You Add Values to an Array without Keys in PHP? Can You Add Values to an Array with a Key? The a...
How To Copy Array Values to a List of Variables in PHP? If you want copy all values of an array to a...
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to use the "forward-request" Policy Statement to call the backend service for an Azure API servi...
How To Read the Entire File into a Single String in PHP? If you have a file, and you want to read th...