lnd: Unable to set up wallet password listeners: missing address manager namespace

Background

Setting up a fresh regtest wallet, I get this error.

$ ./lnd-debug --bitcoin.active --bitcoin.regtest --bitcoin.node=bitcoind --bitcoind.zmqpubrawblock=localhost:40000 --bitcoind.zmqpubrawtx=40000 --bitcoind.rpcuser=user --bitcoind.rpcpass=pass --bitcoind.rpchost=localhost:8332
2019-10-18 07:27:36.915 [WRN] LTND: open /home/janus/.lnd/lnd.conf: no such file or directory
2019-10-18 07:27:36.916 [INF] LTND: Version: 0.8.0-beta commit=v0.8.0-beta-18-g93247d0304260c8cfa6af5b19988a55ed5e39f14, build=development, logging=default
2019-10-18 07:27:36.919 [INF] LTND: Active chain: Bitcoin (network=regtest)
2019-10-18 07:27:36.922 [INF] CHDB: Checking for schema update: latest_version=11, db_version=11
2019-10-18 07:27:36.953 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080
2019-10-18 07:27:36.955 [INF] RPCS: password RPC server listening on 127.0.0.1:10009
2019-10-18 07:27:36.964 [INF] LTND: Waiting for wallet encryption password. Use `lncli create` to create a wallet, `lncli unlock` to unlock an existing wallet, or `lncli changepassword` to change the password of an existing wallet and unlock it.
2019-10-18 07:28:46.366 [ERR] LTND: Could not unload new wallet: wallet is not loaded
2019-10-18 07:28:46.367 [ERR] LTND: Unable to set up wallet password listeners: missing address manager namespace
2019-10-18 07:28:46.368 [INF] LTND: Shutdown complete
Unable to set up wallet password listeners: missing address manager namespace

Your environment

  • version of lnd

commit 93247d0304260c8cfa6af5b19988a55ed5e39f14

  • which operating system (uname -a on *Nix)

Ubuntu on WSL on Windows 10

  • version of btcd, bitcoind, or other backend

bitcoind 0.18.1

  • any other relevant environment details

Steps to reproduce

Seems like you just need to create a fresh wallet to hit this.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 21 (4 by maintainers)

Most upvoted comments

From some debugging, it will not happen if Swap file system is enabled.

Got hit by this also when deploying LND with kubernetes - helm on a ZFS filesystem on Ubuntu 22.04 without swap:

[INF] LTND: Attempting automatic wallet unlock with password provided in file
[ERR] LTND: Shutting down because error in main method: error creating wallet config: error unlocking wallet with password from file: missing address manager namespace
[INF] LTND: Shutdown complete

error creating wallet config: error unlocking wallet with password from file: missing address manager namespace

checked there is no swap configured:

cat /proc/swaps
Filename				Type		Size		Used		Priority

Installed zram

sudo apt install zram-config

and working after reboot:

cat /proc/swaps
Filename				Type		Size		Used		Priority
/dev/zram0                              partition	8129088		0		5

zramctl
NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lzo-rle       7.8G   4K   74B   12K       4 [SWAP]

LND now deploys without errors.

From some debugging, it will not happen if Swap file system is enabled.

Thanks a lot! This solved the problem for me.

What command did you run from lncli to get this output? Did you run lncli create and then lncli unlock later or is this error directly from the create command?

It looks like the wallet.db file is corrupt. Or it cant’ be read. Can you check that it exists and that you have write permission to it?