iri icon indicating copy to clipboard operation
iri copied to clipboard

Full Sync issues easy solutions!!!

Open ALEX778899 opened this issue 9 years ago • 41 comments

Dear IOTA FUNDATION and DEVELOPERS, I'm a systems analyst and Java developer, I'm helping lot of persons to setup a full node but I can notice there are many full nodes not fully synched after weeks with a few transactions to request (around 10 in one hour) and sometimes their database is too big. Obviously they can't use their full nodes with the wallet. Even in https://iotatangle.slack.com is full of users having this problem. I can guarantee there aren't hardware or software issues, they have full synched neighbors (tcp and udp). I analyzed a lot of powerful PC, SERVERS, VPS, THERE AREN'T MEMORY PROBLEMS, NO BOTTLENECKS, NO CRASHES, NO ERROR MESSAGES AND THE PROCESS IS RUNNING SMOOTHLY.

I believe IOTA will bring a real freedom and I'm supporting it as much as I can. I would like to understand why these nodes never became totally synched (Latest Milestone Index=Latest Solid Milestone Index) and why they have so little transactions so please can you explain me if there are any specific requirement I'm not aware about?

Waiting for your explanation Thanks in advance

***** UPDATE ************** I FOUND AND TESTED TWO DIFFERENT SOLUTIONS FOR THE PROBLEM (ONLY IF YOU FOLLOW THESE SUGGESTIONS AND ANYWAY YOU WILL NOT BECOME FULL SYNC, FOLLOW THIS OTHER INSTRUCTIONS https://github.com/iotaledger/iri/issues/409.

FIRST SOLUTION I hope the developers we'll fix the problem soon, in the meantime how to solve the problem:

  • stop the service;
  • delete all files in log and db folder;
  • download the complete database from http://db.iota.partners/IOTA.partners-mainnetdb.tar.gz (updated every 30 minutes) and extract in db folder;
  • start the service and in max 4 hours you'll be FULL SYNC :-)

SECOND SOLUTION add LiQio's udp://94.156.128.15:14600 and udp://185.181.8.149:14600 swarm nodes. They will add you back automatically. When you become full sync remember to remove the swarm nodes.

ALEX778899 avatar Dec 01 '17 21:12 ALEX778899

I have 12 neighbours who are fully synced, however my node is not fully synced. When restarting it catches up to a subtangle milestone several hours before the current one and then sits there. The 'latestMilestone' is newer but it is also out of date by hours.

Traffic is flowing, but in the logs, I notice that I'm not seeing any new notifications of milestones from the coordinator.

I'm using Ubuntu in AWS with Oracle JDK 1.8.1_151. I have not been able to sync my node once since I began with IOTA about a week ago. What could be happening here? Does the full node need to have the ability to request newer milestones?

mindlapse avatar Dec 02 '17 22:12 mindlapse

@ALEX778899 as you're a systems analyst and a Java developer, please provide some runtime analysis to help us see where the program is finding a bottleneck on your system. I'd be most interested to see how memory is behaving, as I would suspect this type of issue to be mainly related to memory. Also, what memory parameters are you running with?

You must understand that it is difficult to help solve an issue with so very little context ( though, judging by the all-caps brand-new username and issue title, I wouldn't be surprised to find this to be another instance of a concern troll account. )

paulhandy avatar Dec 03 '17 02:12 paulhandy

same with me, running on linux mint, 4 processor, 16gb, oracle java 8.152, fiber connected, 6 working tcp connections, 2 udp, perfect communication, after 24 hours I have allways the same solid milestone number. Here is my node info: NODE INFO

appName IRI appVersion 1.4.1.2 jreAvailableProcessors 4 jreFreeMemory 149596368 jreVersion 1.8.0_152 jreMaxMemory 3715629056 jreTotalMemory 555220992 latestMilestone WVDUPPMYDPRZVFPSBPCISWVJUJDVUVSSWCWYRWJJQXGZYDPOA9JVJ9BQXZ9HBOPYIDPTKVBKWMVFA9999 latestMilestoneIndex 295252 latestSolidSubtangleMilestone XTNQBAH9OPNJFELGCCZNSRCKKOLBTTBXSGLNRGIHYYNJRSXQODMBEDHGFSNYJFRGICWHKVMYYZEIZ9999 latestSolidSubtangleMilestoneIndex 244014 neighbors 9 packetsQueueSize 0 time 1512338547420 tips 3356 transactionsToRequest 12562

rnagler avatar Dec 03 '17 22:12 rnagler

My impression after 3 days of syncing trial is, that manual search for neighbors may lead to isles of neighbors with redundant transaction exchange. All new nodes go https://iotatangle.slack.com and sync with nodes that also have just arrived there. Mixing with full synced nodes would be necessary, but if you have a fully synced node you dont want to change your neighbors. So a lot of useless work is done - maybe it helps the tangle, but the effort to become a fully synced node seems to be too high for the moment.

rnagler avatar Dec 03 '17 22:12 rnagler

ideally all new nodes should be close to a public node, and we need more public nodes.

mindlapse avatar Dec 03 '17 22:12 mindlapse

I suggest you just start makin' a public node.

GhostTyper avatar Dec 03 '17 22:12 GhostTyper

I would, if I could get synced. I can confirm that I have neighbours who are in sync and who are sending traffic, although my node has not yet synced. I just rescanned today and the same symptom still appears (a "latestSolidSubtangleMilestoneIndex" that doesn't move, currently stuck at 295189. The latestMilestoneIndex is also behind, at 295222 of 295272).

I'm using Oracle JDK 8 (1.8.0_151-b12). I'm running on a 4 core server with 8 GB of RAM in the us-east-1 amazon data center using a c5.xlarge instance type.

mindlapse avatar Dec 03 '17 22:12 mindlapse

I can give you my database, if you wish. Just extract it and then start your node with it.

GhostTyper avatar Dec 03 '17 22:12 GhostTyper

That would be awesome - would you be able to share via dropbox?

mindlapse avatar Dec 03 '17 23:12 mindlapse

No, just use this link: https://iota.lukaseder.de/download.html (I'm sorry, but this service is discontinued. Use the download on iota.partners instead.)

GhostTyper avatar Dec 03 '17 23:12 GhostTyper

Did it work?

GhostTyper avatar Dec 03 '17 23:12 GhostTyper

It worked! I'm in sync. Thank you so much!

mindlapse avatar Dec 04 '17 05:12 mindlapse

is it possible to get a fully synced database to download and to speed up syncing?

rnagler avatar Dec 04 '17 06:12 rnagler

I can export it again, if you don't find somebody who can help you (everyone could do this). I will develop an automagical export every night UTC 4h or something like that the next days.

GhostTyper avatar Dec 04 '17 06:12 GhostTyper

Please export it again

rnagler avatar Dec 04 '17 07:12 rnagler

Download it here: https://iota.lukaseder.de/download.html (I'm sorry, but this service is discontinued. Use the download on iota.partners instead.)

GhostTyper avatar Dec 04 '17 07:12 GhostTyper

That is what I posted to slack. repeat it here.

Sync problem. Always the same pattern:

  1. Latest milestone climbs in sync with botbox while lastest SOLID milestone doesn't move
  2. when solid milestone becomes few hundred points behind the latest one, I restart my IRI
  3. after ctrl-C or kill IRI stops communications but continues working on something for some 10+ min. Only then stops
  4. after restart node is immediately synced with SOLID milestone 2-30 points behind the "latest".
  5. then it repeats from step 1. E.g After restart some hour ago solid milestone was at 295518 and I know it won't move until next restart (edited)

[10:43] What I think it is going on.

  • IRI no doubt receives from neighbors all the information needed for the confirmation of very up-to-date solid subtangle
  • it doesn't do that because it's too busy gossiping with other nodes. The backlog mounts up, occupies memory etc
  • when shut down is requested, it stops being busy with gossiping and starts cleaning up it's backlog of confirmations. That's why after restart it is synced immediately

[10:44] My Ubuntu has 8GB RAM, 2 cores, iri flag is -Xmx6G, swapping disabled, CPU is busy 15-30% I think it is a bug.

lunfardo314 avatar Dec 04 '17 09:12 lunfardo314

thanks, my old db seemed to be anyhow corrupted, now I can connect with light wallet

rnagler avatar Dec 04 '17 09:12 rnagler

I can support what @lunfardo314 summarized. I would like to add that after moving to a way more powerful server (64GB, 8 Core, NVME SSD) the node found it's solid sync state. Although at the cost of a very huge DB-dir (35 GB). During synchronization RAM usage went up to 18 and more GB.

LiQio avatar Dec 04 '17 10:12 LiQio

that's quite a machine for IOT node!

lunfardo314 avatar Dec 04 '17 10:12 lunfardo314