-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C-lightning takes forever to sync #18
Comments
Yes. Have you tried to check the logs via |
and
Might help you. You may not have enough RAM or CPU overwhelmed by something. |
mmh. This does not seems good. Can you post an issue on clightning repo? I am tempted to update clightning to latest commits. This is 0.6 as it was released. |
Currently doing a cross check with a standalone docker compose up from the docs, to see if this happens also there. |
Ok, the docker lightning cross check did not show the same load. After synching bitcoin the load goes to 0.04 after initial sync. So seems to be specific to BTCPay. |
The 2vCore instance ran the whole day and testnet bitcoin as >1300000 blocks while LN still on block 893870
@NicolasDorier I will be available after sleep in about 9-10 hours if you want to take a look yourself you can send me your public key in Slack or via E-Mail. Will shut the server down now, so that you can check if you want. |
@ndeet can you try deleting the clightning volume and restarting the container? |
@NicolasDorier
It doen't look like my CPU or RAM is overwhelmed, so I don't know. |
@BobleChinois can you try to stop the container, delete the volume of btcpayserver_clightning_bitcoin and start again the container? |
@NicolasDorier Ok, I was even more radical and started all over on another machine (which is older and slower than the first one). I have the exact same issue, bitcoind synced in a couple of hour while c-lightning is lagging far behind. I did the
Was it on the first time too ? I didn't notice it, but might be my mistake, I should have checked it a grep fail or something like that. [EDIT] It seems that the error occurs when I turn off bitcoind and that NBXplorer just catch up later when I start it again, so it seems this is not the issue. |
Yes this error is just NBXplorer complaining it lost connectivity to BitcoinD, it connect again when bitcoind is on again. Can you please try to delete the volume of clightning and restart the container? I had a problem with LND which happened because LND did not like connecting to bitcoind before it was over synching. I want to check if this is the issue. |
I just did that, and it seems to have solved the problem, I'll play around just to make sure that everything is all right. |
I need to fix this... |
The docker image for clightning will now wait that the node is fully synched before starting clightning. Closing this and posting bug on clightning repo. |
Issue
I'm on testnet. Everything seems to run fine, bitcoind already synced, but after about 6 hours run c-lightning only catched up to block 319281 and is really slow.
Should I open an issue with c-lightning instead ?
getinfo
outputsBitcoin-cli getblockchaininfo
gives the following :bitcoin-lightning-cli
gives the following :Setup
btcpayserver-docker commit
511db652e8228f566b87620fe94a8d00f162d120
The text was updated successfully, but these errors were encountered: