After upgrading the ism7 to version 5, ism7mqtt communication no longer works.
I… thought that the parameter.json file would have to be recreated. So I ran
`ism7config -i <ism7 ip/host> -p <ism7 password>`
unfortunately, this was unsuccessful and the following error messages appeared:
```
root@grafana:~# /opt/ism7mqtt/makeconfig/ism7config -i 192.168.xx.xx -p PASSWORD
2025-11-18 13:09:38.2594|INFO|LuCon.WebPortal.StandaloneService.NetworkConnector|Try IP-resolve for host:192.168.xx.xx
2025-11-18 13:09:38.4017|INFO|LuCon.WebPortal.StandaloneService.NetworkConnector|Try connect destination server -> 192.168.xx.xx:9092, Timeout:60000 ms
Org.BouncyCastle.Tls.TlsFatalAlertReceived: handshake_failure(40)
at Org.BouncyCastle.Tls.TlsProtocol.HandleAlertMessage(Int16 alertLevel, Int16 alertDescription)
at Org.BouncyCastle.Tls.TlsProtocol.ProcessAlertQueue()
at Org.BouncyCastle.Tls.TlsProtocol.ProcessRecord(Int16 protocol, Byte[] buf, Int32 off, Int32 len)
at Org.BouncyCastle.Tls.RecordStream.ReadFullRecord(Byte[] input, Int32 inputOff, Int32 inputLen)
at Org.BouncyCastle.Tls.TlsProtocol.SafeReadFullRecord(Byte[] input, Int32 inputOff, Int32 inputLen)
at Org.BouncyCastle.Tls.TlsProtocol.OfferInput(Byte[] input, Int32 inputOff, Int32 inputLen)
at ism7ssl.Ism7SslStream.AuthenticateAsClientAsync(CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 46
at ism7config.XplatStreamHandler.GetStream(TcpClient tcpClient, Int32 port) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7config/XplatStreamHandler.cs:line 16
2025-11-18 13:09:38.7009|ERROR|LuCon.WebPortal.StandaloneService.NetworkConnector|DoConnect|Org.BouncyCastle.Tls.TlsFatalAlertReceived: handshake_failure(40)
at Org.BouncyCastle.Tls.TlsProtocol.HandleAlertMessage(Int16 alertLevel, Int16 alertDescription)
at Org.BouncyCastle.Tls.TlsProtocol.ProcessAlertQueue()
at Org.BouncyCastle.Tls.TlsProtocol.ProcessRecord(Int16 protocol, Byte[] buf, Int32 off, Int32 len)
at Org.BouncyCastle.Tls.RecordStream.ReadFullRecord(Byte[] input, Int32 inputOff, Int32 inputLen)
at Org.BouncyCastle.Tls.TlsProtocol.SafeReadFullRecord(Byte[] input, Int32 inputOff, Int32 inputLen)
at Org.BouncyCastle.Tls.TlsProtocol.OfferInput(Byte[] input, Int32 inputOff, Int32 inputLen)
at ism7ssl.Ism7SslStream.AuthenticateAsClientAsync(CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 46
at ism7config.XplatStreamHandler.GetStream(TcpClient tcpClient, Int32 port) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7config/XplatStreamHandler.cs:line 16
at LuCon.WebPortal.StandaloneService.NetworkConnector.DoConnect(String server, IPAddress localIp, Int32 port, String password, IStreamHandler streamHandler)
failed to connect on port 9092 - trying older firmware port 9091
2025-11-18 13:09:38.7213|INFO|LuCon.WebPortal.StandaloneService.NetworkConnector|Try IP-resolve for host:192.168.xx.xx
2025-11-18 13:09:38.7213|INFO|LuCon.WebPortal.StandaloneService.NetworkConnector|Try connect destination server -> 192.168.xx.xx:9091, Timeout:60000 ms
System.Net.Sockets.SocketException (32): Broken pipe
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException(SocketError, Boolean )
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.SendAsync(Socket, CancellationToken)
at System.Net.Sockets.Socket.SendAsync(ReadOnlyMemory`1, SocketFlags, CancellationToken )
at ism7ssl.Ism7SslStream.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 178
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&)
at ism7ssl.Ism7SslStream.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken)
at ism7ssl.Ism7SslStream.AuthenticateAsClientAsync(CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 35
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&)
at ism7ssl.Ism7SslStream.AuthenticateAsClientAsync(CancellationToken cancellationToken)
at ism7config.XplatStreamHandler.GetStream(TcpClient tcpClient, Int32 port) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7config/XplatStreamHandler.cs:line 16
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&)
at ism7config.XplatStreamHandler.GetStream(TcpClient tcpClient, Int32 port)
at LuCon.WebPortal.StandaloneService.NetworkConnector.DoConnect(String server, IPAddress localIp, Int32 port, String password, IStreamHandler streamHandler)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox, Boolean)
at System.Threading.Tasks.Task.RunContinuations(Object)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task`1.TrySetResult(TResult)
at System.Threading.Tasks.Task.TwoTaskWhenAnyPromise`1.Invoke(Task)
at System.Threading.Tasks.Task.RunOrQueueCompletionAction(ITaskCompletionAction, Boolean)
at System.Threading.Tasks.Task.RunContinuations(Object)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.FinishSlow(Boolean)
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task.TrySetException(Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception, Task`1&)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(Exception)
at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox, Boolean)
at System.Threading.Tasks.Task.RunContinuations(Object)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.FinishSlow(Boolean)
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task.TrySetException(Object)
at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.SignalCompletion()
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.SetResult(TResult)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.OnCompleted(SocketAsyncEventArgs)
at System.Net.Sockets.SocketAsyncEventArgs.OnCompletedInternal()
at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError, Int32, SocketFlags)
at System.Net.Sockets.SocketAsyncEventArgs.CompletionCallback(Int32, SocketFlags, SocketError)
at System.Net.Sockets.SocketAsyncEventArgs.ConnectCompletionCallback(SocketError socketError)
at System.Net.Sockets.SocketAsyncContext.ConnectOperation.InvokeCallback(Boolean)
at System.Net.Sockets.SocketAsyncContext.OperationQueue`1.ProcessAsyncOperation(TOperation)
at System.Net.Sockets.SocketAsyncContext.ProcessAsyncWriteOperation(WriteOperation)
at System.Net.Sockets.SocketAsyncContext.WriteOperation.System.Threading.IThreadPoolWorkItem.Execute()
at System.Net.Sockets.SocketAsyncContext.AsyncOperation.Process()
at System.Net.Sockets.SocketAsyncContext.HandleEvents(SocketEvents)
at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
--- End of stack trace from previous location ---
at ism7ssl.Ism7SslStream.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 178
at ism7ssl.Ism7SslStream.AuthenticateAsClientAsync(CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 35
at ism7config.XplatStreamHandler.GetStream(TcpClient tcpClient, Int32 port) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7config/XplatStreamHandler.cs:line 16
2025-11-18 13:09:38.7393|ERROR|LuCon.WebPortal.StandaloneService.NetworkConnector|DoConnect|System.Net.Sockets.SocketException (32): Broken pipe
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException(SocketError, Boolean )
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.SendAsync(Socket, CancellationToken)
at System.Net.Sockets.Socket.SendAsync(ReadOnlyMemory`1, SocketFlags, CancellationToken )
at ism7ssl.Ism7SslStream.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 178
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&)
at ism7ssl.Ism7SslStream.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken)
at ism7ssl.Ism7SslStream.AuthenticateAsClientAsync(CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 35
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&)
at ism7ssl.Ism7SslStream.AuthenticateAsClientAsync(CancellationToken cancellationToken)
at ism7config.XplatStreamHandler.GetStream(TcpClient tcpClient, Int32 port) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7config/XplatStreamHandler.cs:line 16
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&)
at ism7config.XplatStreamHandler.GetStream(TcpClient tcpClient, Int32 port)
at LuCon.WebPortal.StandaloneService.NetworkConnector.DoConnect(String server, IPAddress localIp, Int32 port, String password, IStreamHandler streamHandler)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox, Boolean)
at System.Threading.Tasks.Task.RunContinuations(Object)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task`1.TrySetResult(TResult)
at System.Threading.Tasks.Task.TwoTaskWhenAnyPromise`1.Invoke(Task)
at System.Threading.Tasks.Task.RunOrQueueCompletionAction(ITaskCompletionAction, Boolean)
at System.Threading.Tasks.Task.RunContinuations(Object)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.FinishSlow(Boolean)
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task.TrySetException(Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception, Task`1&)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(Exception)
at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox, Boolean)
at System.Threading.Tasks.Task.RunContinuations(Object)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.FinishSlow(Boolean)
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task.TrySetException(Object)
at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.SignalCompletion()
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.SetResult(TResult)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.OnCompleted(SocketAsyncEventArgs)
at System.Net.Sockets.SocketAsyncEventArgs.OnCompletedInternal()
at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError, Int32, SocketFlags)
at System.Net.Sockets.SocketAsyncEventArgs.CompletionCallback(Int32, SocketFlags, SocketError)
at System.Net.Sockets.SocketAsyncEventArgs.ConnectCompletionCallback(SocketError socketError)
at System.Net.Sockets.SocketAsyncContext.ConnectOperation.InvokeCallback(Boolean)
at System.Net.Sockets.SocketAsyncContext.OperationQueue`1.ProcessAsyncOperation(TOperation)
at System.Net.Sockets.SocketAsyncContext.ProcessAsyncWriteOperation(WriteOperation)
at System.Net.Sockets.SocketAsyncContext.WriteOperation.System.Threading.IThreadPoolWorkItem.Execute()
at System.Net.Sockets.SocketAsyncContext.AsyncOperation.Process()
at System.Net.Sockets.SocketAsyncContext.HandleEvents(SocketEvents)
at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
--- End of stack trace from previous location ---
at ism7ssl.Ism7SslStream.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 178
at ism7ssl.Ism7SslStream.AuthenticateAsClientAsync(CancellationToken cancellationToken) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7ssl/Ism7SslStream.cs:line 35
at ism7config.XplatStreamHandler.GetStream(TcpClient tcpClient, Int32 port) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7config/XplatStreamHandler.cs:line 16
at LuCon.WebPortal.StandaloneService.NetworkConnector.DoConnect(String server, IPAddress localIp, Int32 port, String password, IStreamHandler streamHandler)
Unhandled exception. LuCon.Common.Declarations.BusinessServiceException: Die Verbindung zur Anlage kann nicht hergestellt werden. Aktualisieren Sie die Anlagenliste und versuchen Sie es nochmal.
at LuCon.WebPortal.StandaloneService.NetworkConnector.DoConnect(String server, IPAddress localIp, Int32 port, String password, IStreamHandler streamHandler)
at ism7config.Program.Main(String[] args) in /home/runner/work/ism7mqtt/ism7mqtt/src/ism7config/Program.cs:line 129
at ism7config.Program.<Main>(String[] args)
Aborted
root@grafana:~#
```