-
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
Trouble with macaroons, bucket and database after 0.4.0 to 0.12.0 upgrade #5000
Comments
It looks like your macaroons aren't created because
If that doesn't work then please post the log and your current configuration file. |
Hi, I do have a very same problem, upgrading from 0.4.0 to 0.12.0, just my node was running till may the 10th :) These are my logs: Any help would be appreciated. Thanks. |
restored from backup, and tried another startup: 2021-02-14 09:57:51.660 [INF] LTND: Version: 0.12.0-beta commit=v0.12.0-beta-71-g5cec468f-dirty, build=production, logging=default, debuglevel=info |
Lnd is on autorun every time the system starts up. Went straight to log into my wallet by using lncli unlock and I got the error:
Log`2021-02-14 17:21:25.220 [INF] CHDB: Creating top-level bucket: "outpoint-bucket" ... 2021-02-14 17:21:25.221 [INF] CHDB: Created top-level bucket: "outpoint-bucket" 2021-02-14 17:21:25.221 [INF] CHDB: Applying migration #20 2021-02-14 17:21:25.358 [INF] LTND: Database now open (time_to_open=14.177894971s)! 2021-02-14 17:21:25.491 [INF] RPCS: Password RPC server listening on 127.0.0.1:10009 2021-02-14 17:21:25.496 [INF] RPCS: Password gRPC proxy started at 127.0.0.1:8080 2021-02-14 17:21:25.496 [INF] LTND: Waiting for wallet encryption password. Use 2021-02-14 18:13:38.318 [INF] LNWL: Applying wallet transaction manager migration #2 2021-02-14 18:13:38.318 [INF] LNWL: Dropping wallet transaction history 2021-02-14 18:13:38.357 [ERR] LNWL: Unable to apply wallet transaction manager migration #2: failed to delete locked outputs bucket: bucket not found Config`# SlugNode LND Mainnet: lnd configuration /home/bitcoin/.lnd/lnd.conf[Application Options] [Bitcoin] [tor] I may have tried to install the new lnd without stopping the service. Would that cause the kind of problems I'm experiencing now? |
It looks like the wallet database migration isn't successful. If that shows the same error, it's probably easiest to restore the wallet from the seed. That will cause the chain to be re-scanned and take a while but at least it should work again afterwards.
|
This migration error is actually a bug, I've opened btcsuite/btcwallet#731 to resolve it. Once it gets merged and the dependency is updated in lnd, the migration should succeed and allow the node to fully start up (barring any other unrelated errors). |
No go using Removed After that, macaroons were finally created. I unlocked LND and now LNWL is rescanning blocks in my log. Will update again after the scanning is done. |
Seems the scan is over. Log has this output now:
entered |
What does |
Ahhh, ok log is doing something different now. Didn't think it would take this long. Guess I should've been more patient. Log before checking
Now in
Guess I just have to wait on the channels to close, it seems, and then I can start sorting out what channels I'd like my funds to go too. I see my original capacity in there. So looks like it'll eventually be back to normal after sometime, right? |
I'm also getting this in my log. Not sure if this is an error that needs to be fixed:
|
I looked at the chain and the channel was closed a long time ago. Your wallet is now rescanning the chain and will find that out soon as well. It should be able to sweep the funds soon. Make sure you are connected to Rompert (the node on the other side, try |
Did what you instructed. Conncected to Rompert now. I was getting direct gossipsync here:
LN still says in still connected to Rompert, although it is GossipSyncing to a different address now:
I'll let it run overnight. Will be back after work tomorrow. |
Wanted to give it some time so I waited an extra day. Still getting the same error over and over even after connecting to Rompert.
Not sure if I should just wait longer? No matter the size of the transaction when the sweep happens, the result is Not sure what, or if, I should do more but just hang out and wait. |
Yes, this looks exactly the same. We did look at the witness of the TXns in #4888 and couldn't find out why they were wrong (none of the CVEs or known bugs seemed to apply). I'm starting to think we had a bug in an older version that we fixed later. Never seems to have happened in recent versions. @DebugSlug can you try if running |
@DebugSlug you can join our existing Slack here: https://lightning.engineering/slack.html |
Background
Last time my node ran was around May 22, 2018. v0.4.0. I was trying to upgrade on my own but I think I've dug myself into a hole I can't get out of myself. I went off of Stadicus guide to build my node and it's on a odroid. The first problem was after I upgraded to 0.11.0. from 0.4.0. I couldn't get my macaroons to generate into the new location. I followed some suggestions in this post #890
Your environment
LND from 0.4.0 to 0.11.0 to 0.12.0
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
bitcoind ver 20.1
Expected behaviour
Upgrading to 0.11.0 or 0.12.0 from 0.4.0 should recreate macaroons in new location and LND should reconnect and work.
Actual behaviour
LND does not recreate new macaroons in new location and everything I've tried in the post above hasn't worked. After upgrading from LND 0.4.0, when in LND version 0.11.0 I've tried :
--no-macaroons
and restarting without--no-macaroons
wallet already exists
[lncli] rpc error: code = Unknown desc = failed to delete locked outputs bucket: bucket not found
Then I upgraded to 0.12.0 to see if anything changes. Now in 0.12.0:
I just can't seem to be getting anywhere with it. I admit, I'm not the best at this but I've tried everything I was able to find on this topic. Should I just backup my wallet.db, delete the entire LND directory, and try to get my wallet restored on chain? Would that set the steps in motion to create macaroons since no previous wallet.db is present? I've checked the stats on my node at 1mil and the channels have been closed 2 years ago so funds being stuck shouldn't be a problem.
I'm clueless where to go from here and would greatly appreciate some help with my situation.
The text was updated successfully, but these errors were encountered: