Skip to content

itest: Unable to gen chan range query: unable to fetch highest chan ID: sql: database is closed #10282

@yyforyongyu

Description

@yyforyongyu

From this build, the node cannot be shut down due to error,

--- FAIL: TestLightningNetworkDaemon (2016.10s)
    harness_setup.go:25: Setting up HarnessTest...
    harness_setup.go:38: Prepare the miner and mine blocks to activate segwit...
    harness_setup.go:46: Connecting the miner at 127.0.0.1:10019 with the chain backend...
    --- FAIL: TestLightningNetworkDaemon/tranche03/146-of-314/bitcoind/multihop-local_claim_incoming_htlc_simple_taproot (94.64s)
        harness_node.go:395: Starting node (name=Alice) with PID=47411
        harness_node.go:395: Starting node (name=Bob) with PID=47695
        harness_node.go:395: Starting node (name=Carol) with PID=48226
        harness_node.go:395: Starting node (name=Bob) with PID=49400
        harness.go:561: 
            	Error Trace:	/home/runner/work/lnd/lnd/lntest/harness.go:561
            	            				/home/runner/work/lnd/lnd/itest/lnd_multi-hop_force_close_test.go:1778
            	            				/home/runner/work/lnd/lnd/itest/lnd_multi-hop_force_close_test.go:1608
            	            				/home/runner/work/lnd/lnd/lntest/harness.go:315
            	            				/home/runner/work/lnd/lnd/itest/lnd_test.go:130
            	Error:      	Received unexpected error:
            	            	[Alice]: assert shutdown failed in log[.logs-tranche3/76-multihop-local_claim_incoming_htlc_simple_taproot-Alice-037e09c6.log]: node did not shut down properly: found log lines: 2fc3c8e435a76700dea8436991de1eb12745): state=syncingChans, type=PassiveSync
            	            	2025-09-30 09:31:20.087 [ERR] DISC syncer.go:502: Unable to gen chan range query: unable to fetch highest chan ID: sql: database is closed
            	            	2025-09-30 09:31:20.087 [DBG] DISC syncer.go:538: GossipSyncer(02e7cfc7b1874ee8245278dbf289932fc3c8e435a76700dea8436991de1eb12745): state=syncingChans, type=PassiveSync
            	            	2025-09-30 09:31:20.087 [ERR] DISC syncer.go:502: Unable to gen chan range query: unable to fetch highest chan ID: sql: database is closed
            	            	2025-09-30 09:31:20.087 [DBG] DISC syncer.go:538: GossipSyncer(02e7cfc7b1874ee8245278dbf289932fc3c8e435a76700dea8436991de1eb12745): state=syncingChans, type=PassiveSync
            	            	2025-09-30 09:31:20.087 [ERR] DISC syncer.go:502: Unable to gen chan range query: unable to fetch highest chan ID: sql: database is closed
            	            	2025-09-30 09:31:20.087 [DBG] DISC syncer.go:538: GossipSyncer(02e7cfc7b1874ee8245278dbf289932fc3c8e435a76700dea8436991de1eb12745): state=syncingChans, type=PassiveSync
            	Test:       	TestLightningNetworkDaemon/tranche03/146-of-314/bitcoind/multihop-local_claim_incoming_htlc_simple_taproot
            	Messages:   	failed to stop Alice
        harness.go:393: finished test: multihop-local_claim_incoming_htlc_simple_taproot, start height=764, end height=784, mined blocks=20
        harness.go:352: test failed, skipped cleanup
    lnd_test.go:138: Failure time: 2025-09-30 09:31:20.772
FAIL

Too bad the logs are expired, but we should pay attention to this new error when it appears again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    itestsIssues related to integration tests.test flake

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions