Skip to content

Nethermind for Gnosis throwing WebSockets errors #10069

@Aracki

Description

@Aracki

Description
Nethermind nodes throwing WebSockets error WebSocket not open (Aborted) System.IO.IOException which is causing clients to disconnect.

Additional context
We are running: nethermind:1.35.8

We had these errors when the nodes are syncing fine without any resources spikes. RPS was stable ~1600. Node configuration:

            "--config=/config/gnosis_archive.json",
            "--baseDbPath=/root/.nethermind",
            "--HealthChecks.Enabled=true",
            "--HealthChecks.UIEnabled=true",
            "--Pruning.Enabled=false",
            "--JsonRpc.Enabled=true",
            "--JsonRpc.Host=0.0.0.0",
            "--JsonRpc.Port=8545",
            "--JsonRpc.WebSocketsPort=8546",
            "--JsonRpc.EngineHost=0.0.0.0",
            "--JsonRpc.EnginePort=8551",
            "--JsonRpc.EnabledModules=Eth,Subscribe,Trace,Debug,TxPool,Web3,Personal,Proof,Net,Parity,Health,Rpc",
            "--JsonRpc.EngineEnabledModules=Eth,Subscribe,Trace,TxPool,Web3,Personal,Proof,Net,Parity,Health",
            "--JsonRpc.JwtSecretFile=/root/.nethermind/jwt.secret",
            "--Metrics.Enabled=true",
            "--Metrics.ExposePort=5055",
            "--Metrics.IntervalSeconds=5",
            "--Network.DiscoveryPort=30303",
            "--Pruning.CacheMb=6144",
            "--Merge.Enabled=true",

Full Logs

2025-12-25 21:20:30.3137|ERROR|WebSockets error WebSocket not open (Aborted) System.IO.IOException: WebSocket not open (Aborted)
   at Nethermind.Sockets.WebSocketMessageStream.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) in /nethermind/src/Nethermind/Nethermind.Sockets/WebSocketMessageStream.cs:line 68
   at Nethermind.Sockets.WebSocketMessageStream.WriteAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) in /nethermind/src/Nethermind/Nethermind.Sockets/WebSocketMessageStream.cs:line 62
   at System.IO.Stream.Write(ReadOnlySpan`1 buffer)
   at Nethermind.Serialization.Json.CountingStreamPipeWriter.FlushInternal(Boolean writeToStream) in /nethermind/src/Nethermind/Nethermind.Serialization.Json/StreamPipeWriter.cs:line 428
   at Nethermind.Serialization.Json.CountingStreamPipeWriter.Advance(Int32 bytes) in /nethermind/src/Nethermind/Nethermind.Serialization.Json/StreamPipeWriter.cs:line 129
   at System.Text.Json.Utf8JsonWriter.Grow(Int32 requiredSize)
   at System.Text.Json.Utf8JsonWriter.WriteRawValueCore(ReadOnlySpan`1 utf8Json, Boolean skipInputValidation)
   at Nethermind.Serialization.Json.ByteArrayConverter.Convert(Utf8JsonWriter writer, ReadOnlySpan`1 bytes, WriteHex writeAction, Boolean skipLeadingZeros, Boolean addQuotations, Boolean addHexPrefix) in /nethermind/src/Nethermind/Nethermind.Core/JsonConverters/ByteArrayConverter.cs:line 208
   at Nethermind.Serialization.Json.ByteArrayConverter.Write(Utf8JsonWriter writer, Byte[] bytes, JsonSerializerOptions options) in /nethermind/src/Nethermind/Nethermind.Core/JsonConverters/ByteArrayConverter.cs:line 183
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWriteAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, … [message truncated due to size]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions