Skip to content

StateDigestMismatch in election test #7408

@achamayou

Description

@achamayou

https://github.com/microsoft/CCF/actions/runs/18779614419/job/53582774718?pr=7407

2025-10-24 13:02:23.361 | INFO     | {cft} infra.clients:post:1224 - [1|cose=member0] POST /gov/members/state-digests/9d56092c9d290589f7e041d077b63c59a984b62ce67f2b2c447714fc0b42fb41:ack?api-version=2024-07-01 {'memberId': '9d56092c9d290589f7e041d077b63c59a984b62ce67f2b2c447714fc0b42fb41', 'stateDigest': '2fc163c92a128c30c6d804af310e700405de214655e186fc699a132baab8a712'}
2025-10-24 13:02:23.361 | INFO     | {cft} infra.clients:post:1224 - 400 {"error":{"code":"StateDigestMismatch","message":"Submitted state digest is not valid.\nExpected\n \nReceived\n 2fc163c92a128c30c6d804af310e700405de214655e186fc699a132baab8a712"}}
2025-10-24 13:02:23.362 | INFO     | {cft} infra.network:log_stack_traces:555 - Logging stack traces for all nodes
2025-10-24 13:02:24.474 | ERROR    | {cft} infra.remote:log_stack_trace:222 - Stack trace of process 12480 written to /__w/CCF/CCF/build/workspace/cft_election_test_0/stack_trace
2025-10-24 13:02:25.605 | ERROR    | {cft} infra.remote:log_stack_trace:222 - Stack trace of process 12498 written to /__w/CCF/CCF/build/workspace/cft_election_test_1/stack_trace
2025-10-24 13:02:26.707 | ERROR    | {cft} infra.remote:log_stack_trace:222 - Stack trace of process 12523 written to /__w/CCF/CCF/build/workspace/cft_election_test_2/stack_trace
2025-10-24 13:02:26.707 | INFO     | {cft} infra.network:network:1834 - Stopping network
2025-10-24 13:02:26.707 | INFO     | {cft} infra.node:stop:482 - Stopping node 0
2025-10-24 13:02:26.707 | INFO     | {cft} infra.remote:stop:236 - [127.145.92.131] closing
2025-10-24 13:02:26.821 | INFO     | {cft} infra.node:stop:482 - Stopping node 1
2025-10-24 13:02:26.821 | INFO     | {cft} infra.remote:stop:236 - [127.16.48.184] closing
2025-10-24 13:02:26.935 | INFO     | {cft} infra.node:stop:482 - Stopping node 2
2025-10-24 13:02:26.936 | INFO     | {cft} infra.remote:stop:236 - [127.10.192.13] closing
2025-10-24 13:02:27.050 | INFO     | {cft} infra.network:stop_all_nodes:941 - All nodes stopped
2025-10-24 13:02:27.133 | ERROR    | {cft} infra.runner:log_exception:194 - Failure in cft: AssertionError(Response(status_code=400, body=b'{"error":{"code":"StateDigestMismatch","message":"Submitted state digest is not valid.\\nExpected\\n \\nReceived\\n 2fc163c92a128c30c6d804af310e700405de214655e186fc699a132baab8a712"}}', seqno=None, view=None, headers=Headers({'content-length': '179', 'content-type': 'application/json'})))
Traceback (most recent call last):

  File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
    └ <Thread(cft, started 125864790939328)>
  File "/usr/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
    │             │             └ <Thread(cft, started 125864790939328)>
    │             └ <Thread(cft, started 125864790939328)>
    └ <Thread(cft, started 125864790939328)>
  File "/__w/CCF/CCF/tests/election.py", line 190, in run
    network.start_and_open(args)
    │                      └ Namespace(binary_dir='/__w/CCF/CCF/build', library_dir='/__w/CCF/CCF/build', debug_nodes=[], log_level='info', log_format_json=F...
    └ <infra.network.Network object at 0x72792e33f7a0>
  File "/__w/CCF/CCF/tests/infra/network.py", line 674, in start_and_open
    self.open(args)
    │         └ Namespace(binary_dir='/__w/CCF/CCF/build', library_dir='/__w/CCF/CCF/build', debug_nodes=[], log_level='info', log_format_json=F...
    └ <infra.network.Network object at 0x72792e33f7a0>
  File "/__w/CCF/CCF/tests/infra/network.py", line 638, in open
    self.consortium.activate(get_target_node(args, primary))
    │                        │               │     └ <infra.node.Node object at 0x72792f4a0d70>
    │                        │               └ Namespace(binary_dir='/__w/CCF/CCF/build', library_dir='/__w/CCF/CCF/build', debug_nodes=[], log_level='info', log_format_json=F...
    │                        └ <function Network.open.<locals>.get_target_node at 0x72792d99f920>
    └ <infra.network.Network object at 0x72792e33f7a0>
  File "/__w/CCF/CCF/tests/infra/consortium.py", line 154, in activate
    m.ack(remote_node)
    │     └ <infra.node.Node object at 0x72792efae9c0>
    └ <infra.member.Member object at 0x72792ea38740>
  File "/__w/CCF/CCF/tests/infra/member.py", line 346, in ack
    return self.gov_api_impl_inst.ack(
  File "/__w/CCF/CCF/tests/infra/member.py", line 127, in ack
    assert r.status_code == http.HTTPStatus.NO_CONTENT, r
           │                │                           └ Response(status_code=400, body=b'{"error":{"code":"StateDigestMismatch","message":"Submitted state digest is not valid.\\nExpect...
           │                └ <module 'http' from '/usr/lib/python3.12/http/__init__.py'>
           └ Response(status_code=400, body=b'{"error":{"code":"StateDigestMismatch","message":"Submitted state digest is not valid.\\nExpect...

AssertionError: <red>400</> <yellow>{"error":{"code":"StateDigestMismatch","message":"Submitted state digest is not valid.\nExpected\n \nReceived\n 2fc163c92a128c30c6d804af310e700405de214655e186fc699a132baab8a712"}}</>

Traceback (most recent call last):
  File "/__w/CCF/CCF/tests/election.py", line 257, in <module>
    cr.run(1)
    └ <infra.runner.ConcurrentRunner object at 0x72792e33cfe0>
  File "/__w/CCF/CCF/tests/infra/runner.py", line 283, in run
    raise RuntimeError(FAILURES)
                       └ ['Failure in cft: AssertionError(Response(status_code=400, body=b\'{"error":{"code":"StateDigestMismatch","message":"Submitted s...
RuntimeError: ['Failure in cft: AssertionError(Response(status_code=400, body=b\'{"error":{"code":"StateDigestMismatch","message":"Submitted state digest is not valid.\\\\nExpected\\\\n \\\\nReceived\\\\n 2fc163c92a128c30c6d804af310e700405de214655e186fc699a132baab8a712"}}\', seqno=None, view=None, headers=Headers({\'content-length\': \'179\', \'content-type\': \'application/json\'})))']

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions