-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report show's failed on form header even though the session is successful #10
Comments
Hi @gveater. Can you please double check whether the job failed on a synthetic operation, such as incremental backup file merge or synthetic full creation? This is typically the reason for such reports. |
Adding author @tdewin as well. |
We are currently testing on how to move our copy to external media jobs so I have had multiple failures for various reasons on this job. The last two failure were unexpected failures, from me stopping the job. Before that there were a lot of media not found. This itself is a Backup Copy job. From my understanding it does a synthetic full with whatever backup is currently on that HDD. |
Confirmed, this can be checked by running limited code below. Backup Copy Job (or backupsync) return status None $jobtype = "BackupSync"
#$jobtype = "Backup"
$Jobs = @(Get-VBRJob | ? { $_.JobType -ieq $jobtype }) | Sort-Object -Property Name
$allsessions = Get-VBRBackupSession | ? { $_.jobtype -ieq $jobtype }
$allorderdedsess = $allsessions | Sort-Object -Property CreationTimeUTC -Descending
foreach ($Job in $Jobs) {
$lastsession = $allorderdedsess | ? { $_.jobname -eq $Job.Name } | select -First 1
if ($lastsession -ne $null) {
write-host ("Name : {0} Last Result : {1} Date : {2}" -f $Job.Name,$lastsession.Result,$lastsession.CreationTime)
} else {
write-host ("Could not find Session for {0}" -f $Job.Name)
}
} |
Update is in pull request now. Code manually evaluates "Success". Case can be closed when PR is committed. |
The picture shows that the top of the form is the color red and reads error, even though all of the backups in this job are successful. I looked through and it seems to be the same on every job that had a recent failure. I have the max variable set to 1 so that I only get the results of the last session, but it looks like it is pulling the info for the top of the form from all of the job session history.
The text was updated successfully, but these errors were encountered: