pocketnetteam / pocketnet.core

Decentralized social network based on the blockchain
https://pocketnet.app
Apache License 2.0
114 stars 28 forks source link

Can't complete full sync (again) v 0.20.6 #92

Closed Linkdealer closed 2 years ago

Linkdealer commented 2 years ago

I installed the new version 0.20.6 and again got the same problem as on version 19.x.x. details can be read in old request here: https://github.com/pocketnetteam/pocketnet.core/issues/51

Then I was told that I did not have enough RAM. Ok. Now the program starts quickly, but then it just works without any progress (as in the screenshot) for 20 hours.

How to achieve complete synchronization and further work? There is no connection to the peers. Maybe I need to change something? What does it even depend on?

2021-11-14_15-18-41

Linkdealer commented 2 years ago

from debug.log

2021-11-14T12:14:03Z Pocketnet Core version v0.20.6.0-3b2db87 (debug build) 2021-11-14T12:14:03Z InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1 2021-11-14T12:14:47Z Assuming ancestors of block 13145e13c703d75d535d7415d660483dd717868654b7fdcd2e3232255ea05445 have valid signatures. 2021-11-14T12:14:47Z Setting nMinimumChainWork=00000000000000000000000000000000000000000000002dbba03d11d96c9cad 2021-11-14T12:14:47Z Using the 'sse4(1way),sse41(4way)' SHA256 implementation 2021-11-14T12:15:56Z Default data directory C:\Users\Linkdealer\AppData\Roaming\Pocketcoin 2021-11-14T12:15:56Z Using data directory X:\Pocket_Net_Core 2021-11-14T12:15:56Z Config file: X:\Pocket_Net_Core\pocketcoin.conf 2021-11-14T12:15:56Z Using at most 125 automatic connections (2048 file descriptors available) 2021-11-14T12:15:56Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements 2021-11-14T12:15:56Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements 2021-11-14T12:15:56Z Using 4 threads for script verification 2021-11-14T12:15:56Z scheduler thread start 2021-11-14T12:15:56Z GUI: "registerShutdownBlockReason: Successfully registered: Pocketnet Core didn't yet exit safely..." 2021-11-14T12:15:56Z init message: Loading Pocket DB... 2021-11-14T12:15:57Z SQLite usage version: 3037000 2021-11-14T12:16:00Z Creating Sqlite database main.sqlite3 structure.. 2021-11-14T12:16:00Z Creating Sqlite database web.sqlite3 structure.. 2021-11-14T12:16:00Z HTTP: creating work queue of depth 16 2021-11-14T12:16:02Z libevent: getaddrinfo: no address associated with nodename 2021-11-14T12:16:02Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation. 2021-11-14T12:16:02Z HTTP: starting 4 Main worker threads 2021-11-14T12:16:02Z Using wallet directory X:\Pocket_Net_Core 2021-11-14T12:16:02Z init message: Verifying wallet(s)... 2021-11-14T12:16:02Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010) 2021-11-14T12:16:02Z Using wallet wallet.dat 2021-11-14T12:16:02Z BerkeleyEnvironment::Open: LogDir=X:\Pocket_Net_Core\database ErrorFile=X:\Pocket_Net_Core\db.log 2021-11-14T12:16:03Z Cache configuration: 2021-11-14T12:16:03Z Using 2.0MiB for block index database 2021-11-14T12:16:03Z Using 8.0MiB for chain state database 2021-11-14T12:16:03Z * Using 160.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space) 2021-11-14T12:16:03Z init message: Loading block index... 2021-11-14T12:16:03Z Opening LevelDB in X:\Pocket_Net_Core\blocks\index 2021-11-14T12:16:03Z Opened LevelDB successfully 2021-11-14T12:16:03Z Using obfuscation key for X:\Pocket_Net_Core\blocks\index: 0000000000000000 2021-11-14T12:16:53Z LoadBlockIndexDB: last block file = 25 2021-11-14T12:16:53Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=10338, size=128956782, heights=1421401...1431538, time=2021-11-02...2021-11-09) 2021-11-14T12:16:53Z Checking all blk files are present... 2021-11-14T12:16:53Z Opening LevelDB in X:\Pocket_Net_Core\chainstate 2021-11-14T12:16:53Z Opened LevelDB successfully 2021-11-14T12:16:53Z Using obfuscation key for X:\Pocket_Net_Core\chainstate: 3541f0db01ec9f59 2021-11-14T12:16:54Z Loaded best chain: hashBestChain=a1849ee5370cb5658d0a0e9484c77fa821dd249a607c379bdf63982a9f29a20a height=1431538 date=2021-11-09T03:58:40Z progress=0.988467 2021-11-14T12:16:54Z init message: Rewinding blocks... 2021-11-14T12:17:01Z init message: Verifying blocks... 2021-11-14T12:17:01Z Verifying last 6 blocks at level 3 2021-11-14T12:17:01Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE]. 2021-11-14T12:17:02Z No coin database inconsistencies in last 6 blocks (109 transactions) 2021-11-14T12:17:02Z block index 59080ms 2021-11-14T12:17:02Z Opening LevelDB in X:\Pocket_Net_Core\indexes\txindex 2021-11-14T12:17:02Z Opened LevelDB successfully 2021-11-14T12:17:02Z Using obfuscation key for X:\Pocket_Net_Core\indexes\txindex: 0000000000000000 2021-11-14T12:17:02Z txindex thread start 2021-11-14T12:17:02Z txindex is enabled at height 1431538 2021-11-14T12:17:02Z txindex thread exit 2021-11-14T12:17:02Z init message: Loading wallet... 2021-11-14T12:17:02Z mapBlockIndex.size() = 1432093 2021-11-14T12:17:02Z Best block: a1849ee5370cb5658d0a0e9484c77fa821dd249a607c379bdf63982a9f29a20a (1431538) 2021-11-14T12:17:02Z Imported mempool transactions from disk: 0 succeeded, 0 failed, 0 expired, 0 already there 2021-11-14T12:17:02Z torcontrol thread start 2021-11-14T12:17:02Z Bound to [::]:37070 2021-11-14T12:17:02Z Bound to 0.0.0.0:37070 2021-11-14T12:17:02Z init message: Loading P2P addresses... 2021-11-14T12:17:02Z Loaded 0 addresses from peers.dat 6ms 2021-11-14T12:17:02Z init message: Loading banlist... 2021-11-14T12:17:02Z init message: Starting network threads... 2021-11-14T12:17:02Z net thread start 2021-11-14T12:17:02Z dnsseed thread start 2021-11-14T12:17:02Z addcon thread start 2021-11-14T12:17:02Z Loading addresses from DNS seeds (could take a while) 2021-11-14T12:17:02Z 0 addresses found from DNS seeds 2021-11-14T12:17:02Z dnsseed thread exit

the-real-vortex-v commented 2 years ago

what's your peerinfo? goto the debug menu and see how many peers you have connected. Also there's a v0.20.7 now.

Linkdealer commented 2 years ago

what's your peerinfo? goto the debug menu and see how many peers you have connected. Also there's a v0.20.7 now.

0 connections always. If I start loading the database from 0% (without previously downloaded file main.sqlite3), then there are peers (a lot of them (up to 8) and I see how it must work. But this last percentage I can never get to full synchronization.

andyoknen commented 2 years ago

All the described problems have been solved by the current release 0.20.11