lightninglabs / lightning-app

An easy-to-use cross-platform Lightning wallet
GNU General Public License v3.0
898 stars 172 forks source link

App stuck syncing #1264

Open valentinewallace opened 5 years ago

valentinewallace commented 5 years ago

mDIN2pLV 5gTMo0NH UdfQyC_Z Issue submitted via twitter DM. Caused by https://github.com/lightninglabs/neutrino/issues/164.

yope commented 5 years ago

I am trying to find out whether I am having the exact same issue.

After a longer period of not using the application (about a week), after starting the app again it seemed to take a very long time syncing. I left the app running in foreground for a few hours (on a pixel 2 XL). The status bar kept showing the message "Syncing to chain (block: XXXXXX)" My phone ran hot and almost out of battery. I closed the app and re-opened it. Same as before. I decided to check the block number shown, and discovered it was the current block height of the chain. Checking the logs, the last message read "[INF] BTCN: Fetching set of headers from tip (height=XXXXXX) from peer 13.91.246.35:8333".

XXXXXX corresponds to the actual block height at that moment.

After a few minutes (presumably when the next block is mined and propagated), a curious message displayed in the logs says: "[INF] BTCN: Processed 39 blocks in the last 8m33.36s (height=XXXXXX+1, ...."

Is BTCN processing the last block over and over again as many times (39) as it can before the next block arrives? Seems like that...

Some other information which may probably belong into a separate issue: After the last upgrade, autopilot somehow turned on (I had disabled it), so the application started opening a new channel (consuming all resting funds). That channel is still in the "opening" state and cannot be closed apparently. Not sure why it stays in opening state forever (seemingly), but I it might have to do either with the application being stuck in syncing state, or with the fact that the opening transaction was issued with an unusually low fee (like $0.40 equivalent)?

christopherjohst commented 5 years ago

I'm also seeing a similar – perhaps the same – issue with 0.2.4 of the Lightning app on iOS 13.1.3.

After not opening the app for a couple of weeks I appear to be stuck on block 599205.

The Neutrino backend never completes downloading block headers to the tip. The notification saying "syncing to chain (block 599205)" appears and disappears but never advances to the chain tip.

Force closing and restarting the app doesn't help either. I have previously used the app for around 30 payments with success.