Code: Select all
hMailServer 5.6.3-B2249
Windows Server 2008 R2 (Standard Edition)
MSSQL CE
Well, my workaround batch file to clean up when hMailServer's backup job crashes is working, however, the exceptions do seem to be occurring more often than you might expect. I have the backup scheduled to run the nightly at 5 minutes past midnight and through the month of July, the backup job has crashed 4 times. This is a little alarming because my mail server is very low traffic. (It's for me, some friends, and some family members.) So far it's always a message that has obviously been deleted or delivered by the time hMailServer gets to the file.
I think this is a pretty serious bug actually as it basically leaves hMailServer in a state where it can no longer run the backup job and just restarting the service won't fix it because the temporary files are all still in the backup location and hMailServer will throw a fit if it tries to run the backup job.
In my opinion, the options for a fix could be several things:
- Pause the queue at the start of the backup job, and resume at the end.
- Use VSS service to do a shadow copy.
- Simply move on if a file isn't there instead of throwing an exception. (Perhaps log a warning with the pathname.)
Frankly, the last option is the best one as even if #1 and #2 are both implemented, this problem could still occur. Pausing the queue could have it's own issues if for some reason it didn't resume.
(The data storage location should also not be under Program Files but that's another issue entirely. Technically it should be under %ProgramData% or an administrator-specified path.)
Code: Select all
"ERROR" 4108 "2015-07-02 00:11:41.569" "Severity: 2 (High), Code: HM4208, Source: ExceptionHandler::Run, Description: An error occured while executing 'Task-BackupTask', Error code: 2, Message: boost::filesystem::copy_file: The system cannot find the file specified: "C:\Program Files (x86)\hMailServer\Data\{E3C00A02-1FB3-4565-9745-852A2EAABCAF}.eml", "D:\Private\Backups\hMailServer\DataBackup\{E3C00A02-1FB3-4565-9745-852A2EAABCAF}.eml""
"ERROR" 4620 "2015-07-15 00:16:26.363" "Severity: 2 (High), Code: HM4208, Source: ExceptionHandler::Run, Description: An error occured while executing 'Task-BackupTask', Error code: 2, Message: boost::filesystem::copy_file: The system cannot find the file specified: "C:\Program Files (x86)\hMailServer\Data\{23FA5CFB-E544-45AA-A897-132A9E86FC34}.eml", "D:\Private\Backups\hMailServer\DataBackup\{23FA5CFB-E544-45AA-A897-132A9E86FC34}.eml""
"ERROR" 3632 "2015-07-23 00:09:38.716" "Severity: 2 (High), Code: HM4208, Source: ExceptionHandler::Run, Description: An error occured while executing 'Task-BackupTask', Error code: 2, Message: boost::filesystem::copy_file: The system cannot find the file specified: "C:\Program Files (x86)\hMailServer\Data\{659C4F17-545D-489A-A175-F3CAF680C77D}.eml", "D:\Private\Backups\hMailServer\DataBackup\{659C4F17-545D-489A-A175-F3CAF680C77D}.eml""
"ERROR" 3412 "2015-07-30 00:10:49.545" "Severity: 2 (High), Code: HM4208, Source: ExceptionHandler::Run, Description: An error occured while executing 'Task-BackupTask', Error code: 2, Message: boost::filesystem::copy_file: The system cannot find the file specified: "C:\Program Files (x86)\hMailServer\Data\{7E554CD7-D87E-4905-A44E-AAF3550DDD43}.eml", "D:\Private\Backups\hMailServer\DataBackup\{7E554CD7-D87E-4905-A44E-AAF3550DDD43}.eml""