Smartnode sync very slow


#1

I’m started new dockerized Smartnode. It’s already syncing more then 12 hours.

Smartcash.conf
rpcuser=RPC_USER
rpcpassword=RPC_PASSWD
rpcallowip=::/0
rpcport=22350
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=64
smartnode=1
txindex=1
externalip=111.222.333.444
smartnodeprivkey=FFFFFFFFFFFFFFFFFFFFFFFFFFF

debug.log

2018-04-10 10:29:04 CSmartnodeMan::UpdateLastPaid,pCurrentBlockIndex->nHeight=52875
2018-04-10 10:29:04 CSmartnodePayments::ProcessBlock nBlockHeight=52880
2018-04-10 10:29:04 smartnodeSync.IsSmartnodeListSynced failedUpdateTip: new best=000000000002ebf8144aa96daec01233bfa4156def0c64b369537721b36f8dc2 height=52875 version=0x00000002 log2_work=61.227858 tx=82795 date='2017-08-19 20:46:46' progress=0.024353 cache=24.2MiB(75689tx)
2018-04-10 10:29:06 CSmartnodeMan::UpdateLastPaid,pCurrentBlockIndex->nHeight=52876
2018-04-10 10:29:06 CSmartnodePayments::ProcessBlock nBlockHeight=52881
t=000000000002edfbcf5ad31cb737b439a2e5798a8fb9ca7e39cf68d3bde5f84d height=52876 version=0x00000002 log2_work=61.227895 tx=82800 date='2017-08-19 20:54:14' progress=0.024354 cache=24.2MiB(75692tx)

#2

rpcport should be 9678


#3

How then I should restart synchronization ?


#4

Now my smartcash.conf is as follows

  rpcuser=randuserXXXXX
rpcpassword=XXXX
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=64
txindex=1
smartnode=1
externalip=X.X.X.X:9678
smartnodeprivkey=

Then I applyed
http://smartnodes.cc/#SmartNode_FAQ "How can I speed up the blockchain syncing for my SmartNode?"

And then force resync

Force reindex of blockchain data smartcashd -reindex-chainstate

But SmartNode does not respond to command
./smartcash-cli getinfo

And sync again is very slow
2018-04-10 16:06:56 CSmartnodePayments::ProcessBlock nBlockHeight=10505
2018-04-10 16:06:56 smartnodeSync.IsSmartnodeListSynced failedUpdateTip: new best=000000000021cf3c31092ad7ad1c6d26c1baa7a6929110479b8e6141e5aefee9 height=10500 version=0x00000002 log2_work=53.67838 tx=10780 date=‘2017-07-19 07:45:13’ progress=0.003167 cache=4.0MiB(10670tx)


#5
  1. You should stop smartcash wallet
    smartcash-cli stop
  2. Delete 2 folder blocks and chainstate in data folder
  3. Start smartcash wallet again and wait
    smartcashd

#6

The sync is really slow on my server

I was trying to follow:
http://smartnodes.cc/#SmartNode_FAQ _
_ How can I speed up the blockchain syncing for my SmartNode?

Then I started
smartcashd -reindex-chainstate

Get error

EXCEPTION: St13runtime_error       
CDB: Error -30974, can't open database wallet.dat       
smartcash in ProcessMessages()       

2018-04-10 18:45:05 ProcessMessages(block, 1532 bytes) FAILED peer=1
2018-04-10 18:45:05 CSmartnodeMan::UpdateLastPaid,pCurrentBlockIndex->nHeight=366144
2018-04-10 18:45:05 CSmartnodePayments::ProcessBlock nBlockHeight=366149
2018-04-10 18:45:05 smartnodeSync.IsSmartnodeListSynced failedUpdateTip: new best=0000000000003b2d45bdb6eb7555abe7e920071d138a532e100eeb130cea1774 height=366144 version=0x00000002 log2_work=67.056904 tx=874278 date='2018-03-
14 20:56:25' progress=0.903624 cache=102.2MiB(439958tx)
2018-04-10 18:45:05

#7

In VPS sync should fast please don’t use smartcashd -reindex-chainstate
Do as i mention above (sync from scratch ) it should be faster
Thanks


#8

I’ve tried with no success

/usr/local/bin/smartcashd -conf=/smart/.smartcash/smartcash.conf -datqadir=/smart/.smartcash
Smartcash server starting
root@91e8222789a7:~# : Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover.

#9

Did you do this step. When you do it it will don’t ask you to -reindex or -reindex-chainstate because it sync from scratch
image


#10

Hello,

Currently I did all points with no success

root@91e8222789a7:~/.smartcash# ls -la chainstate
total 8
drwx------ 2 root  root  4096 Apr 11 08:37 .
drwxr-xr-x 6 smart smart 4096 Apr 11 08:46 ..
root@91e8222789a7:~/.smartcash# ls -la blocks/   
total 8
drwx------ 2 root  root  4096 Apr 11 08:37 .
drwxr-xr-x 6 smart smart 4096 Apr 11 08:46 ..
root@91e8222789a7:~/.smartcash# nohup /usr/local/bin/smartcashd -conf=/smart/.smartcash/smartcash.conf -datadir=/smart/.smartcash
nohup: ignoring input and appending output to 'nohup.out'
root@91e8222789a7:~/.smartcash# cat nohup.out 
Smartcash server starting
Error: Error opening block database
Smartcash server starting
Smartcash server starting
Error: Error opening block database

#11

Seem your database have issue
is this in the VPS? with VPS and don’t store funds, you can delete all file in data folder ( keep smartcash.conf, smartnnode.conf, wallet.dat ) and restart wallet again


#12

It’s on standalone server inside docker container
Data folder is mounted to external volume outside container.

Now I after deleting folder blocks and chainstate
In debug.log I can see

2018-04-11 09:48:07 

************************
EXCEPTION: St13runtime_error       
CDB: Error -30974, can't open database wallet.dat       
smartcash in ProcessMessages()       

2018-04-11 09:48:07 ProcessMessages(cmpctblock, 283 bytes) FAILED peer=1

In status:

./smartcash-cli getinfo
error code: -1
error message:
CDB: Error -30974, can't open database wallet.dat