Skip to content

intermittent issue in wallet_reorgsrestore.py in test_reorg_handling_during_unclean_shutdown: FailedToStartError: [node 0] bitcoind exited with status 1 during initialization. Error: Cannot obtain a lock on directory #32066

@maflcko

Description

@maflcko

https://cirrus-ci.com/task/4809537674280960?logs=ci#L2287:

[04:43:25.506]  test  2025-03-14T08:43:24.312000Z TestFramework.utils (DEBUG): Deleting leftover cookie file 
[04:43:25.506]  test  2025-03-14T08:43:24.315000Z TestFramework.node0 (DEBUG): bitcoind started, waiting for RPC to come up 
[04:43:25.506]  test  2025-03-14T08:43:24.576000Z TestFramework (ERROR): Unexpected exception caught during testing 
[04:43:25.506]                                    Traceback (most recent call last):
[04:43:25.506]                                      File "/ci_container_base/test/functional/test_framework/test_framework.py", line 135, in main
[04:43:25.506]                                        self.run_test()
[04:43:25.506]                                      File "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/test/functional/wallet_reorgsrestore.py", line 216, in run_test
[04:43:25.506]                                        self.test_reorg_handling_during_unclean_shutdown()
[04:43:25.506]                                      File "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/test/functional/wallet_reorgsrestore.py", line 121, in test_reorg_handling_during_unclean_shutdown
[04:43:25.506]                                        self.start_node(0)
[04:43:25.506]                                      File "/ci_container_base/test/functional/test_framework/test_framework.py", line 567, in start_node
[04:43:25.506]                                        node.wait_for_rpc_connection()
[04:43:25.506]                                      File "/ci_container_base/test/functional/test_framework/test_node.py", line 275, in wait_for_rpc_connection
[04:43:25.506]                                        raise FailedToStartError(self._node_msg(
[04:43:25.506]                                    test_framework.test_node.FailedToStartError: [node 0] bitcoind exited with status 1 during initialization. Error: Cannot obtain a lock on directory /ci_container_base/ci/scratch/test_runner/test_runner_₿_🏃_20250314_083240/wallet_reorgsrestore_195/node0/regtest. Bitcoin Core is probably already running.
[04:43:25.506]                                    ************************
[04:43:25.506]  test  2025-03-14T08:43:24.579000Z TestFramework (DEBUG): Closing down network thread 
[04:43:25.506]  test  2025-03-14T08:43:24.663000Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later. 
[04:43:25.506]  test  2025-03-14T08:43:24.663000Z TestFramework (WARNING): Not cleaning up dir /ci_container_base/ci/scratch/test_runner/test_runner_₿_🏃_20250314_083240/wallet_reorgsrestore_195 
[04:43:25.506]  test  2025-03-14T08:43:24.663000Z TestFramework (ERROR): Test failed. Test logging available at /ci_container_base/ci/scratch/test_runner/test_runner_₿_🏃_20250314_083240/wallet_reorgsrestore_195/test_framework.log 
[04:43:25.506]  test  2025-03-14T08:43:24.663000Z TestFramework (ERROR): 
[04:43:25.506]  test  2025-03-14T08:43:24.664000Z TestFramework (ERROR): Hint: Call /ci_container_base/test/functional/combine_logs.py '/ci_container_base/ci/scratch/test_runner/test_runner_₿_🏃_20250314_083240/wallet_reorgsrestore_195' to consolidate all logs 
[04:43:25.506]  test  2025-03-14T08:43:24.664000Z TestFramework (ERROR): 
[04:43:25.506]  test  2025-03-14T08:43:24.664000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log. 
[04:43:25.506]  test  2025-03-14T08:43:24.664000Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues 
[04:43:25.506]  test  2025-03-14T08:43:24.664000Z TestFramework (ERROR): 
[04:43:25.506] 
[04:43:25.506]  node0 stderr Error: Cannot obtain a lock on directory /ci_container_base/ci/scratch/test_runner/test_runner_₿_🏃_20250314_083240/wallet_reorgsrestore_195/node0/regtest. Bitcoin Core is probably already running. 
[04:43:25.518] 

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