[Bug] Websocket exception "1006" between Daemon and Wallet - RPi4B
See original GitHub issueWhat happened?
The software (CLI) is extremely unstable running on my Raspberry Pi 4 model B - 4GB
Version
1.2.11
What platform are you using?
Linux
What ui mode are you using?
CLI
Relevant log output
2021-11-14T12:06:07.534 daemon chia.daemon.server : INFO Websocket exception. Closing websocket with chia_wallet code = 1006 (connection closed abnormally [internal]), no reason Traceback (most recent call last):
File "/home/ubuntu/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 827, in transfer_data
message = await self.read_message()
File "/home/ubuntu/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 895, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/home/ubuntu/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 971, in read_data_frame
frame = await self.read_frame(max_size)
File "/home/ubuntu/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 1047, in read_frame
frame = await Frame.read(
File "/home/ubuntu/chia-blockchain/venv/lib/python3.9/site-packages/websockets/framing.py", line 105, in read
data = await reader(2)
File "/usr/lib/python3.9/asyncio/streams.py", line 721, in readexactly
raise exceptions.IncompleteReadError(incomplete, n)
asyncio.exceptions.IncompleteReadError: 0 bytes read on a total of 2 expected bytes
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/chia-blockchain/chia/daemon/server.py", line 195, in safe_handle
async for message in websocket:
File "/home/ubuntu/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 439, in __aiter__
yield await self.recv()
File "/home/ubuntu/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 509, in recv
await self.ensure_open()
File "/home/ubuntu/chia-blockchain/venv/lib/python3.9/site-packages/websockets/protocol.py", line 803, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (2 by maintainers)
Top Results From Across the Web
Getting the reason why websockets closed with close code 1006
Close Code 1006 is a special code that means the connection was closed abnormally (locally) by the browser implementation.
Read more >Unexpected exception trying to send to websocket: code = 1006
Hello everyone, today after updating the Chia GUI to 1.1.7 version (Windows 10 Pro x64) I faced a lot (hundreds) of this kind...
Read more >I get this error code and it stop farming but everything ... - Reddit
2021-09-05T00:20:07.368 daemon main : INFO Websocket exception. Closing websocket with chia_harvester code = 1006 (connection closed abnormally…
Read more >chia-blockchain - githubmemory
[Bug] Websocket exception "1006" between Daemon and Wallet - RPi4B ... Make software development more efficient, Also welcome to join our telegram.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I recommend to check for out of memory killer message (OOM)
sudo journalctl | grep -i oom
It may be that you are running out of memory and the OS is killing off node - this appears to be what is happening from the log entries.We currently recommend you add in 1Gb of swap space, but you may need to run as much as 2Gb swap
I’m going to close this issue. Note we do hope to reduce the memory footprint to better work within a 4GB system, but for now adding the swap space is the best approach to keep running.