Lnbits losing connection after LND restart

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:

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.

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.

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.