loop icon indicating copy to clipboard operation
loop copied to clipboard

loopd exiting on startup with rpc error

Open johnmarc opened this issue 1 year ago • 2 comments
trafficstars

Starting loopd, it exits with an error:

2024-01-06 16:16:31.267 [INF] LOOPD: Version: 0.26.6-beta commit= 2024-01-06 16:16:31.267 [INF] LNDC: Creating lnd connection to localhost:10009 loopd exited with an error: unable to get tls creds: read /var/db/lnd: is a directory root@bitcoin-dilboy:/usr/local/etc # su -m lnd -c "/usr/local/bin/loopd --configfile=/usr/local/etc/loopd.conf --lnd.tlspath=/var/db/lnd/tls.cert" 2024-01-06 16:17:10.219 [INF] LOOPD: Version: 0.26.6-beta commit= 2024-01-06 16:17:10.219 [INF] LNDC: Creating lnd connection to localhost:10009 2024-01-06 16:17:10.230 [INF] LNDC: Connected to lnd 2024-01-06 16:17:10.235 [INF] LNDC: Waiting for lnd to unlock 2024-01-06 16:17:10.235 [INF] LNDC: Wallet state of lnd is now: Lnd main server is ready for requests 2024-01-06 16:17:10.246 [INF] LNDC: lnd version: v0.17.3-beta, build tags 'autopilotrpc,signrpc,walletrpc,chainrpc,invoicesrpc,watchtowerrpc,neutrinorpc,monitoring,peersrpc,kvdb_postgres,kvdb_etcd,kvdb_sqlite' 2024-01-06 16:17:10.246 [INF] LNDC: Using network mainnet 2024-01-06 16:17:10.246 [INF] LNDC: Waiting for lnd to be fully synced to its chain backend, this might take a while 2024-01-06 16:17:10.256 [INF] LNDC: lnd is now fully synced to its chain backend 2024-01-06 16:17:10.256 [INF] LOOPD: Protocol version: MuSig2 2024-01-06 16:17:10.256 [INF] LOOPD: Swap server address: swap.lightning.today:11010 2024-01-06 16:17:10.257 [INF] LOOPD: Found sqlite db at /var/db/loopd/mainnet/loop_sqlite.db, skipping migration 2024-01-06 16:17:10.257 [INF] LOOPD: Opening sqlite3 database at: /var/db/loopd/mainnet/loop_sqlite.db loopd exited with an error: unable to derive a shared secret with LND: rpc error: code = Unknown desc = permission denied

Expected behavior

loopd to start successfully

Actual behavior

loopd throws an error.

To reproduce

happens on every start

System information lnd logs this message 2024-01-06 16:05:39.841 [ERR] RPCS: [/signrpc.Signer/DeriveSharedKey]: permission denied

TrueNAS machine running FreeBSD 13. loop/lnd/bitcoind running in a jail.

FreeBSD bitcoin-dilboy 13.1-RELEASE-p9 FreeBSD 13.1-RELEASE-p9 n245429-296d095698e TRUENAS amd64 bitcoind/lnd full netowork sync

johnmarc avatar Jan 06 '24 21:01 johnmarc