# Lnbits losing connection after LND restart

**URL:** https://community.start9.com/t/lnbits-losing-connection-after-lnd-restart/5171
**Category:** StartOS Support
**Tags:** services
**Created:** [May 27, 2026, 8:54am UTC](https://community.start9.com/t/lnbits-losing-connection-after-lnd-restart/5171 "2026-05-27T08:54:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![shurtenburt](https://community.start9.com/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@shurtenburt](https://community.start9.com/u/shurtenburt)
#### Post date: [May 27, 2026, 8:54am UTC](https://community.start9.com/t/lnbits-losing-connection-after-lnd-restart/5171/1 "2026-05-27T08:54:05Z")

</div>

I am using latest startos 0.4.0 beta 9 with LND 0.20.1-beta:9 and LNBits 1.5.4:0  
This behaviour is since I migrated from 0.3.5.1 to 0.4.0 beta 4, and I think it was already happening in 0.3.5.1.  
Running StartOS on Proxmox as VM.

Sometimes after restarting other services or after backup, LNbits loses connection to LND and keeps running its voidwallet. It never reconnects again, until I manually restart LNbits.

LNBits log:

```auto
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Host: lnbits.startos
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Port: 5000
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Debug: False
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Site title: LNbits
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Funding source: LndRestWallet
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Data folder: ./data
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Database: SQLite
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Service fee: 0.0
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Service fee max: 0
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.39 | INFO | Service fee wallet: None
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.40 | INFO | Connecting to backend LndRestWallet...
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.47 | WARNING | Server error '500 Internal Server Error' for url 'https://lnd.startos:8080/v1/balance/channels'
2026-05-27T10:33:17+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.47 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://lnd.startos:8080.'
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.47 | WARNING | Retrying connection to backend in 0.5 seconds... (1/4)
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.97 | INFO | Connecting to backend LndRestWallet...
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.98 | WARNING | Server error '500 Internal Server Error' for url 'https://lnd.startos:8080/v1/balance/channels'
2026-05-27T10:33:17+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.98 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://lnd.startos:8080.'
2026-05-27T10:33:17+02:00 2026-05-27 08:33:17.98 | WARNING | Retrying connection to backend in 1.0 seconds... (2/4)
2026-05-27T10:33:18+02:00 2026-05-27 08:33:18.98 | INFO | Connecting to backend LndRestWallet...
2026-05-27T10:33:18+02:00 2026-05-27 08:33:18.98 | WARNING | Server error '500 Internal Server Error' for url 'https://lnd.startos:8080/v1/balance/channels'
2026-05-27T10:33:18+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-05-27T10:33:18+02:00 2026-05-27 08:33:18.98 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://lnd.startos:8080.'
2026-05-27T10:33:18+02:00 2026-05-27 08:33:18.98 | WARNING | Retrying connection to backend in 2.0 seconds... (3/4)
2026-05-27T10:33:20+02:00 2026-05-27 08:33:20.98 | INFO | Connecting to backend LndRestWallet...
2026-05-27T10:33:20+02:00 2026-05-27 08:33:20.99 | WARNING | Server error '500 Internal Server Error' for url 'https://lnd.startos:8080/v1/balance/channels'
2026-05-27T10:33:20+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-05-27T10:33:20+02:00 2026-05-27 08:33:20.99 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://lnd.startos:8080.'
2026-05-27T10:33:20+02:00 2026-05-27 08:33:20.99 | WARNING | Retrying connection to backend in 4.0 seconds... (4/4)
2026-05-27T10:33:24+02:00 2026-05-27 08:33:24.99 | INFO | Connecting to backend LndRestWallet...
2026-05-27T10:33:25+02:00 2026-05-27 08:33:25.04 | WARNING | Server error '500 Internal Server Error' for url 'https://lnd.startos:8080/v1/balance/channels'
2026-05-27T10:33:25+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-05-27T10:33:25+02:00 2026-05-27 08:33:25.04 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://lnd.startos:8080.'
2026-05-27T10:33:25+02:00 2026-05-27 08:33:25.04 | WARNING | Fallback to VoidWallet, because the backend for LndRestWallet isn't working properly
2026-05-27T10:33:25+02:00 2026-05-27 08:33:25.54 | SUCCESS | LNbits started in 8.83 seconds.
2026-05-27T10:33:25+02:00 2026-05-27 08:33:25.54 | WARNING | Task: skipping pending check for VoidWallet
2026-05-27T10:33:25+02:00 2026-05-27 08:33:25.54 | INFO | got a payment notification
2026-05-27T10:33:25+02:00 2026-05-27 08:33:25.54 | WARNING | This backend does nothing, it is here just as a placeholder, you must configure an actual backend before being able to do anything useful with LNbits.
2026-05-27T10:33:25+02:00 2026-05-27 08:33:25.54 | INFO | Application startup complete.
2026-05-27T10:33:26+02:00 2026-05-27 08:33:26.01 | INFO | Uvicorn running on http://lnbits.startos:5000 (Press CTRL+C to quit)
2026-05-27T10:33:26+02:00 2026-05-27 08:33:26.02 | WARNING | No payment found for ''.
2026-05-27T10:33:26+02:00 2026-05-27 08:33:26.41 | WARNING | This backend does nothing, it is here just as a placeholder, you must configure an actual backend before being able to do anything useful with LNbits.
2026-05-27T10:34:26+02:00 2026-05-27 08:34:26.82 | WARNING | This backend does nothing, it is here just as a placeholder, you must configure an actual backend before being able to do anything useful with LNbits.

```

---

<div class="post-metadata">

### Author: ![Alvaro](https://community.start9.com/user_avatar/community.start9.com/alvaro/32/452_2.png) [@Alvaro](https://community.start9.com/u/Alvaro)
#### Post date: [May 27, 2026, 11:39pm UTC](https://community.start9.com/t/lnbits-losing-connection-after-lnd-restart/5171/2 "2026-05-27T23:39:01Z")

</div>

There was a bug where LNBits would give the following error on newly created wallets:

LNBits ‘Payment failed: VoidWallet cannot pay invoices. 520’

Restarting LNBits would fix it.

What you are describing is not exactly the same, but similar enough that it might also be a bug with the service.

Please let us know a little bit more about your setup and any other symptoms you might be experiencing with other services.

Since you are running on Proxmox, there are quite a lot of variables that could be causing trouble.

---

<div class="post-metadata">

### Author: ![shurtenburt](https://community.start9.com/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@shurtenburt](https://community.start9.com/u/shurtenburt)
#### Post date: [May 28, 2026, 10:12am UTC](https://community.start9.com/t/lnbits-losing-connection-after-lnd-restart/5171/3 "2026-05-28T10:12:58Z")

</div>

The wallet is working as expected, when LNbits is restarted and/or has connection to LND. I can send and receive funds, everything is working as expected. Well, until I do a backup, or restart LND manually, then most of the times LNbits seems to lose connection and being unable to reconnect to LND, so it seems it keeps starting the “voidwallet” where you obviously cannot do transactions, and never tries to reach LND again.

I was running on Hyper-V before and had this kind of error, too. But with ProxMox I have reinstalled everything from scratch and did a restore from backup, recreated LN channels etc. So its a pretty fresh 0.4.0 installation (like 6 weeks old).  
No other VMs (I have multiple with docker services inside) suffer any network issues.

---

<div class="post-metadata">

### Author: ![shurtenburt](https://community.start9.com/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@shurtenburt](https://community.start9.com/u/shurtenburt)
#### Post date: [October 1, 2026, 2:40pm UTC](https://community.start9.com/t/lnbits-losing-connection-after-lnd-restart/5171/4 "2026-10-01T14:40:02Z")

</div>

Still have the same issue with StartOS 0.4.0.1 and lnbits 1.6.2.

After a restart of the whole server, or after backup, when starting all services and LND is not yet completely done, I get this error:

```auto
2026-10-01T12:41:56+02:00 Started container-runtime.service - StartOS Container Runtime.
2026-10-01T12:42:00+02:00 Listening on /media/startos/rpc/service.sock
2026-10-01T12:42:05+02:00 Initializing...
2026-10-01T12:42:06+02:00 Initialization complete.
2026-10-01T12:42:06+02:00 Starting LNbits!
2026-10-01T12:42:06+02:00 adding callback 1
2026-10-01T12:42:06+02:00 daemon primary waiting on sync-funding-settings
2026-10-01T12:42:06+02:00 Launching sync-funding-settings...
2026-10-01T12:42:06+02:00 daemon primary waiting on sync-funding-settings
2026-10-01T12:42:07+02:00 adding callback 2
2026-10-01T12:42:07+02:00 Launching primary...
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.16 | INFO | Started server process [13]
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.18 | INFO | Waiting for application startup.
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.18 | INFO | Starting LNbits Version: 1.6.2
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.23 | ERROR | No module named 'lnbits.extensions.lndhub'
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.24 | ERROR | Error migrating extension lndhub: Cannot import module for extension 'lndhub'.
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.29 | ERROR | No module named 'lnbits.extensions.tpos'
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.29 | ERROR | Error migrating extension tpos: Cannot import module for extension 'tpos'.
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.31 | INFO | ✔️ All migrations done.
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.67 | SUCCESS | ✔️ Admin UI is enabled. run `uv run lnbits-cli superuser` to get the superuser.
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.67 | INFO | Initialized webpush settings with generated VAPID key pair.
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.67 | INFO | Pubkey: BHkVcXg5WNAWN0HSSRWjlz8zcKqgCzx5wA_PnuS885tBRwcgEsi-g-7SZ08syZmwKYH3CG7B2z8UhvzI_EWmpYE
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.70 | INFO | Extracting extension LndHub (1.0.3).
2026-10-01T12:42:42+02:00 2026-10-01 10:42:42.76 | INFO | Extension LndHub (1.0.3) extracted.
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.01 | INFO | ✔️ Successfully re-installed extension: lndhub (1.0.3)
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.05 | INFO | Extracting extension TPoS (1.5.0).
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.17 | INFO | Extension TPoS (1.5.0) extracted.
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.62 | INFO | ✔️ Successfully re-installed extension: tpos (1.5.0)
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.62 | INFO | Installed Extensions (2):
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.62 | INFO | lndhub (1.0.3)
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.62 | INFO | tpos (1.5.0)
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | LNbits Info
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Version: 1.6.2
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Baseurl: http://127.0.0.1:5000/
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Host: 0.0.0.0
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Port: 5000
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Debug: False
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Site title: LNbits
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Funding source: LndRestWallet
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Data folder: ./data
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Database: SQLite
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Service fee: 0.0
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Service fee max: 0
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.74 | INFO | Service fee wallet: None
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.75 | INFO | Connecting to backend LndRestWallet...
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.83 | WARNING | Server error '500 Internal Server Error' for url 'https://10.0.3.1:8080/v1/balance/channels'
2026-10-01T12:42:43+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.83 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://10.0.3.1:8080.'
2026-10-01T12:42:43+02:00 2026-10-01 10:42:43.83 | WARNING | Retrying connection to backend in 0.5 seconds... (1/4)
2026-10-01T12:42:44+02:00 2026-10-01 10:42:44.33 | INFO | Connecting to backend LndRestWallet...
2026-10-01T12:42:44+02:00 2026-10-01 10:42:44.34 | WARNING | Server error '500 Internal Server Error' for url 'https://10.0.3.1:8080/v1/balance/channels'
2026-10-01T12:42:44+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-10-01T12:42:44+02:00 2026-10-01 10:42:44.35 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://10.0.3.1:8080.'
2026-10-01T12:42:44+02:00 2026-10-01 10:42:44.35 | WARNING | Retrying connection to backend in 1.0 seconds... (2/4)
2026-10-01T12:42:45+02:00 2026-10-01 10:42:45.35 | INFO | Connecting to backend LndRestWallet...
2026-10-01T12:42:45+02:00 2026-10-01 10:42:45.36 | WARNING | Server error '500 Internal Server Error' for url 'https://10.0.3.1:8080/v1/balance/channels'
2026-10-01T12:42:45+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-10-01T12:42:45+02:00 2026-10-01 10:42:45.36 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://10.0.3.1:8080.'
2026-10-01T12:42:45+02:00 2026-10-01 10:42:45.36 | WARNING | Retrying connection to backend in 2.0 seconds... (3/4)
2026-10-01T12:42:47+02:00 2026-10-01 10:42:47.36 | INFO | Connecting to backend LndRestWallet...
2026-10-01T12:42:47+02:00 2026-10-01 10:42:47.37 | WARNING | Server error '500 Internal Server Error' for url 'https://10.0.3.1:8080/v1/balance/channels'
2026-10-01T12:42:47+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-10-01T12:42:47+02:00 2026-10-01 10:42:47.37 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://10.0.3.1:8080.'
2026-10-01T12:42:47+02:00 2026-10-01 10:42:47.37 | WARNING | Retrying connection to backend in 4.0 seconds... (4/4)
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.37 | INFO | Connecting to backend LndRestWallet...
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.38 | WARNING | Server error '500 Internal Server Error' for url 'https://10.0.3.1:8080/v1/balance/channels'
2026-10-01T12:42:51+02:00 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.38 | ERROR | The backend for LndRestWallet isn't working properly: 'Unable to connect to https://10.0.3.1:8080.'
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.38 | WARNING | Fallback to VoidWallet, because the backend for LndRestWallet isn't working properly
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.73 | SUCCESS | LNbits started in 9.55 seconds.
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.73 | WARNING | Task: skipping pending check for VoidWallet
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.81 | WARNING | This backend does nothing, it is here just as a placeholder, you must configure an actual backend before being able to do anything useful with LNbits.
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.86 | INFO | Application startup complete.
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.86 | INFO | Uvicorn running on http://0.0.0.0:5000 (Press CTRL+C to quit)
2026-10-01T12:42:51+02:00 2026-10-01 10:42:51.96 | WARNING | This backend does nothing, it is here just as a placeholder, you must configure an actual backend before being able to do anything useful with LNbits.
2026-10-01T12:43:51+02:00 2026-10-01 10:43:51.89 | WARNING | This backend does nothing, it is here just as a placeholder, you must configure an actual backend before being able to do anything useful with LNbits.

```

Only restarting lnbits manually is helping, so it can find LND rightaway. Is it possible to have lnbits wait a bit longer until everything is settled during startup of multiple services? Or do a kind of staggered startup of the services with dependencies?
