juno: Closing websocket connection due to internal error.
I deployed the juno node v0.7.1 and v0.7.2 in the docker container. I saw errors in the log after enabling the web socket.
19:50:54.481 31/10/2023 +03:00 INFO sync/sync.go:201 Stored Block {"number": 366168, "hash": "0x49d7...85d7", "root": "0x27ad...51e4"}
19:51:09.883 31/10/2023 +03:00 WARN jsonrpc/websocket.go:81 Closing websocket connection due to internal error {"err": "failed to get reader: failed to read frame header: EOF"}
19:51:09.883 31/10/2023 +03:00 ERROR jsonrpc/websocket.go:91 Failed to close websocket connection {"err": "failed to close WebSocket: failed to write control frame opClose: WebSocket closed: failed to read frame header: EOF"}
github.com/NethermindEth/juno/jsonrpc.(*Websocket).ServeHTTP
/app/jsonrpc/websocket.go:91
github.com/NethermindEth/juno/node.makeRPCOverWebsocket.exactPathServer.func1
/app/node/http.go:71
net/http.HandlerFunc.ServeHTTP
/usr/lib/go-1.21/src/net/http/server.go:2136
net/http.(*ServeMux).ServeHTTP
/usr/lib/go-1.21/src/net/http/server.go:2514
github.com/NethermindEth/juno/node.makeRPCOverWebsocket.(*Cors).Handler.func3
/root/go/pkg/mod/github.com/rs/cors@v1.10.1/cors.go:281
net/http.HandlerFunc.ServeHTTP
/usr/lib/go-1.21/src/net/http/server.go:2136
net/http.serverHandler.ServeHTTP
/usr/lib/go-1.21/src/net/http/server.go:2938
net/http.(*conn).serve
/usr/lib/go-1.21/src/net/http/server.go:2009
My docker-compose.yaml
---
version: '3.9'
services:
juno:
image: nethermind/juno:v0.7.2
command:
- '--http'
- '--http-host=0.0.0.0'
- '--http-port=6060'
- '--db-path=/var/lib/juno'
- '--eth-node=ws://eth-node-ip:8548'
- '--metrics'
- '--metrics-host=0.0.0.0'
- '--metrics-port=9090'
- '--ws'
- '--ws-host=0.0.0.0'
- '--ws-port=6061'
ports:
- '6060:6060'
- '9090:9090'
- '6061:6061'
volumes:
- ./data:/var/lib/juno
restart: unless-stopped
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 1
- Comments: 18 (9 by maintainers)
@joshklop, thanks a lot. I like your product. I will continue to look forward to the development of the product in the future.
“Thanks for the information. I’m not very familiar with Lava, but based on the docs it seems Lava proxies user requests to my local Juno node. Is that correct?” YES
Try my docker-compose.yaml
In ./lava/config you need to add:
I deployed the lava rpc provider (https://www.lavanet.xyz/) and enabled websocket parameter. I also observed the problem with disconnecting the connection with http.
