onsightit / solarcoin

SolarCoin with PoST
MIT License
53 stars 27 forks source link

solarcoin not syncing #32

Open paketecuento opened 6 years ago

paketecuento commented 6 years ago

I followed the steps given in https://github.com/Scalextrix/SolarCoin-Raspberry-Pi-Node/blob/master/Create-a-Pi-Node.md

and succesfully installed solarcoind.

{
    "version" : "v2.1.8.0",
    "protocolversion" : 70005,
    "walletversion" : 60001,
    "balance" : 0.00000000,
    "newmint" : 0.00000000,
    "stake" : 0.00000000,
    "blocks" : 0,
    "timeoffset" : 0,
    "connections" : 0,
    "proxy" : "",
    "ip" : "0.0.0.0",
    "difficulty" : {
        "proof-of-work" : 0.00024414,
        "proof-of-stake" : 0.00024414
    },
    "coinsupply" : 33017974,
    "blocksperhour" : 0,
    "testnet" : false,
    "keypoololdest" : 1515187440,
    "keypoolsize" : 101,
    "paytxfee" : 0.00010000,
    "mininput" : 0.00001000,
    "errors" : ""
}

After some minutes i checked debug.log and get

trying connection 121.3.203.164:18188 lastseen=172.0hrs
connection timeout
trying connection 162.243.42.162:18188 lastseen=255.1hrs
connection timeout
trying connection 71.176.103.119:18188 lastseen=320.7hrs
connection timeout
trying connection 207.12.89.226:18188 lastseen=173.3hrs
connection timeout
trying connection 202.55.37.203:18188 lastseen=278.5hrs
connection timeout
trying connection 162.242.170.252:18188 lastseen=198.9hrs
connection timeout
trying connection 176.31.250.82:18188 lastseen=201.7hrs
connection timeout
trying connection 178.137.21.98:18188 lastseen=241.9hrs
connection timeout
trying connection 98.197.78.179:18188 lastseen=188.9hrs
connect() failed after select(): No route to host
trying connection 180.176.0.4:18188 lastseen=232.1hrs
connection timeout
trying connection 174.101.141.126:18188 lastseen=230.9hrs
connection timeout
trying connection 41.135.42.182:18188 lastseen=209.7hrs
connection timeout
trying connection 54.252.61.184:18188 lastseen=316.7hrs
connection timeout
trying connection 101.164.65.167:18188 lastseen=174.0hrs
connection timeout
trying connection 193.110.79.215:18188 lastseen=309.0hrs
connection timeout
trying connection 87.194.145.192:18188 lastseen=176.3hrs
connection timeout
trying connection 70.36.234.109:18188 lastseen=200.5hrs
connection timeout
trying connection 94.1.58.49:18188 lastseen=178.3hrs
connection timeout
trying connection 178.137.21.98:18188 lastseen=242.0hrs
connection timeout
trying connection 83.252.30.14:18188 lastseen=283.9hrs
connection timeout
trying connection 85.216.121.200:18188 lastseen=292.8hrs
connection timeout
trying connection 72.178.110.201:18188 lastseen=180.0hrs
connection timeout
trying connection 37.113.178.72:18188 lastseen=187.1hrs
connection timeout
trying connection 76.118.248.180:18188 lastseen=229.8hrs
connection timeout
trying connection 75.66.64.229:18188 lastseen=230.2hrs
connection timeout
trying connection 217.121.75.206:18188 lastseen=181.3hrs

is it normal? how can I mine this cryptocurrency?

Scalextrix commented 6 years ago

do you have the correct addnodes in the solarcoin.conf file?

paketecuento commented 6 years ago

this is my solarcoin.conf


server=1
daemon=1
rpcuser=solarcoinrpc
rpcpassword=Bo7kXcrDePxvnQJqzxgbU9AZezpP56xbTB4ue1ZABve6
addnode=162.243.214.120
Scalextrix commented 6 years ago

Ok that looks alright, best not to post your RPC password though.

Do you have a firewall or router blocking the connection? Can you

traceroute 162.243.214.120

Is that successful?

paketecuento commented 6 years ago

no problem with the password, it is just a test!!

Regarding the connection, I'm behind a router with NAT, but outgoing connections are allowed. See my last output

connected 162.243.214.120:18188
send version message: version 70005, blocks=0, us=79.156.81.254:18188, them=162.243.214.120:18188, peer=162.243.214.120:18188
connection timeout
trying connection 50.242.139.38:18188 lastseen=225.8hrs
connection timeout
trying connection 82.237.20.196:18188 lastseen=227.6hrs
connect() failed after select(): Connection refused
trying connection 66.69.157.148:18188 lastseen=369.9hrs
connection timeout
trying connection 178.250.213.194:18188 lastseen=237.8hrs
connection timeout
trying connection 125.118.81.200:18188 lastseen=348.1hrs
connection timeout
trying connection 173.79.4.153:18188 lastseen=244.8hrs
Scalextrix commented 6 years ago

Looks like its getting nodes but cant find any available to connect. Stop solarcoind and try adding

addnode=2.30.71.112

to solarcoin.conf

paketecuento commented 6 years ago

ok, now it looks syncing!!

ProcessBlock: ACCEPTED
received block 87db568cae092e39f850
SetBestChain: new best=87db568cae092e39f850...  height=8189  trust=57046580370  blocktrust=33382263  date=01/09/14 04:21:09
ProcessBlock: ACCEPTED
received block eb9e8e3073af059289e0
SetBestChain: new best=eb9e8e3073af059289e0...  height=8190  trust=57079962633  blocktrust=33382263  date=01/09/14 04:21:14
ProcessBlock: ACCEPTED
received block 8e47ae123da2b6cc4f09
SetBestChain: new best=8e47ae123da2b6cc4f09...  height=8191  trust=57113344896  blocktrust=33382263  date=01/09/14 04:21:55
ProcessBlock: ACCEPTED
received block 67e27b7b95ca3a371886
SetBestChain: new best=67e27b7b95ca3a371886...  height=8192  trust=57146727159  blocktrust=33382263  date=01/09/14 04:23:09
Scalextrix commented 6 years ago

great solarcoind getinfo should show a number of connections and blocks now. That IP I gave is not static, but now youhave some peers hopefully you should always find a good connection. Now you just have to wait to sync, it will take a few days.

paketecuento commented 6 years ago

than you Steven...

{
    "version" : "v2.1.8.0",
    "protocolversion" : 70005,
    "walletversion" : 60001,
    "balance" : 0.00000000,
    "newmint" : 0.00000000,
    "stake" : 0.00000000,
    "blocks" : 24700,
    "timeoffset" : 0,
    "connections" : 1,
    "proxy" : "",
    "ip" : "79.156.81.254",
    "difficulty" : {
        "proof-of-work" : 0.60845627,
        "proof-of-stake" : 0.00024414
    },
    "coinsupply" : 33051319,
    "blocksperhour" : 0,
    "testnet" : false,
    "keypoololdest" : 1515187440,
    "keypoolsize" : 101,
    "paytxfee" : 0.00010000,
    "mininput" : 0.00001000,
    "errors" : ""
}

Now sit and wait :P

Note: how may GB should I expect?

Scalextrix commented 6 years ago

I didn't look recently, but I think the entire blockchain is still led than 2GB

Scalextrix commented 6 years ago

I just saw in the other issues you raised your device has 512MB RAM, you may have problems syncing the entire blockchain. On my Pi2 the current chain is using over 700MB RAM.

Scalextrix commented 6 years ago

Try 2.30.78.95, unfortunately I don't have a static IP and it changes every few days, but that should get you started and finding peers for now.

Sent from my Samsung Galaxy smartphone. -------- Original message --------From: Stjepan notifications@github.com Date: 13/01/2018 09:05 (GMT+00:00) To: onsightit/solarcoin solarcoin@noreply.github.com Cc: Steven Campbell solarsteve100@gmail.com, Comment comment@noreply.github.com Subject: Re: [onsightit/solarcoin] solarcoin not syncing (#32) Hi. I have the same issue with Windows client. Tried adding 2.30.71.112 but didn't change anything. Still no connections. Tracert to default IP is passing. Any other ideas?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/onsightit/solarcoin","title":"onsightit/solarcoin","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/onsightit/solarcoin"}},"updates":{"snippets":[{"icon":"PERSON","message":"@wast in #32: Hi. I have the same issue with Windows client. Tried adding 2.30.71.112 but didn't change anything. Still no connections. Tracert to default IP is passing. Any other ideas?"}],"action":{"name":"View Issue","url":"https://github.com/onsightit/solarcoin/issues/32#issuecomment-357420268"}}}

onsightit commented 6 years ago

Try these nodes in solarcoin.conf:

addnode=139.162.244.34 addnode=88.198.92.47 addnode=162.243.214.120

Scalextrix commented 6 years ago

I have added a node: addnode=scalextrixsolarcoin.ddns.net

sputniiik commented 6 years ago

I have issue trying to sync also the wallet in Ubuntu 16.4

2018-05-21 14:37:11 ProcessMessages(headers, 162790 bytes): Exception 'non-canonical ReadCompactSize(): iostream error' caught 2018-05-21 14:37:11 ProcessMessages(headers, 162790 bytes) FAILED peer=4

these are my nodes: addnode=162.243.214.120 addnode=2.30.71.112 addnode=scalextrixsolarcoin.ddns.net