Orderer Podログの照会
    • PDF

    Orderer Podログの照会

    • PDF

    記事の要約

    VPC環境で利用できます。

    ブロックチェーンネットワークの Orderer Podログを照会します。

    リクエスト

    リクエスト形式を説明します。リクエスト形式は次の通りです。

    メソッドURI
    GET/networks/{networkId}/orderers/{ordererId}/{containerNo}/logs

    リクエストヘッダ

    Blockchain Service APIで共通して使用されるヘッダの詳細は、Blockchain Serviceの共通ヘッダをご参照ください。

    リクエストパスパラメータ

    パラメータの説明は次の通りです。

    フィールドタイプ必須の有無説明
    networkIdLongRequiredネットワーク ID
    ordererIdStringRequiredOrderer ID
    containerNoLongRequiredNcloud Kubernetes Serviceコンテナ番号
    • Ordererの構成タイプによる分類
    • 1~5
      • 1: RAFT_1(単一ノード)
      • 1~5: RAFT_5(マルチノード)

    リクエストクエリパラメータ

    パラメータの説明は次の通りです。

    フィールドタイプ必須の有無説明
    tailLinesIntegerOptionalログのライン数
    • 1,000~99,000
    • 1,000(デフォルト)

    リクエスト例

    リクエストのサンプルコードは次の通りです。

    curl --location --request GET 'https://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/orderers/{ordererId}/{containerNo}/logs?tailLines=1000' \
    --header 'x-ncp-apigw-timestamp: {Timestamp}' \
    --header 'x-ncp-iam-access-key: {Access Key}' \
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
    --header 'Content-Type: application/json'
    

    レスポンス

    レスポンス形式を説明します。

    レスポンスボディ

    レスポンスボディの説明は次の通りです。

    フィールドタイプ必須の有無説明
    logPlain Text-Orderer Podログ

    レスポンスステータスコード

    Blockchain Service APIで共通して使用されるレスポンスステータスコードの詳細は、Blockchain Serviceの共通レスポンスステータスコードをご参照ください。

    レスポンス例

    レスポンスのサンプルコードは次の通りです。

    \033[0;32m Create /var/hyperledger/ledger directory to avoid restarts \033[0m
    >\033[0;35m orderer \033[0m
    [
       33m2024-07-30 00: 21: 57.982 UTC [localconfig
       ] completeInitialization -> WARN 001[
       0m General.GenesisFile should be replaced by General.BootstrapFile
    [
       34m2024-07-30 00: 21: 57.982 UTC [localconfig
       ] completeInitialization -> INFO 002[
       0m Kafka.Version unset, setting to 0.10.2.0
    [
       34m2024-07-30 00: 21: 57.983 UTC [orderer.common.server
       ] prettyPrintStruct -> INFO 003[
       0m Orderer config values:
    	General.ListenAddress = "0.0.0.0"
    	General.ListenPort = 7050
    	General.TLS.Enabled = true
    	General.TLS.PrivateKey = "/var/hyperledger/tls/server/pair/tls.key"
    	General.TLS.Certificate = "/var/hyperledger/tls/server/pair/tls.crt"
    	General.TLS.RootCAs = [/var/hyperledger/tls/server/cert/cacert.pem]
    	General.TLS.ClientAuthRequired = false
    	General.TLS.ClientRootCAs = [/var/hyperledger/tls/client/cert/cacert.pem]
    	General.TLS.TLSHandshakeTimeShift = 0s
    	General.Cluster.ListenAddress = ""
    	General.Cluster.ListenPort = 0
    	General.Cluster.ServerCertificate = ""
    	General.Cluster.ServerPrivateKey = ""
    	General.Cluster.ClientCertificate = "/var/hyperledger/tls/server/pair/tls.crt"
    	General.Cluster.ClientPrivateKey = "/var/hyperledger/tls/server/pair/tls.key"
    	General.Cluster.ReplicationBufferSize = 20971520
    	General.Cluster.ReplicationPullTimeout = 5s
    	General.Keepalive.ServerMinInterval = 1m0s
    	General.Keepalive.ServerInterval = 2h0m0s
    	General.Keepalive.ServerTimeout = 20s
    	General.ConnectionTimeout = 0s
    	General.GenesisMethod = "file"
    	General.GenesisFile = "/hl_config/genesis/genesis.block"
    	General.BootstrapMethod = "file"
    	General.BootstrapFile = "/hl_config/genesis/genesis.block"
    	General.Profile.Enabled = false
    	General.Profile.Address = "0.0.0.0:6060"
    	General.LocalMSPDir = "/var/hyperledger/msp"
    	General.LocalMSPID = "test-msp"
    	General.BCCSP.ProviderName = "SW"
    	General.BCCSP.SwOpts.SecLevel = 256
    	General.BCCSP.SwOpts.HashFamily = "SHA2"
    	General.Authentication.TimeWindow = 15m0s
    	General.Authentication.NoExpirationChecks = false
    	FileLedger.Location = "/var/hyperledger/ledger"
    	FileLedger.Prefix = "hyperledger-fabric-ordererledger"
    	Kafka.Retry.ShortInterval = 5s
    	Kafka.Retry.ShortTotal = 10m0s
    	Kafka.Retry.LongInterval = 5m0s
    	Kafka.Retry.LongTotal = 12h0m0s
    	Kafka.Retry.NetworkTimeouts.DialTimeout = 10s
    	Kafka.Retry.NetworkTimeouts.ReadTimeout = 10s
    	Kafka.Verbose = false
    	Kafka.Version = 0.10.2.0
    	Kafka.TLS.Enabled = false
    	Kafka.TLS.PrivateKey = ""
    	Kafka.SASLPlain.Enabled = false
    	Kafka.Topic.ReplicationFactor = 3
    	Debug.BroadcastTraceDir = ""
    	Debug.DeliverTraceDir = ""
    	Consensus = map[SnapDir:/var/hyperledger/production/orderer/etcdraft/snapshot WALDir:/var/hyperledger/production/orderer/etcdraft/wal]
    	Operations.ListenAddress = "0.0.0.0:8443"
    	Operations.TLS.Enabled = false
    	Operations.TLS.PrivateKey = ""
    	Operations.TLS.Certificate = ""
    	Operations.TLS.RootCAs = []
    
    	Metrics.Provider = "prometheus"
    	Metrics.Statsd.Network = "udp"
    	ChannelParticipation.Enabled = false
    	ChannelParticipation.RemoveStorage = false
    [34m2024-07-30 00: 21: 57.996 UTC [orderer.common.server] initializeServerConfig -> INFO 004[0m Starting orderer with TLS enabled
    [34m2024-07-30 00: 21: 58.059 UTC [orderer.common.server] Main -> INFO 005[0m Not bootstrapping the system channel because of existing channels
    [34m2024-07-30 00: 21: 58.066 UTC [orderer.common.server] selectClusterBootBlock -> INFO 006[0m Cluster boot block is system channel last config block; Blocks Header.Number system-channel=1, bootstrap=0
    [34m2024-07-30 00: 21: 58.069 UTC [orderer.common.server] Main -> INFO 007[0m Starting with system channel: ncp-system-channel, consensus type: etcdraft
    [34m2024-07-30 00: 21: 58.069 UTC [orderer.common.server] Main -> INFO 008[0m Setting up cluster
    [34m2024-07-30 00: 21: 58.069 UTC [orderer.common.server] reuseListener -> INFO 009[0m Cluster listener is not configured, defaulting to use the general listener on port 7050
    [34m2024-07-30 00: 21: 58.072 UTC [orderer.common.cluster] loadVerifier -> INFO 00b[0m Loaded verifier for channel ncp-system-channel from config block at index 1
    [34m2024-07-30 00: 21: 58.075 UTC [orderer.common.cluster] replicateNeededChannels -> INFO 00c[0m Replication isn't needed
    [34m2024-07-30 00: 21: 58.075 UTC [certmonitor] trackCertExpiration -> INFO 00d[0m The enrollment certificate will expire on 2054-07-22 07: 29: 43 +0000 UTC
    [34m2024-07-30 00: 21: 58.075 UTC [certmonitor] trackCertExpiration -> INFO 00e[0m The server TLS certificate will expire on 2054-07-22 07: 29: 43 +0000 UTC
    [34m2024-07-30 00: 21: 58.075 UTC [certmonitor] trackCertExpiration -> INFO 00f[0m The client TLS certificate will expire on 2054-07-22 07: 29: 43 +0000 UTC
    [34m2024-07-30 00: 21: 58.081 UTC [orderer.consensus.etcdraft] HandleChain -> INFO 010[0m EvictionSuspicion not set, defaulting to 10m0s
    [34m2024-07-30 00: 21: 58.084 UTC [orderer.consensus.etcdraft] createOrReadWAL -> INFO 011[0m Found WAL data at path '/var/hyperledger/production/orderer/etcdraft/wal/ncp-system-channel', replaying it channel=ncp-system-channel node=1
    [34m2024-07-30 00: 21: 58.088 UTC [orderer.commmon.multichannel] Initialize -> INFO 012[ 0m Starting system channel 'ncp-system-channel' with genesis block hash caedb1ddcb61c0051d85c1ee7987720173f32a8a90aad0471272a8755837ca16 and orderer type etcdraft
    [34m2024-07-30 00: 21: 58.088 UTC [orderer.consensus.etcdraft] Start -> INFO 013[ 0m Starting Raft node channel=ncp-system-channel node=1
    [ 34m2024-07-30 00: 21: 58.088 UTC [orderer.common.cluster ] Configure -> INFO 014[0m Entering, channel: ncp-system-channel, nodes: []
    [   0m Starting orderer:
     Version: 2.2.3
     Commit SHA: 94ace65
     Go version: go1.15.7
     OS/Arch: linux/amd64
    [34m2024-07-30 00: 21: 58.089 UTC [orderer.common.server] Main -> INFO 01a[   0m Beginning to serve requests
    [34m2024-07-30 00: 21: 58.090 UTC [orderer.consensus.etcdraft] apply -> INFO 01b[ 0m Applied config change to add node 1, current nodes in channel: [1] channel=ncp-system-channel node=1
    [34m2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft   ] Step -> INFO 01c[0m 1 is starting a new election at term 2 channel=ncp-system-channel node=1
    [34m2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft   ] becomePreCandidate -> INFO 01d[0m 1 became pre-candidate at term 2 channel=ncp-system-channel node=1
    [34m2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft   ] poll -> INFO 01e[0m 1 received MsgPreVoteResp from 1 at term 2 channel=ncp-system-channel node=1
    [34m2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft] becomeCandidate -> INFO 01f[0m 1 became candidate at term 3 channel=ncp-system-channel node=1
    [34m2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft] poll -> INFO 020[  0m 1 received MsgVoteResp from 1 at term 3 channel=ncp-system-channel node=1
    [34m2024-07-30 01: 54: 19.390 UTC [orderer.consensus.etcdraft] createOrReadWAL -> INFO 02b[0m No WAL data found, creating new WAL at path '/var/hyperledger/production/orderer/etcdraft/wal/test-channel' channel=test-channel node=1
    [34m2024-07-30 01: 54: 19.399 UTC [orderer.commmon.multichannel] newChain -> INFO 02c[0m Created and starting new channel test-channel
    [34m2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] Start -> INFO 02d[0m Starting Raft node channel=test-channel node=1
    [34m2024-07-30 01: 54: 19.399 UTC [orderer.common.cluster] Configure -> INFO 02e[0m Entering, channel: test-channel, nodes: []
    [34m2024-07-30 01: 54: 19.399 UTC [orderer.common.cluster] Configure -> INFO 02f[0m Exiting
    [34m2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] start -> INFO 030[0m Starting raft node as part of a new channel channel=test-channel node=1
    [34m2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] becomeFollower -> INFO 031[0m 1 became follower at term 0 channel=test-channel node=1
    [34m2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] newRaft -> INFO 032[0m newRaft 1 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0] channel=test-channel node=1
    
    

    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.