CounterpartyXCP / counterparty-core

Counterparty Protocol Reference Implementation
http://counterparty.io
MIT License
287 stars 205 forks source link

[ERROR] - Asset conservation check failed: 2592107.11808124 XCP issued ≠ 2593894.67876698 XCP held #2553

Closed JavierCervilla closed 1 week ago

JavierCervilla commented 1 week ago
counterparty-core-1  | Counterparty Core v10.5.0
counterparty-core-1  | Verbosity: 0
counterparty-core-1  | Quiet: False
counterparty-core-1  | Network: mainnet
counterparty-core-1  | Configuration File: /root/.config/counterparty/server.conf
counterparty-core-1  | Counterparty Database: /data/counterparty/counterparty.db
counterparty-core-1  | Counterparty API Database: /data/counterparty/counterparty.api.db
counterparty-core-1  | Rust Fetcher Database: /data/counterparty/fetcherdb
counterparty-core-1  | Server Log: /root/.cache/counterparty/log/server.log
counterparty-core-1  | API Access Log: /root/.cache/counterparty/log/server.access.log
counterparty-core-1  |
counterparty-core-1  | ------------------------------ START ------------------------------
counterparty-core-1  |
counterparty-core-1  | THE OPTION `--force` IS NOT FOR USE ON PRODUCTION SYSTEMS.
counterparty-core-1  | 2024-10-22T23:32:59.001+00:00 - [    INFO] - Connecting to database... (SQLite 3.45.1.0)
counterparty-core-1  | 2024-10-22T23:32:59.007+00:00 - [    INFO] - Initializing database...
counterparty-core-1  | 2024-10-22T23:32:59.012+00:00 - [    INFO] - Running PRAGMA optimize...
counterparty-core-1  | 2024-10-22T23:32:59.584+00:00 - [    INFO] - Starting API Watcher...
counterparty-core-1  | 2024-10-22T23:32:59.585+00:00 - [    INFO] - Starting API Server...
counterparty-core-1  | 2024-10-22T23:32:59.719+00:00 - [    INFO] - Starting API Server v1...
counterparty-core-1  | 2024-10-22T23:32:59.719+00:00 - [    INFO] - Catching up...
counterparty-core-1  | 2024-10-22T23:32:59.796+00:00 - [    INFO] - RS Fetcher - Indexer initializing...
counterparty-core-1  | 2024-10-22T23:32:59.797+00:00 - [    INFO] - RS Fetcher - Connecting to database: /data/counterparty/fetcherdb
counterparty-core-1  | 2024-10-22T23:33:00.124+00:00 - [    INFO] - RS Fetcher - Connected
counterparty-core-1  | 2024-10-22T23:33:00.124+00:00 - [    INFO] - RS Fetcher - Initialized
counterparty-core-1  | 2024-10-22T23:33:00.125+00:00 - [    INFO] - RS Fetcher - First database op: GetMaxBlockHeight...
counterparty-core-1  | 2024-10-22T23:33:00.125+00:00 - [    INFO] - RS Fetcher - First database op: GetMaxBlockHeight took 47.905µs
counterparty-core-1  | 2024-10-22T23:33:00.125+00:00 - [    INFO] - RS Fetcher - First Bitcoin client op: GetBlockchainHeight...
counterparty-core-1  | 2024-10-22T23:33:00.127+00:00 - [    INFO] - RS Fetcher - First Bitcoin client op: GetBlockchainHeight took 1.615823ms
counterparty-core-1  | 2024-10-22T23:33:00.127+00:00 - [    INFO] - RS Fetcher - Starting at block height: 866914
counterparty-core-1  | 2024-10-22T23:33:00.127+00:00 - [    INFO] - RS Fetcher - Targeting block height: 866914
counterparty-core-1  | 2024-10-22T23:33:00.128+00:00 - [    INFO] - RS Fetcher - Fetcher started
counterparty-core-1  | 2024-10-22T23:33:00.129+00:00 - [    INFO] - RS Fetcher - Entering reorg window
counterparty-core-1  | 2024-10-22T23:33:00.432+00:00 - [    INFO] - Block 866914
counterparty-core-1  | 2024-10-22T23:33:15.250+00:00 - [   ERROR] - Asset conservation check failed: 2592107.11808124 XCP issued ≠ 2593894.67876698 XCP held
counterparty-core-1  | 2024-10-22T23:33:15.258+00:00 - [ WARNING] - Keyboard interrupt!
counterparty-core-1  | 2024-10-22T23:33:15.273+00:00 - [    INFO] - Stopping API Server...
counterparty-core-1  | 2024-10-22T23:33:15.678+00:00 - [    INFO] - Stopping API Watcher...
counterparty-core-1  | 2024-10-22T23:33:17.276+00:00 - [   ERROR] - API Server did not stop in time. Terminating...
counterparty-core-1  | 2024-10-22T23:33:17.277+00:00 - [    INFO] - Stopping API Status Poller...
counterparty-core-1  | 2024-10-22T23:33:17.742+00:00 - [    INFO] - Stopping API Server v1...
counterparty-core-1  | 2024-10-22T23:33:18.376+00:00 - [    INFO] - Closing database connections...
counterparty-core-1  | 2024-10-22T23:33:18.388+00:00 - [    INFO] - Stopping AddrIndexRs thread...
counterparty-core-1  | 2024-10-22T23:33:18.389+00:00 - [    INFO] - Shutting down logging...
counterparty-core-1  | 2024-10-22T23:33:18.390+00:00 - [    INFO] - Stopping prefetcher...
counterparty-core-1  | ERROR:root:SQLITE_LOG: recovered 1 frames from WAL file /data/counterparty/counterparty.api.db-wal (283) SQLITE_NOTICE_RECOVER_WAL
counterparty-core-1  | 2024-10-22T23:33:20.143+00:00 - [    INFO] - Shutdown complete.

throws this exception and restarts all the time

JavierCervilla commented 1 week ago

doing a reparse to check if it solves it bc as i was already in rc.1 didnt triggered it automatic, let you know my results

adamkrellenstein commented 1 week ago

Okay, please upload all of your server logs. (normally in .cache/counterparty/log). If possible, it'd be great if you could share a link to your counterparty.db as well)

ouziel-slama commented 1 week ago

What version was installed before you updated to v10.5.0 please ?

JavierCervilla commented 1 week ago

10.5.0-rc.1 and didnt triggered the reparse after manually doing it, worked good, sorry for delay

JavierCervilla commented 1 week ago

Okay, please upload all of your server logs. (normally in .cache/counterparty/log). If possible, it'd be great if you could share a link to your counterparty.db as well)

i think i cant, as i deleted it

adamkrellenstein commented 1 week ago

okay, it's unclear what happened here. the good thing is that the sanity check caught it, and no one else has run into it (afaik). going to close as unable to reproduce :/