Graph database corruption #10567
Unanswered
jogc
asked this question in
Troubleshooting
Replies: 1 comment 12 replies
-
|
What was your motivation to delete the graph? You could try |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(Did not report this as a bug yet since it could be a bug in chantools, in lnd or in neither)
I have a small node I haven't paid much attention to for many months and I suddenly realized something is very wrong with its graph database (see below). Good news is my channels are still open with a recent latest update time according to third-party nodes and the channel points have not been spent on-chain so I guess the node is still kinda functioning from an outside perspective.
lncli listchannelsshows the channels as open and active andlncli describegraphreturns a graph with a reasonable number of edges and nodes but excluding any of my channels.I did a
chantools dropchannelgraphon this node in July but I don't have logs further back than late December which is extremely annoying so I can't say if this started right after the dropchannelgraph or if it was later. I have done dropchannelgraph on other nodes before without any problem (the node rebuilds the graph without any issues). What is the best course of action? Do adropchannelgraph --fix_onlyand hope for the best? Nuke all data and restart completely? If I have to close the channels I guess that's fine but I would like to keep the node identity.What I'm really worrying about is that the real cause is data corruption due to some hardware issue since I moved the node to a brand new device at the same time I did the
dropchannelgraph. Would be nice to exclude that as an option.Details:
It spits out messages like these once a minute, one for each of my channels:
[ERR] NANN: Unable to retrieve chan status for Channel(X:n): edge not found: op=X:n(slightly censored) and once every few minutes, again one for each of my channels:
[INF] CNCT: ChannelArbitrator(X:n) no close eventOn top of that I also get a lot of other suspicious messages. Here is the frequency of all WRN and ERR messages (that are not obviously unrelated) from the logs I got:
I do still have the log from chantools:
I also managed to find the exact command I used in .bash_history:
chantools dropchannelgraph --channeldb data/graph/mainnet/channel.db --node_identity_key PK(I have double checked that the PK I used is the correct node pubkey of this node, to the letter)
Lnd version is amd64-v0.19.1-beta (been the same since I did the dropchannelgraph)
Beta Was this translation helpful? Give feedback.
All reactions