Bitcoin Forum

Bitcoin => Electrum => Topic started by: nazalweazel on April 12, 2021, 03:31:59 AM



Title: Cannot make lightning payment ('channelDB data not loaded yet!')
Post by: nazalweazel on April 12, 2021, 03:31:59 AM
When attempting to make a lightning payment, I get the error "Exception('channelDB data not loaded yet!')".

Receiving lightning deposits through this channel work fine.

My lightning node information does say "connected to 0 peers", in case that is a related issue? And the % next to the lightning icon is "??%".

I'm running Electrum 4.1.2 with trampoline routing disabled as I opened this channel before trampoline routing was a feature. My channel worked fine before 4.1.

Does anyone have any suggestions on what to try?


Title: Re: Cannot make lightning payment ('channelDB data not loaded yet!')
Post by: jackg on April 12, 2021, 03:37:51 AM
Have you been leaving it running or just opening it when you want to send a transaction?

I think this is a problem with your node building and downloading a route to use.

Are you connected via tor fine (assuming it's still forcing tor use in 4.1.2) - with it running in the background i mean.


Title: Re: Cannot make lightning payment ('channelDB data not loaded yet!')
Post by: nazalweazel on April 12, 2021, 03:44:01 AM
Thanks for your prompt response, jackg!

I've been leaving it running, though it has been closed to update Electrum. Is there a way to force a rebuild?

I don't believe I'm connected via tor, unless this is the default. I can't seem to find any option to select tor either way.


Title: Re: Cannot make lightning payment ('channelDB data not loaded yet!')
Post by: nazalweazel on April 12, 2021, 04:06:30 AM
I fixed it!

1) I closed Electrum

2) I removed the gossip_db and watchtower.db from the electrum folder

3) I edited config to set "run_local_watchtower": false and "use_gossip": false

4) reopened Electrum and re-disabled trampoline routing

Not sure what it was in the above that was stopping the sync, but that's done now, and I'm able to send and receive again.

I did run a local watchtower in an earlier version of Electrum and that option doesn't seem to be available anymore, so maybe something there?