Scheduled Backup Failing

Status
Not open for further replies.

Edmund

Silver Partner
Basic Certified
Joined
Nov 26, 2022
Messages
4
Reaction score
3
Hi everyone,

I am facing an issue. My scheduled backup is not running at all. I'm backing up via SMB connection, and I'm able to initiate manually but scheduled backup is failing. However, I do see a temp file generated in the destination folder. (EG; XXXXXX.zip.tmp)

I haved tried various method according to similar incidents to the other cases I found on the forum,
1. Restarting 3CX* Services
2. Re-enable Scheduled Backup after restarting services and server.

The error notfication I receive from my email is this,

Your 3CX Backup failed due to the following reason(s):
System.IO.FileNotFoundException: Unable to find the specified file.
at
_3cxFilesystemImplementations.Samba.Smb2FileSystem.Move(String filename1, String filename2)
at
BackupRestoreSchedule.Backup.Job.Execute(IJobExecutionContext context)
 
When scheduled backups happen, they first write the file to as a .zip.tmp, then (lets say you keep 14 backups) they the oldest file (.13.zip), rename the second oldest (.12.zip) to the oldest (13.zip) and so on. Once the second most recent file is renamed from .zip to .1.zip they then rename the backup from .zip.tmp to .zip

The error you are getting is during rename operations. Check your SMB logs to figure out why renames are failing.
 
  • Like
Reactions: jed and ThomasD_3CX
Hi,

This will be improved in the upcoming V18 Update 8, you will get a clearer message with the reason of the failure.
 
  • Like
Reactions: jed
Status
Not open for further replies.

Forum statistics

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