안녕하세요 기존의 동기화 셋팅했던것이 문제 인가 싶어서 데이터 폴더를 지우고 다시 다운로드후 동기화 시작했습니다
처음엔 바오밥으로 모든 테스트를 끝냇고 싸이프러스로 정식으로 enn을 구축하고자 kend start 하였으나
정상적인 동기화는 잘 진행 되었습니다만, 동기화가 너무나 느려서 본 포럼에 게시된 글에 따라 체인데이터를 다운로드 받아 진행 하고자 하였습니다.
먼저 다운로드 받은 것은 다음과 같습니다.
wget https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/klaytn-cypress-chaindata-20210911010912.tar.gz
conf 파일은 다음과 같습니다.
cypress, baobab is only available if you don’t specify NETWORK_ID.
NETWORK=“cypress”
if you specify NETWORK_ID, a private network is created.
NETWORK_ID=
PORT=32323
SERVER_TYPE=“fasthttp”
SYNCMODE=“full”
VERBOSITY=3
MAXCONNECTIONS=10
txpool options setting
TXPOOL_EXEC_SLOTS_ALL=4096
TXPOOL_NONEXEC_SLOTS_ALL=4096
TXPOOL_EXEC_SLOTS_ACCOUNT=4096
TXPOOL_NONEXEC_SLOTS_ACCOUNT=4096
TXPOOL_LIFE_TIME=“30m”
rpc options setting
RPC_ENABLE=1 # if this is set, the following options will be used
RPC_API=“klay,net,personal,rpc,txpool,web3” # available apis: admin,debug,klay,miner,net,personal,rpc,txpool,web3
RPC_PORT=8551
RPC_ADDR=“0.0.0.0”
RPC_CORSDOMAIN=" "
RPC_VHOSTS=" "
ws options setting
WS_ENABLE=1 # if this is set, the following options will be used
WS_API=“klay” # available apis: admin,debug,klay,miner,net,personal,rpc,txpool,web3
WS_ADDR=“0.0.0.0”
WS_PORT=8552
WS_ORIGINS="*"
service chain options setting
SC_MAIN_BRIDGE=0 # if this is set, the following options will be used.
SC_MAIN_BRIDGE_PORT=50505
SC_MAIN_BRIDGE_INDEXING=0 # this option will be deprecated.
Setting 1 is to enable options, otherwise disabled.
AUTO_RESTART=0
METRICS=1
PROMETHEUS=1
DB_NO_PARALLEL_WRITE=0
MULTICHANNEL=1
SUBPORT=$((PORT + 1)) # used for multi channel option
discover options
NO_DISCOVER=0 # setting 1 to disable discovery
BOOTNODES=""
Raw options e.g) “–txpool.nolocals”
ADDITIONAL=""
DATA_DIR=/data/kend_home
LOG_DIR=$DATA_DIR/logs
이후 제 데이터 디렉토리인 kend_home에 압축을 풀었습니다.
최초 동기화 이후 혹시 꼬일까싶어 아에 디렉토리를 다 삭제한후 다시 폴더를 만들고 체인데이터를 다운을 받고
압축을 풀고 kend start를 하였습니다.
그리고 로그를 확인하였습니다만, 에러가 발생되었습니다
에러는 다음과 같습니다.
-----========================================================
INFO[09/13,02:18:07 Z] [31] Enabling metrics collection
INFO[09/13,02:18:07 Z] [31] Enabling Prometheus Exporter
INFO[09/13,02:18:07 Z] [18] Setting connection type nodetype=en conntype=1
INFO[09/13,02:18:07 Z] [18] Cypress bootnodes are set
INFO[09/13,02:18:07 Z] [18] Bootnode - Add Seed Node=“kni://18b36118cce093673499fc6e9aa196f047fe17a0de35b6f2a76a4557802f6abf9f89aa5e7330e93c9014b714b9df6378393611efe39aec9d3d831d6aa9d617ae@52.78.22.32:32323?ntype=bn”
INFO[09/13,02:18:07 Z] [18] Bootnode - Add Seed Node=“kni://63f1c96874da85140ecca3ce24875cb5ef28fa228bc3572e16f690db4a48fc8067502d2f6e8f0c66fb558276a5ada1e4906852c7ae42b0003e9f9f25d1e123b1@52.194.200.217:32323?ntype=bn”
INFO[09/13,02:18:07 Z] [18] Bootnode - Add Seed Node=“kni://94cc15e2014b86584908707de55800c0a2ea8a24dc5550dcb507043e4cf18ff04f21dc86ed17757dc63b1fa85bb418b901e5e24e4197ad4bbb0d96cd9389ed98@18.136.251.28:32323?ntype=bn”
INFO[09/13,02:18:07 Z] [18] Setting MaxPhysicalConnections MaxPhysicalConnections=10
INFO[09/13,02:18:07 Z] [18] Cypress network ID is set networkid=8217
INFO[09/13,02:18:07 Z] [18] Cypress network ID is set networkid=8217
INFO[09/13,02:18:07 Z] [18] Archiving mode of this node isArchiveMode=false
INFO[09/13,02:18:07 Z] [40] Starting peer-to-peer node instance=Klaytn/v1.5.0/linux-amd64/go1.14.1
INFO[09/13,02:18:07 Z] [46] Partitioned database is used for persistent storage DBType=LevelDB
INFO[09/13,02:18:07 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/misc levelDBCacheSize=22 openFilesLimit=16 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:07 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/header levelDBCacheSize=46 openFilesLimit=30 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:08 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/body levelDBCacheSize=122 openFilesLimit=81 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:08 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/receipts levelDBCacheSize=122 openFilesLimit=81 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:09 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/statetrie_migrated_62853677/0 levelDBCacheSize=36 openFilesLimit=97 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:10 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/statetrie_migrated_62853677/1 levelDBCacheSize=36 openFilesLimit=97 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:10 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/statetrie_migrated_62853677/2 levelDBCacheSize=36 openFilesLimit=97 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:12 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/statetrie_migrated_62853677/3 levelDBCacheSize=36 openFilesLimit=97 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:13 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/txlookup levelDBCacheSize=130 openFilesLimit=87 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:14 Z] [46] LevelDB configurations path=/data/kend_home/klay/chaindata/bridgeservice levelDBCacheSize=30 openFilesLimit=20 useBufferPool=true compressionType=none compactionTableSize(MB)=2 compactionTableSizeMultiplier=1.000
INFO[09/13,02:18:14 Z] [41] Initialised chain configuration config="{ChainID: 8217 Engine: istanbul SubGroupSize: 22 UnitPrice: 25000000000 DeriveShaImpl: 2}"
INFO[09/13,02:18:14 Z] [30] Successfully loaded governance state from database blockNumber=69598208
INFO[09/13,02:18:14 Z] [41] Initialising Klaytn protocol versions=[64] network=8217
INFO[09/13,02:18:14 Z] [5] Using DeriveShaConcat!
INFO[09/13,02:18:14 Z] [47] Initialize trie node cache with fastcache MaxMB=9555
INFO[09/13,02:18:14 Z] [5] Loaded most recent local header number=69599185 hash=b8a1ea…3cc62a td=69599186
INFO[09/13,02:18:14 Z] [5] Loaded most recent local full block number=69599185 hash=b8a1ea…3cc62a td=69599186
INFO[09/13,02:18:14 Z] [5] Loaded most recent local fast block number=69599185 hash=b8a1ea…3cc62a td=69599186
INFO[09/13,02:18:14 Z] [5] Regenerated local transaction journal transactions=0 accounts=0
INFO[09/13,02:18:15 Z] [40] Starting P2P networking
INFO[09/13,02:18:17 Z] [34] UDP listener up self=“kni://1de8ec4e117e941196549f193e583f7b4cd0a906d63f174ce5c9a37d7959ae521becd6ba9b5cf71cb25f8c307234e994bc840b8e8f7455a5f81b7976f709a1b5@[::]:32323?ntype=en”
INFO[09/13,02:18:17 Z] [40] Started P2P server id=1de8ec4e117e9411 multichannel=true
INFO[09/13,02:18:17 Z] [40] RLPx listener up self=“kni://1de8ec4e117e941196549f193e583f7b4cd0a906d63f174ce5c9a37d7959ae521becd6ba9b5cf71cb25f8c307234e994bc840b8e8f7455a5f81b7976f709a1b5@[::]:32323?ntype=en”
INFO[09/13,02:18:17 Z] [40] RLPx listener up self=“kni://1de8ec4e117e941196549f193e583f7b4cd0a906d63f174ce5c9a37d7959ae521becd6ba9b5cf71cb25f8c307234e994bc840b8e8f7455a5f81b7976f709a1b5@[::]:32323?ntype=en”
WARN[09/13,02:18:17 Z] [39] Increase the file descriptor limit of the process for RPC servers oldLimit=2048 newLimit=8048
INFO[09/13,02:18:17 Z] [44] Start listening chain head event to update stakingInfoCache.
INFO[09/13,02:18:17 Z] [40] IPC endpoint opened url=/data/kend_home/klay.ipc
INFO[09/13,02:18:17 Z] [40] FastHTTP endpoint opened url=http://0.0.0.0:8551 cors=* vhosts=*
INFO[09/13,02:18:17 Z] [40] FastWebSocket endpoint opened url=ws://0.0.0.0:8552
INFO[09/13,02:18:20 Z] [33] Added a single channel P2P Peer id=507be745e88b3e6a conn=inbound peerID=507be745e88b3e6a
INFO[09/13,02:18:20 Z] [33] Added a multichannel P2P Peer id=e6357d25b2cd7c6c conn=inbound peerID=e6357d25b2cd7c6c
INFO[09/13,02:18:21 Z] [33] [Dial] Add dial candidate from static nodes id=db5324833200d423 NodeType=2 ip=121.53.201.22 port=32323
INFO[09/13,02:18:21 Z] [33] [Dial] Add dial candidate from static nodes id=56692ae9309f8c07 NodeType=2 ip=15.164.111.88 port=32323
INFO[09/13,02:18:21 Z] [33] [Dial] Try to update dial candidate with a multichannel peer id=db5324833200d423 addr=121.53.201.22 port="[32323 32324]"
INFO[09/13,02:18:21 Z] [33] [Dial] Try to update dial candidate with a multichannel peer id=56692ae9309f8c07 addr=15.164.111.88 port="[32323 32324]"
INFO[09/13,02:18:23 Z] [28] Block synchronisation started
INFO[09/13,02:18:23 Z] [49] Mining aborted due to sync
WARN[09/13,02:18:26 Z] [28] exceeded index of reserveHeaders header.Number.Uint64()=69607384
WARN[09/13,02:18:26 Z] [28] exceeded index of reserveHeaders header.Number.Uint64()=69607385
INFO[09/13,02:18:39 Z] [33] Added a multichannel P2P Peer id=3d7d0275ff6fc89e conn=inbound peerID=3d7d0275ff6fc89e
INFO[09/13,02:18:42 Z] [33] Added a multichannel P2P Peer id=f9895a71acba267d conn=inbound peerID=f9895a71acba267d
INFO[09/13,02:18:53 Z] [33] [Dial] Add dial candidate from static nodes id=db5324833200d423 NodeType=2 ip=121.53.201.22 port="[32323 32324]"
INFO[09/13,02:18:53 Z] [33] [Dial] Add dial candidate from static nodes id=56692ae9309f8c07 NodeType=2 ip=15.164.111.88 port="[32323 32324]"
INFO[09/13,02:18:53 Z] [33] [Dial] Try to update dial candidate with a multichannel peer id=a961791430464271 addr=13.209.196.22 port="[32323 32324]"
INFO[09/13,02:18:53 Z] [33] Added a multichannel P2P Peer id=db5324833200d423 conn=trusted-staticdial peerID=db5324833200d423
INFO[09/13,02:18:53 Z] [33] Added a multichannel P2P Peer id=56692ae9309f8c07 conn=trusted-staticdial peerID=56692ae9309f8c07
INFO[09/13,02:19:05 Z] [5] Imported new chain segment number=69599186 hash=6dcde2…30da0e blocks=1 txs=5 elapsed=41.376s trieDBSize=122.89kB mgas=1.587 mgasps=0.038
WARN[09/13,02:19:23 Z] [28] spawnSync timeout peerID=e6357d25b2cd7c6c
INFO[09/13,02:19:23 Z] [33] [Dial] Add dial candidate from static nodes id=a961791430464271 NodeType=3 ip=13.209.196.22 port="[32323 32324]"
INFO[09/13,02:19:23 Z] [33] Added a multichannel P2P Peer id=a961791430464271 conn=staticdial peerID=a961791430464271
INFO[09/13,02:19:33 Z] [5] Imported new chain segment number=69599187 hash=17b390…1752a4 blocks=1 txs=6 elapsed=27.767s trieDBSize=306.52kB mgas=2.215 mgasps=0.080
INFO[09/13,02:19:40 Z] [5] Imported new chain segment number=69599188 hash=cdee81…db8e7e blocks=3 txs=16 elapsed=44.069ms trieDBSize=366.30kB mgas=4.473 mgasps=101.487
WARN[09/13,02:19:40 Z] [28] Synchronisation failed, retrying err=“spawn time out”
ERROR[09/13,02:19:40 Z] [49] Failed to create mining context err=“missing trie node 7c473ecac9e26c670d180f47f9248083c73915b418a03733a4623bdeb0cde1ab (path )”
ERROR[09/13,02:19:41 Z] [5] Impossible reorg, please file an issue oldnum=69599188 oldhash=cdee81…db8e7e newnum=69599188 newhash=cdee81…db8e7e
INFO[09/13,02:19:41 Z] [5] Imported new chain segment number=69599188 hash=cdee81…db8e7e blocks=3 txs=16 elapsed=77.998ms trieDBSize=122.89kB mgas=4.473 mgasps=57.340
ERROR[09/13,02:19:41 Z] [49] Failed to create mining context err=“missing trie node 7c473ecac9e26c670d180f47f9248083c73915b418a03733a4623bdeb0cde1ab (path )”
ERROR[09/13,02:19:41 Z] [5] Failed to reset txpool state err=“missing trie node 7c473ecac9e26c670d180f47f9248083c73915b418a03733a4623bdeb0cde1ab (path )”
WARN[09/13,02:19:42 Z] [28] Synchronisation failed, dropping peer peer=a961791430464271 err=“retrieved hash chain is invalid”
WARN[09/13,02:19:42 Z] [33] ProtocolManager failed to read msg id=a961791430464271 conn=staticdial err=EOF
WARN[09/13,02:19:42 Z] [33] ProtocolManager failed to read msg id=a961791430464271 conn=staticdial err=EOF
INFO[09/13,02:19:42 Z] [33] ProtocolManager.processMsg closed id=a961791430464271 conn=staticdial PeerName=Klaytn/v1.6.3+78c0483cd2/linux-amd64/go1.15.7
INFO[09/13,02:19:42 Z] [33] ProtocolManager.processMsg closed id=a961791430464271 conn=staticdial PeerName=Klaytn/v1.6.3+78c0483cd2/linux-amd64/go1.15.7
INFO[09/13,02:19:42 Z] [33] ProtocolManager.processMsg closed id=a961791430464271 conn=staticdial PeerName=Klaytn/v1.6.3+78c0483cd2/linux-amd64/go1.15.7
INFO[09/13,02:19:42 Z] [33] ProtocolManager.processMsg closed id=a961791430464271 conn=staticdial PeerName=Klaytn/v1.6.3+78c0483cd2/linux-amd64/go1.15.7
ERROR[09/13,02:19:43 Z] [5] Impossible reorg, please file an issue oldnum=69599188 oldhash=cdee81…db8e7e newnum=69599188 newhash=cdee81…db8e7e
INFO[09/13,02:19:43 Z] [5] Imported new chain segment number=69599188 hash=cdee81…db8e7e blocks=3 txs=16 elapsed=45.804ms trieDBSize=122.89kB mgas=4.473 mgasps=97.643
ERROR[09/13,02:19:43 Z] [5] Failed to reset txpool state err=“missing trie node 7c473ecac9e26c670d180f47f9248083c73915b418a03733a4623bdeb0cde1ab (path )”
ERROR[09/13,02:19:43 Z] [49] Failed to create mining context err=“missing trie node 7c473ecac9e26c670d180f47f9248083c73915b418a03733a4623bdeb0cde1ab (path )”
WARN[09/13,02:19:43 Z] [28] Synchronisation failed, dropping peer peer=f9895a71acba267d err=“retrieved hash chain is invalid”
WARN[09/13,02:19:43 Z] [33] ProtocolManager failed to read msg id=f9895a71acba267d conn=inbound err=EOF
WARN[09/13,02:19:43 Z] [33] ProtocolManager failed to read msg id=f9895a71acba267d conn=inbound err=EOF
INFO[09/13,02:19:43 Z] [33] ProtocolManager.processMsg closed id=f9895a71acba267d conn=inbound PeerName=Klaytn/v1.6.3+78c0483cd2/linux-amd64/go1.15.7
INFO[09/13,02:19:43 Z] [33] ProtocolManager.processMsg closed id=f9895a71acba267d conn=inbound PeerName=Klaytn/v1.6.3+78c0483cd2/linux-amd64/go1.15.7
INFO[09/13,02:19:43 Z] [33] ProtocolManager.processMsg closed id=f9895a71acba267d conn=inbound PeerName=Klaytn/v1.6.3+78c0483cd2/linux-amd64/go1.15.7
INFO[09/13,02:19:43 Z] [33] ProtocolManager.processMsg closed id=f9895a71acba267d conn=inbound PeerName=Klaytn/v1.6.3+78c0483cd2/linux-amd64/go1.15.7
ERROR[09/13,02:19:46 Z] [5] Impossible reorg, please file an issue oldnum=69599188 oldhash=cdee81…db8e7e newnum=69599188 newhash=cdee81…db8e7e
INFO[09/13,02:19:46 Z] [5] Imported new chain segment number=69599188 hash=cdee81…db8e7e blocks=3 txs=16 elapsed=46.565ms trieDBSize=122.89kB mgas=4.473 mgasps=96.047
ERROR[09/13,02:19:46 Z] [49] Failed to create mining context err=“missing trie node 7c473ecac9e26c670d180f47f9248083c73915b418a03733a4623bdeb0cde1ab (path )”
ERROR[09/13,02:19:46 Z] [5] Failed to reset txpool state err=“missing trie node 7c473ecac9e26c670d180f47f9248083c73915b418a03733a4623bdeb0cde1ab (path )”
WARN[09/13,02:19:46 Z] [28] Synchronisation failed, dropping peer peer=56692ae9309f8c07 err=“retrieved hash chain is invalid”
WARN[09/13,02:19:46 Z] [33] ProtocolManager failed to read msg id=56692ae9309f8c07 conn=trusted-staticdial err=EOF
WARN[09/13,02:19:46 Z] [33] ProtocolManager failed to read msg id=56692ae9309f8c07 conn=trusted-staticdial err=EOF
INFO[09/13,02:19:46 Z] [33] ProtocolManager.processMsg closed id=56692ae9309f8c07 conn=trusted-staticdial PeerName=Klaytn/v1.6.2/linux-amd64/go1.15.7
INFO[09/13,02:19:46 Z] [33] ProtocolManager.processMsg closed id=56692ae9309f8c07 conn=trusted-staticdial PeerName=Klaytn/v1.6.2/linux-amd64/go1.15.7
INFO[09/13,02:19:46 Z] [33] ProtocolManager.processMsg closed id=56692ae9309f8c07 conn=trusted-staticdial PeerName=Klaytn/v1.6.2/linux-amd64/go1.15.7
INFO[09/13,02:19:46 Z] [33] ProtocolManager.processMsg closed id=56692ae9309f8c07 conn=trusted-staticdial PeerName=Klaytn/v1.6.2/linux-amd64/go1.15.7
INFO[09/13,02:19:46 Z] [33] [Dial] Add dial candidate from static nodes id=56692ae9309f8c07 NodeType=2 ip=15.164.111.88 port="[32323 32324]"
INFO[09/13,02:19:46 Z] [33] Added a multichannel P2P Peer id=56692ae9309f8c07 conn=trusted-staticdial peerID=56692ae9309f8c07
답변 부탁드립니다 ㅜㅜ