Backup Error

Status
Not open for further replies.

iMark22

Customer
Joined
Jan 27, 2020
Messages
21
Reaction score
5
Hello,

i have a problem with backup of the system (manual and scheduled), i have already try to reboot 3cx system and check the space to destination folder... it's all ok!

Here the error

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 _3cxNetBackupAndRestore._3cxBackup.CreateEntry(String name)

at _3cxNetBackupAndRestore._3cxBackup.ZipFile(String dst, IFile src)

at _3cxNetBackupAndRestore.BackupTasks.BaseFilesTask.BackupFiles()

System.ObjectDisposedException: Samba client has been disposed already Object name: '_smb'.

at _3cxFilesystemImplementations.Samba.SmbStream.DoWrite(Byte[] buffer, Int32 offset, Int32 count)

at _3cxFilesystemImplementations.Samba.SmbStream.Write(Byte[] buffer, Int32 offset, Int32 count)

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.ZipArchive.WriteFile()

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)
 
where is back being created, Is it a local backup on the pbx machine?
 
SMB folder on windows server machine, it's the same folder for years... from 1 month stop working
 
does a local back up work?
 
Same problem

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 _3cxNetBackupAndRestore._3cxBackup.CreateEntry(String name)

at _3cxNetBackupAndRestore._3cxBackup.ZipFile(String dst, IFile src)

at _3cxNetBackupAndRestore.BackupTasks.BaseFilesTask.BackupFiles()

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 _3cxNetBackupAndRestore._3cxBackup.CreateEntry(String name)

at _3cxNetBackupAndRestore._3cxBackup.ZipFile(String dst, IFile src)

at _3cxNetBackupAndRestore.BackupTasks.BaseFilesTask.BackupFiles()

System.ObjectDisposedException: Samba client has been disposed already Object name: '_smb'.

at _3cxFilesystemImplementations.Samba.SmbStream.DoWrite(Byte[] buffer, Int32 offset, Int32 count)

at _3cxFilesystemImplementations.Samba.SmbStream.Write(Byte[] buffer, Int32 offset, Int32 count)

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.ZipArchive.WriteFile()

at System.IO.Compression.ZipArchive.Dispose(Boolean disposing)

at System.IO.Compression.ZipArchive.Dispose()

at _3cxNetBackupAndRestore._3cxBackup.FinishingTask()
 
System.IO.IOException: Entries cannot be created while previously created entries are still open.

the backup job was stuck
please reboot the system and try again
same trouble with FTP too slow with multiple backup at the same time
 
Ok but it's the third time that i try to reboot... i will try again and i update you as soon as possible.
 
Hi iMark22, try this to force 3CX to create the backup locally and only then transfer to the share:
  • Log in to the Management Console.
  • Go to Settings -> Parameters
  • Click "Add", enter the name ALWAYS_USE_TMP_FILE_FOR_BACKUP with value 1 then save.
Initiate a new backup and check if it worked.
 
  • Like
Reactions: jed
Hi ivank with this parameters all works fine... manual and scheduled backup! Thank you!
 
  • Like
Reactions: ivank
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet