Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read data /Invalid Logstat Fehler bei 3 Sensoren #47

Open
Dscheya opened this issue Mar 27, 2024 · 15 comments
Open

Read data /Invalid Logstat Fehler bei 3 Sensoren #47

Dscheya opened this issue Mar 27, 2024 · 15 comments

Comments

@Dscheya
Copy link

Dscheya commented Mar 27, 2024

Bei mir bleiben immer wieder dieselben Sensoren hängen und werden nicht mehr aktualisiert.

Alle anderen Sensoren werden funktionieren.

Nach einem Neustart des Addons werden die 3 Sensoren wieder für einige Zeit aktualisiert.

Es irritiert mich das nur 3 Sensoren betroffen sind.
Übergangsweise habe ich eine Automation laufen die das Addon alle 24 Stunden neu startet, allerdings tritt der Fehler trotzdem noch manchmal auf.

Addon Version 0.15

at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer) at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166 Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json System.IO.InvalidDataException: invalid login state at ism7mqtt.Ism7Client.OnAuthenticateAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 338 at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/ResponseDispatcher.cs:line 32 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212 Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json System.IO.InvalidDataException: invalid login state at ism7mqtt.Ism7Client.OnAuthenticateAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 338 at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/ResponseDispatcher.cs:line 32 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212 Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. ---> System.Net.Sockets.SocketException (104): Connection reset by peer --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer)
at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
---> System.Net.Sockets.SocketException (104): Connection reset by peer
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer) at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. ---> System.Net.Sockets.SocketException (104): Connection reset by peer --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer)
at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166
at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
at System.IO.Pipelines.Pipe.GetReadAsyncResult()
at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 190
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
---> System.Net.Sockets.SocketException (104): Connection reset by peer
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer) at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166 Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json System.IO.InvalidDataException: invalid login state at ism7mqtt.Ism7Client.OnAuthenticateAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 338 at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/ResponseDispatcher.cs:line 32 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212 Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. ---> System.Net.Sockets.SocketException (104): Connection reset by peer --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer)
at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166
System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
---> System.Net.Sockets.SocketException (104): Connection reset by peer
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer) at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166 at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result) at System.IO.Pipelines.Pipe.GetReadAsyncResult() at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 190 Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. ---> System.Net.Sockets.SocketException (104): Connection reset by peer --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer)
at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
---> System.Net.Sockets.SocketException (104): Connection reset by peer
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory`1 buffer)
at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
System.IO.InvalidDataException: invalid login state
at ism7mqtt.Ism7Client.OnAuthenticateAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 338
at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/ResponseDispatcher.cs:line 32
at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212

@b3nn0
Copy link
Owner

b3nn0 commented Mar 27, 2024

System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
Sagt ganz eindeutig, dass die Netzwerkverbindung abgebrochen ist.
Ich gehe mal davon aus dass das ISM über Wlan verbunden ist? Das ISM scheint mit deinem Wlan offenbar nicht klar zu kommen. Ist nicht unüblich - der controller/Wifi chip scheint nicht sehr robust zu sein.
Falls irgendwie möglich, probier es mal eine weile lang über Kabel.

Auch das hier könnte ggf. relevant sein: https://github.com/b3nn0/hassio-addon-ism7mqtt?tab=readme-ov-file#important-if-some-entities-are-unavailable

@Dscheya
Copy link
Author

Dscheya commented Mar 27, 2024

Das Ism ist per Lankabel angebunden.
Alle anderen Sensoren werden ja auch aktualisiert, nur 3 Stück nicht .
Nachdem Neustart laufen Sie ja auch wieder.
Es kommt ja auch der Fehler invalid login state?

@b3nn0
Copy link
Owner

b3nn0 commented Mar 27, 2024

Dass der login state nach einem Verbindungsabbruch invalid ist klingt für mich plausibel. Nicht sicher warum du so viele Abbrüche bekommst. Bei mir läuft ism7mqtt über Wochen ohne Abbruch durch.
Vielleicht schmiert ja auch nur die Software auf dem ISM ab.. hast du mal versucht die Anzahl der Parameter zu reduzieren? Das hat bei anderen geholfen, die das selbe Fehlerbild haben (Connection reset + invalid login state). Auch dort gingen die meisten parameter, und manche eben nicht.

#44

@Dscheya
Copy link
Author

Dscheya commented Mar 27, 2024

Ich hatte vorher die Wolf Integration in Betrieb und die hatte keine Probleme, auch die Windows Version der Wolf App konnte problemlos alle Sensoren loggen.

Es erscheint mir auch unwahrscheinlich das es an der Anzahl liegt da ja immer nur die 3 Sensoren nach Stunden ausfallen während alle anderen aktuell bleiben.

Wird das Log des Addons irgendwo mit Zeitstempel gespeichert? Die Anzeige in Homeassitant ist ja eher dürftig.

wo bzw. wie kann ich die Parameter reduzieren.

@b3nn0
Copy link
Owner

b3nn0 commented Mar 27, 2024

Wenn du die aktuelle Version v0.0.16 installierst sind da auch timestamps.

wo bzw. wie kann ich die Parameter reduzieren.

Steht im readme.. Ich habe es oben verlinkt.

@Dscheya
Copy link
Author

Dscheya commented Mar 27, 2024

Ah übersehen , Dankeschön

@Dscheya
Copy link
Author

Dscheya commented Mar 27, 2024

Update ist drauf und Zeitstempel wird angezeigt.
Allerdings musste ich einige Sensoren neu benennen, da ich historisch bedingt für einige Sensoren eigene Namen benutze und den Verlauf der Daten erhalten will.
Werden die bei jedem Update überschrieben?

@b3nn0
Copy link
Owner

b3nn0 commented Mar 27, 2024

Nein

@Dscheya
Copy link
Author

Dscheya commented Mar 29, 2024

Wieder ein Fehlerlog diesmal mit Zeitstempel.

Gibt es eine Möglichkeit ein längeres Log zu erhalten?
Das Log aus Homeassistant ist ja nur eine begrenzte Anzahl an Zeilen lang.

Ich habe schon diverse Einträge aus der json entfernt, hat aber scheinbar nicht geholfen.

Mar 29 04:19:58 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 190
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Mar 29 04:20:14 System.IO.InvalidDataException: invalid login state
Mar 29 04:20:14 at ism7mqtt.Ism7Client.OnAuthenticateAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 338
Mar 29 04:20:14 at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/ResponseDispatcher.cs:line 32
Mar 29 04:20:14 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Mar 29 04:24:33 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
Mar 29 04:24:33 ---> System.Net.Sockets.SocketException (104): Connection reset by peer
Mar 29 04:24:33 --- End of inner exception stack trace ---
Mar 29 04:24:33 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
Mar 29 04:24:33 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
Mar 29 04:24:33 at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
Mar 29 04:24:33 at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer) Mar 29 04:24:33 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166 Mar 29 04:24:33 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. Mar 29 04:24:33 ---> System.Net.Sockets.SocketException (104): Connection reset by peer Mar 29 04:24:33 --- End of inner exception stack trace --- Mar 29 04:24:33 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) Mar 29 04:24:33 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) Mar 29 04:24:33 at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter) Mar 29 04:24:33 at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer)
Mar 29 04:24:33 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166
Mar 29 04:24:33 at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
Mar 29 04:24:33 at System.IO.Pipelines.Pipe.GetReadAsyncResult()
Mar 29 04:24:33 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 190
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Mar 29 04:28:02 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
Mar 29 04:28:02 ---> System.Net.Sockets.SocketException (104): Connection reset by peer
Mar 29 04:28:02 --- End of inner exception stack trace ---
Mar 29 04:28:02 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
Mar 29 04:28:02 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
Mar 29 04:28:02 at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
Mar 29 04:28:02 at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer) Mar 29 04:28:02 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166 Mar 29 04:28:02 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. Mar 29 04:28:02 ---> System.Net.Sockets.SocketException (104): Connection reset by peer Mar 29 04:28:02 --- End of inner exception stack trace --- Mar 29 04:28:02 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) Mar 29 04:28:02 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) Mar 29 04:28:02 at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter) Mar 29 04:28:02 at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer)
Mar 29 04:28:02 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166
Mar 29 04:28:02 at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
Mar 29 04:28:02 at System.IO.Pipelines.Pipe.GetReadAsyncResult()
Mar 29 04:28:02 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 190
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Mar 29 04:28:17 System.IO.InvalidDataException: invalid login state
Mar 29 04:28:17 at ism7mqtt.Ism7Client.OnAuthenticateAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 338
Mar 29 04:28:17 at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/ResponseDispatcher.cs:line 32
Mar 29 04:28:17 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Mar 29 04:31:46 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
Mar 29 04:31:46 ---> System.Net.Sockets.SocketException (104): Connection reset by peer
Mar 29 04:31:46 --- End of inner exception stack trace ---
Mar 29 04:31:46 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
Mar 29 04:31:46 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
Mar 29 04:31:46 at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
Mar 29 04:31:46 at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer) Mar 29 04:31:46 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166 Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json Mar 29 04:32:01 System.IO.InvalidDataException: invalid login state Mar 29 04:32:01 at ism7mqtt.Ism7Client.OnAuthenticateAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 338 Mar 29 04:32:01 at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/ResponseDispatcher.cs:line 32 Mar 29 04:32:01 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212 Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json Mar 29 04:36:16 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. Mar 29 04:36:16 ---> System.Net.Sockets.SocketException (104): Connection reset by peer Mar 29 04:36:16 --- End of inner exception stack trace --- Mar 29 04:36:16 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) Mar 29 04:36:16 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) Mar 29 04:36:16 at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter) Mar 29 04:36:16 at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer)
Mar 29 04:36:16 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166
Mar 29 04:36:16 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
Mar 29 04:36:16 ---> System.Net.Sockets.SocketException (104): Connection reset by peer
Mar 29 04:36:16 --- End of inner exception stack trace ---
Mar 29 04:36:16 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
Mar 29 04:36:16 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
Mar 29 04:36:16 at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
Mar 29 04:36:16 at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer) Mar 29 04:36:16 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166 Mar 29 04:36:16 at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result) Mar 29 04:36:16 at System.IO.Pipelines.Pipe.GetReadAsyncResult() Mar 29 04:36:16 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 190 Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json Mar 29 04:39:45 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer. Mar 29 04:39:45 ---> System.Net.Sockets.SocketException (104): Connection reset by peer Mar 29 04:39:45 --- End of inner exception stack trace --- Mar 29 04:39:45 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) Mar 29 04:39:45 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) Mar 29 04:39:45 at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter) Mar 29 04:39:45 at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory1 buffer)
Mar 29 04:39:45 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Mar 29 04:40:00 System.IO.InvalidDataException: invalid login state
Mar 29 04:40:00 at ism7mqtt.Ism7Client.OnAuthenticateAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 338
Mar 29 04:40:00 at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/ResponseDispatcher.cs:line 32
Mar 29 04:40:00 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json

@Dscheya
Copy link
Author

Dscheya commented Mar 30, 2024

Noch ein Log.
Es erfolgt ein Neustart von ism7mqtt ohne vorherige Fehlermeldung, nach dem Start kommen dann Fehler

Die letzte Zeile vom gestrigen Log
Mar 29 04:40:00 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json

direkt anschließend ab hier das neue Log
Start und erste Zeilen ohne Zeitstempel

Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> Interop+OpenSsl+SslException: SSL Handshake failed with OpenSSL error - SSL_ERROR_SSL.
---> Interop+Crypto+OpenSslCryptographicException: error:0A0000F4:SSL routines::unexpected message
--- End of inner exception stack trace ---
at Interop.OpenSsl.DoSslHandshake(SafeSslHandle context, ReadOnlySpan1 input, Byte[]& sendBuf, Int32& sendCount) at System.Net.Security.SslStreamPal.HandshakeInternal(SafeFreeCredentials credential, SafeDeleteSslContext& context, ReadOnlySpan1 inputBuffer, Byte[]& outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)
--- End of inner exception stack trace ---
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at ism7mqtt.Ism7Client.ConnectAsync(CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 86
at ism7mqtt.Ism7Client.RunAsync(String password, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 50
at ism7mqtt.Program.Main(String[] args) in /app/ism7mqtt/Program.cs:line 145
Unhandled exception. System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> Interop+OpenSsl+SslException: SSL Handshake failed with OpenSSL error - SSL_ERROR_SSL.
---> Interop+Crypto+OpenSslCryptographicException: error:0A0000F4:SSL routines::unexpected message
--- End of inner exception stack trace ---
at Interop.OpenSsl.DoSslHandshake(SafeSslHandle context, ReadOnlySpan1 input, Byte[]& sendBuf, Int32& sendCount) at System.Net.Security.SslStreamPal.HandshakeInternal(SafeFreeCredentials credential, SafeDeleteSslContext& context, ReadOnlySpan1 inputBuffer, Byte[]& outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)
--- End of inner exception stack trace ---
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at ism7mqtt.Ism7Client.ConnectAsync(CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 86
at ism7mqtt.Ism7Client.RunAsync(String password, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 50
at ism7mqtt.Program.Main(String[] args) in /app/ism7mqtt/Program.cs:line 145
at ism7mqtt.Program.

(String[] args)
/run.sh: line 26: 1658 Aborted (core dumped) /app/ism7mqtt $ISM_ARGS
1659 Done | ts
ism7mqtt unexpectedly quit with return code 134
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Mar 30 03:55:47 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.
Mar 30 03:55:47 ---> System.Net.Sockets.SocketException (104): Connection reset by peer
Mar 30 03:55:47 --- End of inner exception stack trace ---
Mar 30 03:55:47 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
Mar 30 03:55:47 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
Mar 30 03:55:47 at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
Mar 30 03:55:47 at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory`1 buffer)
Mar 30 03:55:47 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 166

