Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.82k stars 2.03k forks source link

[BUG]1006 (connection closed abnormally [internal]), no reason #8908

Closed electroboyz closed 2 years ago

electroboyz commented 2 years ago
2021-10-22T22:07:37.643 daemon __main__                   : ERROR    Unexpected exception trying to send to websocket: code = 1006 (connection closed abnormally [internal]), no reason Traceback (most recent call last):
  File "asyncio\windows_events.py", line 457, in finish_recv
OSError: [WinError 64] The specified network name is no longer available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "websockets\protocol.py", line 827, in transfer_data
  File "websockets\protocol.py", line 895, in read_message
  File "websockets\protocol.py", line 971, in read_data_frame
  File "websockets\protocol.py", line 1047, in read_frame
  File "websockets\framing.py", line 105, in read
  File "asyncio\streams.py", line 723, in readexactly
  File "asyncio\streams.py", line 517, in _wait_for_data
  File "asyncio\proactor_events.py", line 280, in _loop_reading
  File "asyncio\windows_events.py", line 812, in _poll
  File "asyncio\windows_events.py", line 461, in finish_recv
ConnectionResetError: [WinError 64] The specified network name is no longer available

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "Lib\site-packages\chia\daemon\server.py", line 208, in safe_handle
  File "websockets\protocol.py", line 555, in send
  File "websockets\protocol.py", line 803, in ensure_open
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason

This error prevails even though I uninstall reinstall Chia 1.2.9 any way to fix this?

athena9 commented 2 years ago

This is basically the same error I'm seeing, but mine was logged as INFO

https://github.com/Chia-Network/chia-blockchain/issues/8905

moonlitbugs commented 2 years ago

This looks to be a duplicate of #2810 (and a bunch of other duplicates as well, all closed). Chiming in a "me too" here, except that Chia is running on Linux and not Windows.

In my case, Chia is running inside a small LXC (Linux container). Restarting the container "fixed" the issue, at least temporarily. There is nothing helpful in the Chia debug.log file beyond the endless backtraces.

I do note that chia_full_node is consuming a lot of memory, more than 1.1g resident and 1.5g virtual. On a small VM, that's dangerously close to putting it into swap space, and/or triggering the "OOM Killer" (Linux's low-memory panic mechanism).

waylonwang commented 2 years ago

The official docker container (chia version is 1.2.11) has the same error. This error will cause port 8555 to fail. I cannot view the current full node status through the chia show -sc command. If you delete the database in the mainnet/db directory, restart After the system re-synchronized the full node, there would be no such problem, but after I tried to restart the full node service when I synchronized to a height of 80,000+, the problem occurred again.

linming66 commented 2 years ago

Is there anyone to solve this problem? This problem is bothering us!

github-actions[bot] commented 2 years ago

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] commented 2 years ago

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.