-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not open database, lnd keeps restarting #4720
Comments
Hi @guggero and this is what I get: admin@rock64:~/download/db_restore$ ~/download/gopath/bin/chantools compactdb --sourcedb /home/admin/download/db_restore/channel.db --destdb /home/admin/download/db_restore/res2/compacted.db
2020-10-26 00:16:42.366 [INF] CHAN: chantools version v0.5.0 commit v0.5.0
2020-10-26 00:16:50.434 [WRN] CHAN: Could not read bucket 'chan-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:50.434 [WRN] CHAN: Could not read bucket 'disabled-edge-policy-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:50.435 [WRN] CHAN: Could not read bucket 'edge-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:50.435 [WRN] CHAN: Could not read bucket 'edge-update-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:50.435 [WRN] CHAN: Could not read bucket 'zombie-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:50.925 [WRN] CHAN: Could not read bucket 'chan-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:50.926 [WRN] CHAN: Could not read bucket 'disabled-edge-policy-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:50.926 [WRN] CHAN: Could not read bucket 'edge-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:50.926 [WRN] CHAN: Could not read bucket 'edge-update-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:50.926 [WRN] CHAN: Could not read bucket 'zombie-index' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.523 [WRN] CHAN: Could not read bucket 'message-store' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.524 [WRN] CHAN: Could not read bucket 'metadata' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.524 [WRN] CHAN: Could not read bucket 'missioncontrol-results' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.524 [WRN] CHAN: Could not read bucket 'network-result-store-bucket' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.524 [WRN] CHAN: Could not read bucket 'next-payment-id-key' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.524 [WRN] CHAN: Could not read bucket 'nib' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.524 [WRN] CHAN: Could not read bucket 'open-chan-bucket' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.524 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h���W(�`l�Q�{f��j����Q��$�J�' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.524 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�
4��/���������gh�|�eNO%' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
�@�����<J8�T���n�9���er�j' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h��;��
�2Gf���u�WӀ�D�wf�i8ܠo�C�' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�d��*�ŧ�&�֤�' �C��:�AfW��P�' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�-;��AZ�c�
�1�i՜�p�Di`Kh�����' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�1F�ڢʮ�Gʄ�3���O���i����/' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�3�Xb�R���rzp!(ʗ.�
�*:��B�' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�5e�Zf�������y�pj�/���[���9r' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�5��M�6�L�n �t��d0P�LJ6V_�@*d�' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�6�Tq�k�
�����3��x]Aǩ�ȓ�gnh' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�7���j�]�*0}.����g�-X{k`B�O�<]q' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�7�d��<~YC��Gq��h���K�W�(]�$�' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.525 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�?/@G�L�����q��f
�V�t'8Q�G' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�@�~�Z�2Οm�ͩVM��7y�I�'�{K#1' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�A�l����{ݔ���b�th���;��< [���' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��@i�}�L�!�O�' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�]�7r�������3�.��6 "g0�
��' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�`��0��qN?Ѱ��`���o����Wc��
w��' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�e̝�߳L�e�),4�nF9�X��F�,� >$�' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�qT�X'D�
"L�F8J2f��Z;��7�0v���' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�u��z�t�D܀�P�a�!cH;�e�U' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h�����
�pU��Z`��ݞe��K�/��' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h��؛��*�A�-"��5� %�h��c��n`��{
' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h����^��Ԥ����-���A�-��4W�F�D��' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.526 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h���h��*�4����k�Y;�Flִ�S �6� ' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.527 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h��o)��ޱB�#�̗�����vA?����ݐ' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.527 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h���8�r�~2��t�H�,]��^h���' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.527 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h���4mv��Ѓw�ݑ��Gj����(s��'' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.527 [WRN] CHAN: Could not read bucket 'o�
�{�$�ֆH�<ّ��Q˚�\��w��9' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.527 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h���fM���UY�跂�ɱ�'�/���c`�{�' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.527 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h���]vLy�
U�����Ӊ,���}���}�l%�d' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.527 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h��uk)�Xu����o�����_��' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.527 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h��~�'~�!d?���NVm�'�W1t�P�
ojY6��' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
2020-10-26 00:16:52.527 [WRN] CHAN: Could not read bucket 'o�
��r���F�c�O��e��h��]�N���L�[�z���؋�w���m�WNJ' (full path '[graph-edge disabled-edge-policy-index]') database is likely corrupted. Continuing anyway but skipping corrupt bucket.
error compacting DB: bucket already exists
Error running chantools: error compacting DB: bucket already exists
admin@rock64:~/download/db_restore$
admin@rock64:~/download/db_restore$ ls -la channel.db
-rw-rw-rw- 1 root root 349,319,168 Oct 26 00:12 channel.db
admin@rock64:~/download/db_restore$ ls -la res2/compacted.db
-rw------- 1 admin admin 42,086,400 Oct 26 00:17 res2/compacted.db
admin@rock64:~/download/db_restore$
What do you think? |
That sounds like your channel database got corrupted pretty badly. It looks like the damage is mostly contained to the What kind of storage medium are you using? |
Ho man. That is bad.. I had ~1 BTC of channels in this node. Dam it. I'm (was) running on Rock64 with a Toshiba 1TB Full logfile is here (I've sent you the password in Slack): |
How did you typically shutdown this node? Are you aware of any recent power failures? |
I almost never shut it down. |
Thanks for the logs! It looks like a shutdown was issued at Am I correct in assuming that The You do have a |
I have some backup. How can I access the wallet when I can not start the lnd service? |
You re-create your node from the seed, then apply the channel backup which will ask all your peers to force-close the channels. Make sure you keep a copy of the old files around, just in case there are some zombie channels that can't be recovered with this procedure. |
I don't get it I need a another node? with a synchronized bitcoind? a bitcoin wallet is a small file, why it is even in the channel.db ? |
See my comment in #4728:
|
Thanks, How can I check if the wallet.db is corrupted ? I assume that #4689 + me setting logging to DEBUG (#4613 (comment)) was too much for the hardware |
@guggero
does it mean that the wallet was also corrupted |
Yes, the error |
Hi, I've started the recovery process but most of the channels are in this state:
Is that ok? is there anything else I should do? |
@mrmanpew what's the status on this issue? I don't remember if you reached out to me on Slack or whether this is still unresolved? |
I managed to save some of the channels.. Still working on it. Probably will know better in a week or two. |
The amazing @guggero helped me to recover all the funds. Thank you very much! |
Background
I restarted the node and now I can not open the database, lnd just keeps restarting:
The timing are really strange, at 4:53 there was a shutdown and then it tried to open again at 4:55 ?
This is what I see in the jpurnalctl:
Your environment
v0.11.1-beta
Linux rock64 4.4.132-1075-rockchip-ayufan-ga83beded8524 #1 SMP Thu Jul 26 08:22:22 UTC 2018 aarch64 GNU/Linux
Bitcoin Core version v0.20.1
Thanks
The text was updated successfully, but these errors were encountered: