create account

Whole day gone due to an unexpected issue with Hive Engine witness nodes by bala41288

View this thread on: hive.blogpeakd.comecency.com
· @bala41288 ·
$19.44
Whole day gone due to an unexpected issue with Hive Engine witness nodes
Today morning when I woke up I was quite happy looking at the price of Hive. I do this every morning. Along with that as a routine, I also check the witness nodes too. I visit the Hive Engine witness channel on Discord to see if there is anything interesting going on or anything burning. Today morning too I did the same. I found out that there were some issues going on. By the way, I'm running a Hive Engine witness node and I also manage some of the witnesses for other people as a SaaS. They pay me for the server and maintenance and I run a witness node for them. 

![he.PNG](https://images.hive.blog/DQmZuEPrvt9Ln6F5jj5xbkmsatffpt7ruC8jLBpq1KUp1eH/he.PNG)

That is when I knew that the whole day is going to be gone there. The same has happened. I had to do restore and fix stuff the whole day. In between, I was also doing a lot of reading today when I was waiting for the restoration to happen and the blocks to catch up. Not just me but many fellow witnesses also had to do the same thing. For some reason, there was a block where the witnesses diverged. 

## Why is it taking a lot of time?

If something goes wrong with the witness servers, the round verification stops. New blocks would still be created but the verification will not happen. That is when the witnesses will have to find out what we should be doing to fix the issue and then apply the fix. If the issue is simple, it would need a simple fix but if people get forked out, we have to restore the blockchain from a recent backup. 

This is where the major challenge is. The size of the backup file itself is 20 GB. We have to download that from a common server which can take close to 30 minutes on average. After it is done we have to restore the mongo database from that. This is the most painful part here. The DB restoration can take from 2 hours to even 8 hours. On machines that are not Nvme, it can even take days. I recently upgraded my servers to Nvme and now things are better. 

After the database restoration is done, we have to wait for the blocks to catch up. Only then we can register the witness. But even after that, there are possibilities for the blocks to diverge again. This happened a couple of times today. I had to repeat the restoration activity again and again. At the time of writing this article, I'm doing the database restoration for the 4th time. I hope this time everything goes smoothly. 

## A few more hours before we are fully up and running

I guess in another few more hours we should all be up and running. Some of the witnesses are currently restoring. Some witnesses have started verifying blocks already. But we still don't have enough witnesses yet. I'm waiting for this to complete so that I can go to sleep. The whole day went in this activity and I don't want to sleep without completing the task. 

It was indeed good learning. I was able to explore a few options where we can improve the way we take backups and restore the witnesses from backups. I wish we had a facility similar to the differential backup we have in MSSQL. Mongo doesn't support such incremental backups efficiently yet. 

---
<table>
<tr>
<td>
<center><a href="https://discord.gg/bGmS2tE"><img src="https://images.hive.blog/DQmdthy4q4vyefBYmjMJtx7qHBmLnCfP2btiRPhRyc2U8hP/Indiaunited.png"/></a></center>
</td>
<td>
<center><a href="https://kanibot.com/"><img src="https://images.hive.blog/DQmdm8hKPz9TZL8Gd8bPyeVHm9hfgMqqiHcKL8283RBv2eH/Kanibot.png"/></a></center>
</td>
<td>
<center><a href="https://netbox.global/r/balanbx"><img src="https://images.hive.blog/DQma1a9t6rceDQYvMt6FhNkHuUUjAkQssZHrLJcXKfiQBFd/NetboxGlobal.png"/></a></center>
</td>
<tr>
<td>
<center><a href="https://r.honeygain.me/BALA4F8CD5"><img src="https://images.hive.blog/DQmdCZg8z6sxVukSdPm2kXRAhhnySqPZqK9YQ5hco65sp4n/Honeygain.png"/></a></center>
</td>
<td>
<center><a href="https://www.privex.io/?r=bala41288"><img src="https://images.hive.blog/DQmPB85eAMrQNGV7C4ykbfVTDNaiGmb8PfuiFr2AL8N8JQm/Privex.png"/></a></center>
</td>
<td>
<center><a href="https://www.publish0x.com/?a=YRdG6knybD"><img src="https://images.hive.blog/DQmcb3f3oJvjyxyScbim4gKPAnrHTyXjYtwk7HeC9aTN9Pn/Publish0x.png"/></a></center>
</td>
</tr>
</tr>
</table>

---

Posted with [STEMGeeks](https://stemgeeks.net)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 79 others
properties (23)
authorbala41288
permlinkwhole-day-gone-due-to-an-unexpected-issue-with-hive-engine-witness-nodes
categoryhive-163521
json_metadata{"tags":["hive-engine","neoxian","palnet","witness","hive","archon","proofofbrain","nodes","troubleshooting","stem"],"image":["https://images.hive.blog/DQmZuEPrvt9Ln6F5jj5xbkmsatffpt7ruC8jLBpq1KUp1eH/he.PNG","https://images.hive.blog/DQmdthy4q4vyefBYmjMJtx7qHBmLnCfP2btiRPhRyc2U8hP/Indiaunited.png","https://images.hive.blog/DQmdm8hKPz9TZL8Gd8bPyeVHm9hfgMqqiHcKL8283RBv2eH/Kanibot.png","https://images.hive.blog/DQma1a9t6rceDQYvMt6FhNkHuUUjAkQssZHrLJcXKfiQBFd/NetboxGlobal.png","https://images.hive.blog/DQmdCZg8z6sxVukSdPm2kXRAhhnySqPZqK9YQ5hco65sp4n/Honeygain.png","https://images.hive.blog/DQmPB85eAMrQNGV7C4ykbfVTDNaiGmb8PfuiFr2AL8N8JQm/Privex.png","https://images.hive.blog/DQmcb3f3oJvjyxyScbim4gKPAnrHTyXjYtwk7HeC9aTN9Pn/Publish0x.png"],"links":["https://discord.gg/bGmS2tE"],"app":"stemgeeks/0.1","format":"markdown","canonical_url":"https://stemgeeks.net/@bala41288/whole-day-gone-due-to-an-unexpected-issue-with-hive-engine-witness-nodes"}
created2021-11-22 18:33:48
last_update2021-11-22 18:33:48
depth0
children5
last_payout2021-11-29 18:33:48
cashout_time1969-12-31 23:59:59
total_payout_value9.802 HBD
curator_payout_value9.639 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,252
author_reputation1,554,833,627,601,913
root_title"Whole day gone due to an unexpected issue with Hive Engine witness nodes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,928,956
net_rshares6,414,999,739,290
author_curate_reward""
vote details (143)
@chrislybear ·
$0.03
Do you know which person I have to ask if something went wrong with Hive-engine? I made a top-up 19 hours ago in SWAP.HBD that wasn't credited.
👍  ,
properties (23)
authorchrislybear
permlinkre-bala41288-r30i7r
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2021.09.1"}
created2021-11-23 06:33:27
last_update2021-11-23 06:33:27
depth1
children2
last_payout2021-11-30 06:33:27
cashout_time1969-12-31 23:59:59
total_payout_value0.015 HBD
curator_payout_value0.013 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length143
author_reputation84,679,178,293,143
root_title"Whole day gone due to an unexpected issue with Hive Engine witness nodes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,942,070
net_rshares10,909,380,056
author_curate_reward""
vote details (2)
@bala41288 ·
$0.02
You can reach out on Hive Engine discord.
👍  ,
properties (23)
authorbala41288
permlinkr30khx
categoryhive-163521
json_metadata{"tags":["stem"],"app":"stemgeeks/0.1","canonical_url":"https://stemgeeks.net/@bala41288/r30khx"}
created2021-11-23 07:22:45
last_update2021-11-23 07:22:45
depth2
children1
last_payout2021-11-30 07:22:45
cashout_time1969-12-31 23:59:59
total_payout_value0.010 HBD
curator_payout_value0.009 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length41
author_reputation1,554,833,627,601,913
root_title"Whole day gone due to an unexpected issue with Hive Engine witness nodes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,942,859
net_rshares7,949,433,065
author_curate_reward""
vote details (2)
@chrislybear ·
$0.03
Thank you. I will :)
👍  ,
properties (23)
authorchrislybear
permlinkre-bala41288-20211123t82447600z
categoryhive-163521
json_metadata{"tags":["hive-163521","stem"],"app":"ecency/3.0.23-mobile","format":"markdown+html"}
created2021-11-23 07:24:45
last_update2021-11-23 07:24:45
depth3
children0
last_payout2021-11-30 07:24:45
cashout_time1969-12-31 23:59:59
total_payout_value0.015 HBD
curator_payout_value0.013 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length20
author_reputation84,679,178,293,143
root_title"Whole day gone due to an unexpected issue with Hive Engine witness nodes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,942,901
net_rshares10,824,625,473
author_curate_reward""
vote details (2)
@ecency ·
Your content has been **voted** as a part of [Encouragement program](https://ecency.com/ecency/@good-karma/encouragement-program-continues-82eafcd10a299). Keep up the good work! <br><br>Use Ecency daily to boost your growth on platform! <br><br><b>Support Ecency</b><br>[Vote for Proposal](https://hivesigner.com/sign/update-proposal-votes?proposal_ids=%5B141%5D&approve=true)<br>[Delegate HP and earn more](https://ecency.com/hive-125125/@ecency/daily-100-curation-rewards)
properties (22)
authorecency
permlinkre-20211123t12143981z
categoryhive-163521
json_metadata{"tags":["ecency"],"app":"ecency/3.0.16-welcome","format":"markdown+html"}
created2021-11-23 12:14:06
last_update2021-11-23 12:14:06
depth1
children0
last_payout2021-11-30 12:14:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length474
author_reputation630,692,881,768,165
root_title"Whole day gone due to an unexpected issue with Hive Engine witness nodes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,947,117
net_rshares0
@pixresteemer ·
<center>![pixresteemer_incognito_angel_mini.png](https://files.peakd.com/file/peakd-hive/pixresteemer/8h7BBw1w-pixresteemer_incognito_angel_mini.png)</center><center>Bang, I did it again... I just rehived your post!</center><center>Week 82 of my [contest](/hive-179017/@pixresteemer/the-re-hive-contest-results-week-81-and-start-week-82) just started...you can now check the winners of the previous week!</center><center><sub>15</sub></center>
properties (22)
authorpixresteemer
permlink20211122t184118017z
categoryhive-163521
json_metadata{"tags":["archon","pixresteemer"],"app":"pixresteemer"}
created2021-11-22 18:41:18
last_update2021-11-22 18:41:18
depth1
children0
last_payout2021-11-29 18:41:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length443
author_reputation121,327,105,860,388
root_title"Whole day gone due to an unexpected issue with Hive Engine witness nodes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,929,136
net_rshares0