3CX Notification: Scheduled Backup Failed

Trust

Premier Customer
Basic Certified
Mitglied seit
6. März 2020
Beiträge
275
Guten Morgen zusammen,
leider erstellt unsere 3CX seit einer Zeit keine Backups mehr.
Ich hoffe, Ihr könnt mir sagen, in welche Richtung ich eventuell suchen kann.
Die Sicherung wird auf einem sFTP durchgeführt.

sftp.PNG

Auf dem sFTP wird keine Datei erstellt.
Code:
Your 3CX backup failed due to the following reason(s):
System.Exception: System.IO.IOException: Entries cannot be created while previously created entries are still open.
   at System.IO.Compression.ZipArchive.AcquireArchiveStream(ZipArchiveEntry entry)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName, CompressionLevel compressionLevel)
   at System.IO.Compression.ZipArchive.DoCreateEntry(String entryName, Nullable`1 compressionLevel)
   at System.IO.Compression.ZipArchive.CreateEntry(String entryName, CompressionLevel compressionLevel)
   at _3cxNetBackupAndRestore._3cxBackup.CreateEntry(String name)
   at _3cxNetBackupAndRestore._3cxBackup.ZipFile(String dst, Stream src)
   at _3cxNetBackupAndRestore.BackupTasks.BackupMappingTable.BackupTable(BaseTask task)
   at _3cxNetManagement.BaseTask.DoAction()
   at _3cxNetManagement.BaseTask.Run()
System.IO.IOException: Entries cannot be created while previously created entries are still open.
   at System.IO.Compression.ZipArchive.AcquireArchiveStream(ZipArchiveEntry entry)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName, CompressionLevel compressionLevel)
   at System.IO.Compression.ZipArchive.DoCreateEntry(String entryName, Nullable`1 compressionLevel)
   at System.IO.Compression.ZipArchive.CreateEntry(String entryName, CompressionLevel compressionLevel)
   at _3cxNetBackupAndRestore._3cxBackup.CreateEntry(String name)
   at _3cxNetBackupAndRestore._3cxBackup.ZipFile(String dst, Stream src)
   at _3cxNetBackupAndRestore.BackupTasks.BackupOMTask.BackupOM(BaseTask task)
   at _3cxNetManagement.BaseTask.DoAction()
   at _3cxNetManagement.BaseTask.Run()
System.IO.IOException: Entries cannot be created while previously created entries are still open.
   at System.IO.Compression.ZipArchive.AcquireArchiveStream(ZipArchiveEntry entry)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName, CompressionLevel compressionLevel)
   at System.IO.Compression.ZipArchive.DoCreateEntry(String entryName, Nullable`1 compressionLevel)
   at System.IO.Compression.ZipArchive.CreateEntry(String entryName, CompressionLevel compressionLevel)
   at _3cxNetBackupAndRestore._3cxBackup.CreateEntry(String name)
   at _3cxNetBackupAndRestore._3cxBackup.ZipDbTable(String table, Action`1 writeContent)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.BackupTable(String tableName, Object transaction)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.RunAll(BaseTask ignore)
Renci.SshNet.Common.SshConnectionException: Client not connected.
   at Renci.SshNet.Session.SendMessage(Message message)
   at Renci.SshNet.Session.Renci.SshNet.ISession.SendMessage(Message message)
   at Renci.SshNet.Channels.Channel.SendData(Byte[] data, Int32 offset, Int32 size)
   at Renci.SshNet.Channels.Channel.SendData(Byte[] data)
   at Renci.SshNet.SubsystemSession.SendData(Byte[] data)
   at Renci.SshNet.Sftp.SftpSession.SendMessage(SftpMessage sftpMessage)
   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.FlushWriteBuffer()
   at Renci.SshNet.Sftp.SftpFileStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at _3cxFilesystemImplementations.SFTP.FixedSftpFileStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Compression.DeflateStream.PurgeBuffers(Boolean disposing)
   at System.IO.Compression.DeflateStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at System.IO.Compression.CheckSumAndSizeWriteStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   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.ZipDbTable(String table, Action`1 writeContent)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.BackupTable(String tableName, Object transaction)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.RunAll(BaseTask ignore)
System.IO.IOException: Entries cannot be created while previously created entries are still open.
   at System.IO.Compression.ZipArchive.AcquireArchiveStream(ZipArchiveEntry entry)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName, CompressionLevel compressionLevel)
   at System.IO.Compression.ZipArchive.DoCreateEntry(String entryName, Nullable`1 compressionLevel)
   at System.IO.Compression.ZipArchive.CreateEntry(String entryName, CompressionLevel compressionLevel)
   at _3cxNetBackupAndRestore._3cxBackup.CreateEntry(String name)
   at _3cxNetBackupAndRestore._3cxBackup.ZipDbTable(String table, Action`1 writeContent)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.BackupTable(String tableName, Object transaction)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.RunAll(BaseTask ignore)
System.IO.IOException: Entries cannot be created while previously created entries are still open.
   at System.IO.Compression.ZipArchive.AcquireArchiveStream(ZipArchiveEntry entry)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName, CompressionLevel compressionLevel)
   at System.IO.Compression.ZipArchive.DoCreateEntry(String entryName, Nullable`1 compressionLevel)
   at System.IO.Compression.ZipArchive.CreateEntry(String entryName, CompressionLevel compressionLevel)
   at _3cxNetBackupAndRestore._3cxBackup.CreateEntry(String name)
   at _3cxNetBackupAndRestore._3cxBackup.ZipDbTable(String table, Action`1 writeContent)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.BackupTable(String tableName, Object transaction)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.RunAll(BaseTask ignore)
System.IO.IOException: Entries cannot be created while previously created entries are still open.
   at System.IO.Compression.ZipArchive.AcquireArchiveStream(ZipArchiveEntry entry)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName)
   at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, String entryName, CompressionLevel compressionLevel)
   at System.IO.Compression.ZipArchive.DoCreateEntry(String entryName, Nullable`1 compressionLevel)
   at System.IO.Compression.ZipArchive.CreateEntry(String entryName, CompressionLevel compressionLevel)
   at _3cxNetBackupAndRestore._3cxBackup.CreateEntry(String name)
   at _3cxNetBackupAndRestore._3cxBackup.ZipDbTable(String table, Action`1 writeContent)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.BackupTable(String tableName, Object transaction)
   at _3cxNetBackupAndRestore.BackupTasks.BaseDBTask.RunAll(BaseTask ignore)
Renci.SshNet.Common.SshConnectionException: Client not connected.
   at Renci.SshNet.Session.SendMessage(Message message)
   at Renci.SshNet.Session.Renci.SshNet.ISession.SendMessage(Message message)
   at Renci.SshNet.Channels.Channel.SendData(Byte[] data, Int32 offset, Int32 size)
   at Renci.SshNet.Channels.Channel.SendData(Byte[] data)
   at Renci.SshNet.SubsystemSession.SendData(Byte[] data)
   at Renci.SshNet.Sftp.SftpSession.SendMessage(SftpMessage sftpMessage)
   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.FlushWriteBuffer()
   at Renci.SshNet.Sftp.SftpFileStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at _3cxFilesystemImplementations.SFTP.FixedSftpFileStream.Close()
   at System.IO.Compression.ZipArchive.CloseStreams()
   at System.IO.Compression.ZipArchive.Dispose(Boolean disposing)
   at System.IO.Compression.ZipArchive.Dispose()
   at _3cxNetBackupAndRestore._3cxBackup.FinishingTask()
   at _3cxBackupRestoreImpl.BackupRestoreUtils.Backup(IFilesystem filesystem, String instanceId, String cfgPath, String dbConnectionString, BackupConfig options, String fullpathFilename, Boolean sendEmail)
   at BackupRestoreSchedule.BackupJob.Execute(IJobExecutionContext context)

Stoße ich die Sicherung manuell an, wird eine 33kb Datei erstellt
test.PNG
Sichere ich auf der 3CX selber, funktioniert es


lokal.PNG

Die erste Meldung ist ja:
System.Exception: System.IO.IOException: Entries cannot be created while previously created entries are still open.
Bezieht sich das auf die 3CX oder auf den sFTP

Danke euch
 
Ist auf dem Ziel genug freier Speicherplatz?
 
17 Gb sind noch frei
speicher.PNG
 
Hmm, in der Regel kommt diese Fehlermeldung wenn auf dem Zielsystem nicht genug freier Speicher ist. Prüfe noch mal die 3CX ob da evtl zu wenig Speicher zum erstellen des Backups ist.
 
Dort ist auch genug freier Speicher verfügbar. Sobald ich die Sicherung auf der Anlage selber "/var/lib/3cxpbx/Instance1/Data/Backups" durchführe funktioniert es auch.

speicher 2.PNG
 
Wie groß sind die Backups? Was noch sein kann das der SFTP die Verbindung trennt weil das packen der ZIP Datei zu lange dauert. Da evtl mal das Timeout hochsetzen bzw auf 0 wenn möglich.
 
Hab das Timeout mal hochgesetzt. Leider ohne Erfolg.
Um von Windows aus auf die Sicherungen zuzugreifen habe ich ohnehin eine SMB Freigabe eingerichtet.
Ich sichere jetzt einfach die 3CX über SMB auf den sFTP Server. Das funktioniert.
Scheint irgendwie an der sFTP Verbindung zu liegen. Bevor ich jetzt lange suche, lasse ich die Sicherung einfach dauerhaft über SMB laufen. Ich warte mal die Nacht ab.

Danke für die Unterstützung.
 
  • Like
Reaktionen: bitn2

Statistik des Forums

Themen
44.415
Beiträge
232.722
Mitglieder
78.331
Neuestes Mitglied
b2daniel