chia-blockchain icon indicating copy to clipboard operation
chia-blockchain copied to clipboard

[Bug] Node fails to start on Windows 10 with 64 cores (with workaround)

Open fizpawiz opened this issue 10 months ago • 4 comments

What happened?

I have a Threadripper 3970x with 64 cores. On 2.2.1, I was farming fine. On 2.3.0 the farmer will no longer start.

Per discussion on Keybase, I tried setting full_node/reserved_cores to 10 (from default of zero) in the config.yaml, and it resolved the issue.

Version

2.3.0

What platform are you using?

Windows

What ui mode are you using?

GUI

Relevant log output

2024-05-02T14:27:29.822 full_node chia.server.start_service: ERROR    fatal uncaught exception: ValueError: max_workers must be <= 61
Traceback (most recent call last):
  File "chia\util\log_exceptions.py", line 20, in log_exceptions
  File "chia\server\start_service.py", line 323, in async_run
  File "asyncio\runners.py", line 44, in run
  File "asyncio\base_events.py", line 649, in run_until_complete
  File "chia\server\start_full_node.py", line 85, in async_main
  File "chia\server\start_service.py", line 197, in run
  File "contextlib.py", line 199, in __aenter__
  File "chia\server\start_service.py", line 214, in manage
  File "contextlib.py", line 619, in enter_async_context
  File "contextlib.py", line 199, in __aenter__
  File "chia\full_node\full_node.py", line 266, in manage
  File "chia\consensus\blockchain.py", line 146, in create
  File "concurrent\futures\process.py", line 614, in __init__
ValueError: max_workers must be <= 61

fizpawiz avatar May 03 '24 14:05 fizpawiz

Fix being added back in https://github.com/Chia-Network/chia-blockchain/pull/17958. Was incorrectly removed in https://github.com/Chia-Network/chia-blockchain/pull/17409 first released in 2.3.0rc1. This is specific to Windows and CPUs with more than 61 cores.

altendky avatar May 03 '24 14:05 altendky

I have the same problem, I'll have to roll back to 2.2.1

SoftStoneDevelop avatar May 05 '24 02:05 SoftStoneDevelop

While this does need to be fixed, do note the small configuration adjustment that can work around this.

setting full_node/reserved_cores to 10

altendky avatar May 05 '24 19:05 altendky

This issue has not been updated in 14 days and is now flagged as stale. If this issue is still affecting you and in need of further review, please comment on it with an update to keep it from auto closing in 7 days.

github-actions[bot] avatar May 20 '24 11:05 github-actions[bot]

This issue was automatically closed because it has been flagged as stale, and subsequently passed 7 days with no further activity from the submitter or watchers.

github-actions[bot] avatar May 28 '24 11:05 github-actions[bot]