Skip to content

[bug]: utreexod exits with status=1/FAILURE when indexing cfilters #2530

Description

@luisschwab

Sending a SIGINT when indexing cfilters causes the process to exit with status=1/FAILURE, even though it did a graceful shutdown.

version: utreexod 0.5.0 (since utreexod is a fork, this issue stems from here)

May 13 23:20:51 utreexod utreexod[150851]: 2026-05-13 23:20:51.628 [INF] INDX: Indexed 1510 blocks in the last 10.01s (2215272 transactions, height 479905, 2017-08-10 02:47:38 -0300 -03)
May 13 23:21:01 utreexod utreexod[150851]: 2026-05-13 23:21:01.629 [INF] INDX: Indexed 1127 blocks in the last 10s (2219906 transactions, height 481032, 2017-08-17 23:03:20 -0300 -03)
May 13 23:21:11 utreexod utreexod[150851]: 2026-05-13 23:21:11.632 [INF] INDX: Indexed 1139 blocks in the last 10s (2232790 transactions, height 482171, 2017-08-27 04:38:43 -0300 -03)
May 13 23:21:21 utreexod utreexod[150851]: 2026-05-13 23:21:21.636 [INF] INDX: Indexed 1361 blocks in the last 10s (2181772 transactions, height 483532, 2017-09-04 17:23:27 -0300 -03)
May 13 23:21:28 utreexod systemd[1]: Stopping utreexod-bitcoin.service - Utreexod (Bitcoin)...
May 13 23:21:28 utreexod utreexod[150851]: 2026-05-13 23:21:28.437 [INF] BTCD: Received signal (terminated).  Shutting down...
May 13 23:21:28 utreexod utreexod[150851]: 2026-05-13 23:21:28.664 [INF] INDX: Flushing the utreexo state to disk...
May 13 23:21:28 utreexod utreexod[150851]: 2026-05-13 23:21:28.855 [ERR] BTCD: Unable to start server on [:8433]: interrupt requested
May 13 23:21:28 utreexod utreexod[150851]: 2026-05-13 23:21:28.855 [INF] BTCD: Gracefully shutting down the database...
May 13 23:21:28 utreexod utreexod[150851]: 2026-05-13 23:21:28.869 [INF] BTCD: Shutdown complete
May 13 23:21:29 utreexod systemd[1]: utreexod-bitcoin.service: Main process exited, code=exited, status=1/FAILURE
May 13 23:21:29 utreexod systemd[1]: utreexod-bitcoin.service: Failed with result 'exit-code'.
May 13 23:21:29 utreexod systemd[1]: Stopped utreexod-bitcoin.service - Utreexod (Bitcoin).
May 13 23:21:29 utreexod systemd[1]: utreexod-bitcoin.service: Consumed 50min 39.035s CPU time, 30.1G memory peak, 0B memory swap peak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions