3CX Backup using AWS S3 & AWS Transfer SFTP

Status
Not open for further replies.

George_WB

Premier Customer
Advanced Certified
Joined
Feb 27, 2019
Messages
47
Reaction score
8
Hi everyone, I am trying to set my 3CX to backup on AWS S3 and wanted to know if others have achieved that and in what way.
I have set a new server from AWS Transfer and added my bucket on it but I get the following error on my email when I start the 3CX backup:

Code:
Your 3CX backup failed due to the following reason(s):
Renci.SshNet.Common.SshException: AWS Transfer does not support random access writes to S3 objects
   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)

Has anyone seen similar error?
 
Using AWS S3 storage has not been tested with 3CX so I'm afraid I cannot say if you can get it to work or not via SFTP. You might want to opt for using a Linux VM instead in conjunction with the SFTP method instead.
 
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,083
Members
164,901
Latest member
Silent_Guru