Solved Backup Failure with an SshConnectionException

Status
Not open for further replies.

cruzt

Premier Customer
Joined
Oct 21, 2024
Messages
2
Reaction score
1
Trying to figure issues with our current backups. Can anyone shed some light on this?

We are on version 20.0 Update 3 (Build 806).

Your 3CX backup failed due to the following reason(s):
Renci.SshNet.Common.SshConnectionException: Client not connected.
at Renci.SshNet.Session.SendMessage(Message message)
at Renci.SshNet.Sftp.SftpSession.SendRequest(SftpRequest request)
at Renci.SshNet.Sftp.SftpSession.RequestWrite(Byte[] handle, UInt64 serverOffset, Byte[] data, Int32 offset, Int32 length, AutoResetEvent wait, Action`1 writeCompleted)
at Renci.SshNet.Sftp.SftpFileStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at _3CX.Filesystem.SFTP.FixedSftpFileStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.Stream.CopyTo(Stream destination, Int32 bufferSize)
at _3CX.BackupRestore._3cxBackup.UploadTemptoDestination()
at _3CX.BackupRestore._3cxBackup.FinishingTask()
 
I have the same issue. Would someone be able to help?
My sftp to synology stopped working aswell after the update.

Recording archiving failed due to the following reason: System.AggregateException: One or more errors occurred. (Connection reset by peer) ---> System.Net.Sockets.SocketException (104): Connection reset by peer at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at Renci.SshNet.Abstractions.SocketAbstraction.Read(Socket socket, Byte[] buffer, Int32 offset, Int32 size, TimeSpan readTimeout) at Renci.SshNet.Connection.ProtocolVersionExchange.SocketReadLine(Socket socket, TimeSpan timeout, List`1 buffer) at Renci.SshNet.Connection.ProtocolVersionExchange.Start(String clientVersion, Socket socket, TimeSpan timeout) at Renci.SshNet.Session.Connect() at Renci.SshNet.BaseClient.CreateAndConnectSession() at Renci.SshNet.BaseClient.Connect() at _3CX.Filesystem.SFTP.SftpFileSystem.CreateSftpClient(LocationSettings settings) at _3CX.Filesystem.SFTP.SftpFileSystem.FileExistsAsync(String filename, CancellationToken token) at _3CX.Filesystem.SFTP.SftpFileSystem.ValidatePath(String path, CancellationToken token) at _3CX.Filesystem.RemoteStorageService.OpenFolderAsync(String folder) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at _3CX.Recordings.RecordingsFactory.<>c__DisplayClass4_0.<CreateRecordings>b__0() at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy`1.CreateValue() at _3CX.Recordings.RecordingData.Archive(Boolean justUpload) at _3cxSystemService.RecordingCleanup.ArchiveRecordings(Int32 olderThanDays, CancellationToken cancellationToken)
 
Hello, please try the following:

1) In Admin > Advanced > Parameters add ALWAYS_USE_TMP_FILE_FOR_BACKUP and set to 0.
2) Retry backup and see if it helps.
 
Adding that parameter resolved the issue!
 
  • Like
Reactions: TomH
Solved, Thank you.
 
Status
Not open for further replies.

Forum statistics

Threads
111,875
Messages
589,508
Members
164,723
Latest member
aman-pandey