Skip to content

Trouble with macaroons, bucket and database after 0.4.0 to 0.12.0 upgrade #5000

@DebugSlug

Description

@DebugSlug

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 :

  • starting lnd with --no-macaroons and restarting without --no-macaroons
  • delete macaroons.db
  • Start lnd, create wallet with password with lncli create using my existing wallet password, cipher seed and cipher password - output is : wallet already exists
  • Tried wrong password - output is : [lncli] rpc error: code = Unknown desc = failed to delete locked outputs bucket: bucket not found
  • Tried deleting tls.cert and tls.key
  • macaroons can't be in testnet directories, never was a testnet setup.

Then I upgraded to 0.12.0 to see if anything changes. Now in 0.12.0:

  • When I try to run lnd it will shutdown and the output is:
[INF] LTND: Opening bbolt database, sync_freelist=false, auto_compact=false

2021-02-08 20:35:25.223 [INF] LTND: Shutdown complete

unable to open databases: unable to obtain database backends: timeout

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions