- Joined
- May 31, 2016
- Messages
- 5
- Reaction score
- 2
Hello,
Since we are hosting 3cx in Azure currently, I wanted to try out using Azure Blob storage for daily backups.
I have the blob container created, SFTP access to it enabled and can connect to it from the 3cx instance.
However, when I run the actual backup this error happens:
Renci.SshNet.Common.SshException: WriteOverlap: The WRITE range overlaps the uncommitted file content.
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.FlushWriteBuffer()
at Renci.SshNet.Sftp.SftpFileStream.Seek(Int64 offset, SeekOrigin origin)
at _3cxFilesystemImplementations.SFTP.FixedSftpFileStream.Seek(Int64 offset, SeekOrigin origin)
at System.IO.Compression.ZipArchiveEntry.WriteCrcAndSizesInLocalHeader(Boolean zip64HeaderUsed)
at System.IO.Compression.ZipArchiveEntry.DirectToArchiveWriterStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Compression.WrappedStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at _3cxNetBackupAndRestore._3cxBackup.WriteMetadata(ZipArchive zipStream)
at _3cxNetBackupAndRestore._3cxBackup.StartBackup(Stream backupStream)
at ManagementConsoleJS.Services.BackupService.Backup(BackupDescription backupDescription)
I cannot reproduce this problem across three seperate SFTP clients I've tried. I am able to upload files using this user to this container over SFTP just fine myself. I can't find any particular reason why 3cx is unable to do so.
Since we are hosting 3cx in Azure currently, I wanted to try out using Azure Blob storage for daily backups.
I have the blob container created, SFTP access to it enabled and can connect to it from the 3cx instance.
However, when I run the actual backup this error happens:
Renci.SshNet.Common.SshException: WriteOverlap: The WRITE range overlaps the uncommitted file content.
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.FlushWriteBuffer()
at Renci.SshNet.Sftp.SftpFileStream.Seek(Int64 offset, SeekOrigin origin)
at _3cxFilesystemImplementations.SFTP.FixedSftpFileStream.Seek(Int64 offset, SeekOrigin origin)
at System.IO.Compression.ZipArchiveEntry.WriteCrcAndSizesInLocalHeader(Boolean zip64HeaderUsed)
at System.IO.Compression.ZipArchiveEntry.DirectToArchiveWriterStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Compression.WrappedStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at _3cxNetBackupAndRestore._3cxBackup.WriteMetadata(ZipArchive zipStream)
at _3cxNetBackupAndRestore._3cxBackup.StartBackup(Stream backupStream)
at ManagementConsoleJS.Services.BackupService.Backup(BackupDescription backupDescription)
I cannot reproduce this problem across three seperate SFTP clients I've tried. I am able to upload files using this user to this container over SFTP just fine myself. I can't find any particular reason why 3cx is unable to do so.