ord icon indicating copy to clipboard operation
ord copied to clipboard

Ord instance frozen after restart

Open victorkirov opened this issue 1 year ago • 1 comments

I have an instance of Ord running with a bitcoin full node on the side. Everything runs smoothly until there is a power outage or Ord is shutdown for some reason. When I start it up again, I try running ord index and it just hangs. Using RUST_LOG=trace, I get the following logs and then it just hangs:

[2023-06-14T11:01:54Z INFO  ord::options] Connecting to Bitcoin Core at 127.0.0.1:8332/wallet/ord
[2023-06-14T11:01:54Z INFO  ord::options] Using credentials from cookie file at `/root/.bitcoin/.cookie`
[2023-06-14T11:01:54Z DEBUG bitcoincore_rpc] JSON-RPC request: getblockchaininfo []
[2023-06-14T11:01:54Z TRACE bitcoincore_rpc] JSON-RPC response for getblockchaininfo: {"chain":"main","blocks":794301,"headers":794301,"bestblockhash":"00000000000000000000e2f65871279634a11d953bb3e696a9db356eb7e6fc22","difficulty":51234338863442.89,"time":1686739915,"mediantime":1686736332,"verificationprogress":0.9999974173535334,"initialblockdownload":false,"chainwork":"00000000000000000000000000000000000000004ba7629d0f4cf511bf7160ac","size_on_disk":554209415432,"pruned":false,"warnings":""}
[2023-06-14T11:01:54Z DEBUG bitcoincore_rpc] JSON-RPC request: getnetworkinfo []
[2023-06-14T11:01:54Z TRACE bitcoincore_rpc] JSON-RPC response for getnetworkinfo: {"version":250000,"subversion":"/Satoshi:25.0.0/","protocolversion":70016,"localservices":"0000000000000409","localservicesnames":["NETWORK","WITNESS","NETWORK_LIMITED"],"localrelay":true,"timeoffset":0,"networkactive":true,"connections":10,"connections_in":0,"connections_out":10,"networks":[{"name":"ipv4","limited":false,"reachable":true,"proxy":"","proxy_randomize_credentials":false},{"name":"ipv6","limited":false,"reachable":true,"proxy":"","proxy_randomize_credentials":false},{"name":"onion","limited":true,"reachable":false,"proxy":"","proxy_randomize_credentials":false},{"name":"i2p","limited":true,"reachable":false,"proxy":"","proxy_randomize_credentials":false},{"name":"cjdns","limited":true,"reachable":false,"proxy":"","proxy_randomize_credentials":false}],"relayfee":0.00001000,"incrementalfee":0.00001000,"localaddresses":[],"warnings":""}

Any ideas as to what is going on? Is it actually doing something but not logging and I need to wait some more or is the data maybe corrupt and it would never recover? Some more logs as to what's going on would be great.

victorkirov avatar Jun 14 '23 11:06 victorkirov

Ok, it eventually started running again. I guess this issue could be a feature request to add some more logging explaining what's going on if possible 🙏

victorkirov avatar Jun 14 '23 13:06 victorkirov

image i have same issue @victorkirov do you have any idea and how to fix that

thienma1258 avatar Jun 27 '23 03:06 thienma1258

How much time did it take until it resumed - @victorkirov @thienma1258 ?

dannybabbev avatar Jun 29 '23 09:06 dannybabbev

This will be addressed in https://github.com/ordinals/ord/issues/2256

veryordinally avatar Jul 09 '23 14:07 veryordinally