[BUG] Error: unexpected end of file
Closed this issue · 2 comments
platfowner commented
error logs:
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1536277,"level":50,"msg":"[NETWORK-UTIL] Failed to send get request: Error: connect ECONNREFUSED 35.221.137.80:8080","time":"2024-08-16T04:30:00.117Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1536277,"level":50,"msg":"[NETWORK-UTIL] Failed to send get request: Error: timeout of 20000ms exceeded","time":"2024-08-16T04:33:42.543Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1536277,"level":50,"msg":"[P2P_CLIENT] [tryToQueryAndConnectNewPeer] Error: Invalid peerCandidateInfo from peer candidate url (undefined).","time":"2024-08-16T04:33:42.544Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1559762,"level":50,"msg":"[CLIENT] Error: unexpected end of file","time":"2024-08-16T04:46:27.973Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1559762,"level":50,"msg":"[CLIENT] TypeError: Cannot read properties of null (reading '0x001Ac309EFFFF6d307CbC2d09C811aCD7dD8A35d')","time":"2024-08-16T04:53:07.478Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1560131,"level":50,"msg":"[CLIENT] Error: unexpected end of file","time":"2024-08-16T04:57:27.580Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1560131,"level":50,"msg":"[CLIENT] TypeError: Cannot read properties of null (reading '0x001Ac309EFFFF6d307CbC2d09C811aCD7dD8A35d')","time":"2024-08-16T05:03:07.093Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1560131,"level":50,"msg":"[CLIENT] TypeError: Cannot read properties of null (reading '0xC4A51025D2678B6552C267daf59E491d0Aba233d')","time":"2024-08-16T05:08:27.098Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1560131,"level":50,"msg":"[P2P_CLIENT] Address confirmation hasn't sent back. Close the socket(ws://35.223.56.37:5000/) connection","time":"2024-08-16T05:09:18.027Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1560131,"level":50,"msg":"[CLIENT] TypeError: Cannot read properties of null (reading '0x000AF024FEDb636294867bEff390bCE6ef9C5fc4')","time":"2024-08-16T05:14:07.104Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1561693,"level":50,"msg":"[CLIENT] Error: unexpected end of file","time":"2024-08-16T05:16:08.809Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1561693,"level":50,"msg":"[P2P_CLIENT] Address confirmation hasn't sent back. Close the socket(ws://35.199.150.150:5000/) connection","time":"2024-08-16T05:16:18.623Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1561693,"level":50,"msg":"[CLIENT] TypeError: Cannot read properties of null (reading '0xC4A51025D2678B6552C267daf59E491d0Aba233d')","time":"2024-08-16T05:22:08.314Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1561693,"level":50,"msg":"[CLIENT] TypeError: Cannot read properties of null (reading '0xC4A51025D2678B6552C267daf59E491d0Aba233d')","time":"2024-08-16T05:28:08.322Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1561693,"level":50,"msg":"[CLIENT] TypeError: Cannot read properties of null (reading '0xC4A51025D2678B6552C267daf59E491d0Aba233d')","time":"2024-08-16T05:33:28.329Z","v":0}
{"name":"testnet-prod","hostname":"spring-node-2-singapore","pid":1562420,"level":50,"msg":"[CLIENT] Error: unexpected end of file","time":"2024-08-16T05:38:18.227Z","v":0}
platfowner commented
It seems the latest snapshot file is broken.
Just removed last block and snapshot files:
sudo rm /home/ain_blockchain_data/snapshots/8080/n2s/4133000.json.gz
sudo rm /home/ain_blockchain_data/chains/8080/n2b/41/4133000.json.gz
and restarted the blockchain node jobs.
platfowner commented
Issue resolved.