Ab hier neuer Start ohne Fehler

Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json

@Dscheya
Copy link
Author

Dscheya commented Apr 1, 2024

Auch am 31.03 und am 01.04 tritt der Fehler auf.
Ism7 baut doch keine externe Verbindung ins Internet auf oder ?
Zeitlich könnte das mit der 24 Stundentrennung zusammenhängen.

@b3nn0
Copy link
Owner

b3nn0 commented Apr 1, 2024

Ism7mqtt nicht. Das ISM7 kontaktiert aber natürlich den Wolf Server.
Hast du die Portalverbindung an oder aus? Auch hier wurde schon berichtet, dass dies einen Einfluss auf die Robustheit der lokalen Verbindung hat.
Fehlen denn immernoch Parameter? Oder ist es nur alle 24h mal ein Reconnect? Letzteres wäre ja nicht weiter schlimm..

@Dscheya
Copy link
Author

Dscheya commented Apr 1, 2024

Portal ist im ism ausgeschaltet.
Bei den Parametern die ich sichtbar aufzeichne sehe ich im Moment keine Aussetzer.
Es ist ja kein reconnect.

Ism läuft nach dem Fehler fast 24 Stunden durch, beendet sich dann ohne Fehlermeldung und startet dann mit Fehlern.

CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 190
Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Ca 24 h gelaufen dann auf einmal Neustart ohne vorherige Fehlermeldung

Erster Neustart mit Fehlermeldung und Return Code 134

Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. cancellationToken)
….
ism7mqtt unexpectedly quit with return code 134

zweiter Start mit Fehlern

Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Apr 01 04:08:39 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.

Dritter Start mit Fehlern

Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Apr 01 04:08:55 System.IO.InvalidDataException: invalid login state

Vierter Start mit Fehlern

Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Apr 01 04:13:10 System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.

Fünfter Start

Starting ism7mqtt --hass-id=Wolf --interval=60 --ipAddress=192.168.178.63 -t /config/ism7-parameters-Wolf.json
Ism7 läuft ca 24 Stunden durch.

Wenn das nicht an der Einbettung in HA liegt muss ich wohl bei zivilian noch mal einen Fehler aufmachen.

@Dscheya
Copy link
Author

Dscheya commented Apr 1, 2024

Portalfreigabe auf ism7 war noch aktiv, ich habe das mal abgeschaltet und werde das weiter beobachten

@Dscheya
Copy link
Author

Dscheya commented Apr 4, 2024

Nach dem abschalten der Portalfreigabe über das ISM Webinterface sind seit 3 Tagen keine Fehler mehr aufgetreten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants