Balance of Satoshis in Docker + Umbrel?

Has anyone been able to get BoS to work in a docker container with Umbrel? I can’t seem to get it to connect to the LND container.

I tried using their saved node instructions.

~/.bos/umbrel/credentials.json

{
  "cert_path": "/home/node/.lnd/tls.cert",
  "macaroon_path": "/home/node/.lnd/data/chain/bitcoin/mainnet/admin.macaroon",
  "socket": "umbrel.local:10009"
}

Start cmd:

sudo docker run -it --rm --network="umbrel_main_network" --add-host=umbrel.local:10.21.21.9 -v ${PWD}/umbrel/lnd:/home/node/.lnd:ro -v ${PWD}/.bos:/home/node/.bos:ro alexbosworth/balanceofsatoshis report --node umbrel

Error:

- 503
- UnexpectedErrorWhenGettingChainBalance
-
  err:
    message: 14 UNAVAILABLE: No connection established
    stack:
      - Error: 14 UNAVAILABLE: No connection established
      -     at Object.callErrorFromStatus (/app/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
      -     at Object.onReceiveStatus (/app/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/client.js:179:52)
      -     at Object.onReceiveStatus (/app/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:336:141
)
      -     at Object.onReceiveStatus (/app/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181
)
      -     at /app/node_modules/ln-service/node_modules/@grpc/grpc-js/build/src/call-stream.js:145:78
      -     at processTicksAndRejections (node:internal/process/task_queues:78:11)

If I start the BoS container with --entrypoint bash I can ping umbrel.local just fine.

Got help from Alex the author. Changing the socket in credentials.json to point at the Umbrel LND IP address lets it connect as expected.

~/.bos/umbrel/credentials.json

{
  "cert_path": "/home/node/.lnd/tls.cert",
  "macaroon_path": "/home/node/.lnd/data/chain/bitcoin/mainnet/admin.macaroon",
  "socket": "10.21.21.9:10009"
}
1 Like