Repository navigation
Closed
Labels
Description
Seen this multiple times this on master:
https://cirrus-ci.com/task/5568647696482304?logs=ci#L4671
https://cirrus-ci.com/task/5005697743060992?logs=ci#L4821
https://cirrus-ci.com/task/4507850702585856?logs=ci#L4968
node0 2021-12-01T19:22:13.787335Z [scheduler] [random.cpp:523] [SeedPeriodic] Feeding 31922 bytes of dynamic environment data into RNG
node0 2021-12-01T19:23:13.801695Z [scheduler] [random.cpp:523] [SeedPeriodic] Feeding 31928 bytes of dynamic environment data into RNG
test 2021-12-01T19:24:12.774000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_node.py", line 512, in assert_start_raises_init_error
ret = self.process.wait(timeout=self.rpc_timeout)
File "/usr/lib/python3.8/subprocess.py", line 1083, in wait
return self._wait(timeout=timeout)
File "/usr/lib/python3.8/subprocess.py", line 1798, in _wait
raise TimeoutExpired(self.args, timeout)
subprocess.TimeoutExpired: Command '['bitcoin-node', '-datadir=/tmp/cirrus-ci-build/ci/scratch/test_runner/test_runner_₿_🏃_20211201_182901/feature_init_38/node0', '-logtimemicros', '-debug', '-debugexclude=libevent', '-debugexclude=leveldb', '-uacomment=testnode0', '-logthreadnames', '-logsourcelocations']' timed out after 2400 seconds
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 132, in main
self.run_test()
File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/feature_init.py", line 168, in run_test
node.assert_start_raises_init_error(
File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_node.py", line 542, in assert_start_raises_init_error
self._raise_assertion_error(assert_msg)
File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_node.py", line 167, in _raise_assertion_error
raise AssertionError(self._node_msg(msg))
AssertionError: [node 0] bitcoind should have exited within 2400s with expected error Error opening block database.
Activity
jamesob commentedon Dec 2, 2021
I'll try to reproduce locally in the next few hours.
For background, the bit of the test that is failing removes various chainstate/blockindex .ldb files and then ensures that startup fails.
I can't offhand think of why this would timeout sporadically other than if the mechanism for polling the logfile somehow misses updates occasionally. But that it's only happening on this particular part of the test is curious.
fanquake commentedon Dec 7, 2021
Seen again in #23686: https://cirrus-ci.com/task/6221467223326720?logs=ci#L3975:
jamesob commentedon Dec 7, 2021
After a bunch of rerunning, was able to reproduce a separate failure locally, but not the one related to removing ldb files:
Note that the line that the test thinks it missed is clearly in the logs.
maflcko commentedon Dec 10, 2021
I am running into another issue in the test, but it can't be debugged because the debug log was deleted:
maflcko commentedon Dec 10, 2021
I think as a first step we should stop deleting the logs: #23289 (comment)
darosior commentedon Dec 10, 2021
Here is a datadir of a
feature_initfailure, if that can help (don't have time to debug it at the moment).feature_init_failure_testdir.tar.gz
Merge bitcoin#23737: test: make feature_init more robust