<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged recovery</title>
<link>https://www.multichain.com/qa/tag/recovery</link>
<description>Powered by Question2Answer</description>
<item>
<title>Not able to recover/start a node.</title>
<link>https://www.multichain.com/qa/7723/not-able-to-recover-start-a-node</link>
<description>&lt;p&gt;Hi Team,&lt;/p&gt;&lt;p&gt;I 've a 2 peer multichain system and I was running few performance tests on the system by generating 20 rps and I was using the sendassetfrom api to another single address. So my node was holding only 2&amp;nbsp;wallets&amp;nbsp;(watch only) one for the sender and one for the receiver. The autocombine settings was the default one, so my node was generating a lot of utxo(s).&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now eventually my node crashed and since then I 'm not able to recover my genesis node which had the admin permission. My 2nd node is up but it didn't have the admin permissions. So now I can't add other peers to my multichain since I can't grant permissions from the 2nd node.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Initially my nodes were running on m4.large instance and when it crashed, I thought of bringing the node up by upgrading the node to bigger instances, I even tried with c4.8x large system for that multichain but the node never recovered.&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I started the daemon on the big machine it basically hanged&amp;nbsp;for ever. Logs see below link.&lt;/p&gt;&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://gist.github.com/ashish235/7ad9aaf8f0311577b6cf4d87754200ba&quot;&gt;https://gist.github.com/ashish235/7ad9aaf8f0311577b6cf4d87754200ba&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Then I though of decreasing the utxo from the 2nd node, so I triggered autocombine manually and brought the utxo to just 18 or 19. Then I tried again to start the primary, this time after a good 20 mins I got the message node started but my blocks never got synced to each other.&amp;nbsp;&lt;/p&gt;&lt;p&gt;See the logs below.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://gist.github.com/ashish235/b85691a309d1bd10761ad49f1cc49cd3&quot;&gt;https://gist.github.com/ashish235/b85691a309d1bd10761ad49f1cc49cd3&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Even then there was no transactions happening on the nodes, my blockcount on the 2nd node kept on increasing and my primary node just couldn't catch it, it was always 200 blocks behind. I left the system overnight and check in the morning, the difference of the synced blocks was same and all I could see the logs on primary is this. Please see below. I got about a million at least of this invalid flag message. When I checked on both the nodes this txid didn't exist, maybe this is not txid. :)&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;2017-11-28 19:21:59 Tx 35b807faa046809a3708f9fcea81b87ffab12a98bcbc2a43ddd00d4c1dec7934 was not accepted to mempool, setting INVALID flag&lt;br&gt;2017-11-28 19:21:59 Tx ecb81a6495211e3435a5cee6a11c3026fc943456e3752bbccd35f07ab1afaf2a was not accepted to mempool, setting INVALID flag&lt;br&gt;2017-11-28 19:21:59 Tx dd94407d874182acdc3176d54fd2377793b8bacb4c82a2a65715fd3b914aaaf0 was not accepted to mempool, setting INVALID flag&lt;br&gt;2017-11-28 19:21:59 Tx 5c733ed7c495d2e5396b0f38d6348dc35b570ce599534d14e96425caf8e4244e was not accepted to mempool, setting INVALID flag&lt;br&gt;2017-11-28 19:21:59 Tx 1d267fa07e6b1fe67670c955c3f11c44070e66467005f85f76f01eb82fa3352d was not accepted to mempool, setting INVALID flag&lt;br&gt;2017-11-28 19:21:59 Tx 8acf5bb55a082565625c3df9ca072ec9db5b74cb5331bb1233b8d80322474839 was not accepted to mempool, setting INVALID flag&lt;br&gt;2017-11-28 19:21:59 Tx 432a0f1c48453315b3d36bfb9defc822bc28c9b58f730023630c568ae4ee47d6 was not accepted to mempool, setting INVALID flag&lt;br&gt;2017-11-28 19:21:59 Tx 10852321116e5bcd25d2a7bf3b39aec262598f4226044ba90c7025b9b565d18d was not accepted to mempool, setting INVALID flag&lt;br&gt;2017-11-28 19:21:59 Tx f3ca1390b3faf35b4fe42a35c3521c0b796e454a3a5552f74fd63eda45e3d346 was not accepted to mempool, setting INVALID flag&lt;br&gt;mchn: Sending minimal parameter set to 172.31.17.70:35518&lt;br&gt;2017-11-28 19:21:59 receive version message: /MultiChain:0.1.0.9/: version 70002, blocks=4742, us=172.31.28.155:4411, peer=20&lt;br&gt;2017-11-28 19:21:59 mchn: Connection from 13zFHBxiYKbVBdefyiDG3A8EkqDUJa8xabRQLq received on peer=20 in verack&lt;br&gt;2017-11-28 19:21:59 mchn: Sending minimal parameter set to 172.31.17.70:4411&lt;br&gt;2017-11-28 19:21:59 receive version message: /MultiChain:0.1.0.9/: version 70002, blocks=4742, us=172.31.28.155:55716, peer=21&lt;br&gt;2017-11-28 19:21:59 mchn: Connection from 13zFHBxiYKbVBdefyiDG3A8EkqDUJa8xabRQLq received on peer=20 in verackack (172.31.17.70:35518)&lt;br&gt;2017-11-28 19:21:59 mchn: Parameter set from peer=20 verified&lt;br&gt;2017-11-28 19:21:59 ResendWalletTransactions()&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In between all of this one strange thing also happened which I think is worth mentioning during the heavy load testing, my multichain was once not responding so I stopped multichain and it said&amp;nbsp;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;[ec2-user@ip-172-31-28-155 ~]$ multichain-cli chain1 stop&lt;br&gt;{&quot;method&quot;:&quot;stop&quot;,&quot;params&quot;:[],&quot;id&quot;:1,&quot;chain_name&quot;:&quot;chain1&quot;}&lt;/p&gt;&lt;p&gt;error: no response from server&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;So I killed the daemon myself.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Please any pointers on how can I avoid such issues and how to get my primary node back? Let me know if I can help with any other information to help debug this.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/7723/not-able-to-recover-start-a-node</guid>
<pubDate>Thu, 30 Nov 2017 11:31:40 +0000</pubDate>
</item>
<item>
<title>Recovering nodes</title>
<link>https://www.multichain.com/qa/817/recovering-nodes</link>
<description>I'm trying to recover a test chain that has a corrupt admin node database and can not start.&lt;br /&gt;
&lt;br /&gt;
I have 3 healthy nodes running, the only admin node is corrupt and on start displays: &amp;quot;ERROR: Couldn't initialize asset database for network &amp;lt;chain&amp;gt;. Exiting...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I was under the impression that this wouldn't be a problem since I have a wallet.dat and multichain.conf (see &lt;a href=&quot;http://www.multichain.com/qa/304/rebuilding-the-block-database?show=307#a307&quot; rel=&quot;nofollow&quot;&gt;http://www.multichain.com/qa/304/rebuilding-the-block-database?show=307#a307&lt;/a&gt; ). When I try this I am asked to give permission to connect on another node but there is no admin node left, so how do I recover this test node?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/817/recovering-nodes</guid>
<pubDate>Fri, 29 Jan 2016 10:41:16 +0000</pubDate>
</item>
<item>
<title>Recovering a blockchain</title>
<link>https://www.multichain.com/qa/659/recovering-a-blockchain</link>
<description>&lt;p&gt;I had two instances of multichain running on the same machine, and the machine crashed. I'm now unable to start either of these instances. The error I'm getting is:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;me@518781d398a5:~$ multichaind -datadir=/home/me/mc2 chain1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;MultiChain Core Daemon build 1.0 alpha 14 protocol 10003&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;ERROR: Couldn't initialize permission database for blockchain chain1. Probably multichaind for this blockchain is already running. Exiting...&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I checked (&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;ps -x / ps -ef&lt;/span&gt;), and there's &lt;strong&gt;no&lt;/strong&gt; multichain process on this machine. Is there anything I can do to restart the blockchain, or do I need to create it from scratch?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/659/recovering-a-blockchain</guid>
<pubDate>Mon, 04 Jan 2016 10:11:28 +0000</pubDate>
</item>
</channel>
</rss>